add End Call
git-svn-id: http://www.neo1973-germany.de/svn@125 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
1a15a98a75
commit
fb27f65bcb
3 changed files with 13 additions and 7 deletions
|
@ -3,10 +3,10 @@
|
||||||
//
|
//
|
||||||
// TODO: make the font colors shinier :)
|
// TODO: make the font colors shinier :)
|
||||||
//
|
//
|
||||||
// Signal1: "dialer_send"
|
// Signal1: "dialer_incall_send"
|
||||||
// Parameter1.1: $"keynumber"
|
// Parameter1.1: "End Call"
|
||||||
// Parameter1.2: "backspace"
|
// Parameter1.2: "Back To Dialer"
|
||||||
// Parameter1.2: "dial"
|
// Parameter1.2: "Hold Call"
|
||||||
|
|
||||||
data {
|
data {
|
||||||
item: "author" "thomasg [thomas (a) gstaedtner (.) net]";
|
item: "author" "thomasg [thomas (a) gstaedtner (.) net]";
|
||||||
|
@ -120,7 +120,7 @@ program { \
|
||||||
name: "button_"button_number"_signal_emit"; \
|
name: "button_"button_number"_signal_emit"; \
|
||||||
signal: "mouse,down,*"; \
|
signal: "mouse,down,*"; \
|
||||||
source: "button_"button_number; \
|
source: "button_"button_number; \
|
||||||
action: SIGNAL_EMIT "dialer_send" button_caption; \
|
action: SIGNAL_EMIT "dialer_incall_send" button_caption; \
|
||||||
} \
|
} \
|
||||||
program { \
|
program { \
|
||||||
name: "button_"button_number"_animation"; \
|
name: "button_"button_number"_animation"; \
|
||||||
|
|
Binary file not shown.
|
@ -63,6 +63,12 @@ class InCallScreen(EdjeGroup):
|
||||||
def register_pyneo_callbacks(self):
|
def register_pyneo_callbacks(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@edje.decorators.signal_callback("dialer_incall_send", "*")
|
||||||
|
def on_edje_signal_dialer_incall_triggered(self, emission, source):
|
||||||
|
if source == "End Call":
|
||||||
|
print source
|
||||||
|
PyneoController.gsm_hangup()
|
||||||
|
|
||||||
class MainScreen(EdjeGroup):
|
class MainScreen(EdjeGroup):
|
||||||
text = None
|
text = None
|
||||||
|
|
||||||
|
@ -246,7 +252,7 @@ class PyneoController(object):
|
||||||
class_.notify_callbacks("gsm_dialing")
|
class_.notify_callbacks("gsm_dialing")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def gsm_hangup(class_, number):
|
def gsm_hangup(class_):
|
||||||
# Find call with highest "active call" counter - it'll be the one currently active
|
# Find call with highest "active call" counter - it'll be the one currently active
|
||||||
call = None
|
call = None
|
||||||
highest = 0
|
highest = 0
|
||||||
|
|
Loading…
Reference in a new issue