|
|
|
@ -62,6 +62,12 @@ class InCallScreen(EdjeGroup):
|
|
|
|
|
|
|
|
|
|
def register_pyneo_callbacks(self):
|
|
|
|
|
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):
|
|
|
|
|
text = None
|
|
|
|
@ -122,7 +128,7 @@ class MainScreen(EdjeGroup):
|
|
|
|
|
self.part_text_set("numberdisplay_text", "".join(self.text))
|
|
|
|
|
elif source == "dial":
|
|
|
|
|
PyneoController.gsm_dial("".join(self.text))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PyneoController(object):
|
|
|
|
|
_dbus_timer = None
|
|
|
|
@ -246,7 +252,7 @@ class PyneoController(object):
|
|
|
|
|
class_.notify_callbacks("gsm_dialing")
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
|
def gsm_hangup(class_, number):
|
|
|
|
|
def gsm_hangup(class_):
|
|
|
|
|
# Find call with highest "active call" counter - it'll be the one currently active
|
|
|
|
|
call = None
|
|
|
|
|
highest = 0
|
|
|
|
|