show incomming number
git-svn-id: http://www.neo1973-germany.de/svn@141 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
cd4acf969e
commit
e5cc83fe82
1 changed files with 8 additions and 2 deletions
|
@ -65,8 +65,11 @@ class InCallScreen(EdjeGroup):
|
||||||
EdjeGroup.__init__(self, screen_manager, INCALL_SCREEN_NAME)
|
EdjeGroup.__init__(self, screen_manager, INCALL_SCREEN_NAME)
|
||||||
|
|
||||||
def register_pyneo_callbacks(self):
|
def register_pyneo_callbacks(self):
|
||||||
pass
|
PyneoController.register_callback("gsm_number_display", self.on_gsm_number_display)
|
||||||
|
|
||||||
|
def on_gsm_number_display(self, number):
|
||||||
|
self.part_text_set("incall_number_text", number)
|
||||||
|
|
||||||
@edje.decorators.signal_callback("dialer_incall_send", "*")
|
@edje.decorators.signal_callback("dialer_incall_send", "*")
|
||||||
def on_edje_signal_dialer_incall_triggered(self, emission, source):
|
def on_edje_signal_dialer_incall_triggered(self, emission, source):
|
||||||
if source == "Hangup Call":
|
if source == "Hangup Call":
|
||||||
|
@ -328,6 +331,9 @@ class PyneoController(object):
|
||||||
|
|
||||||
if status.has_key('oper'):
|
if status.has_key('oper'):
|
||||||
class_.notify_callbacks("gsm_operator_change", status['oper'])
|
class_.notify_callbacks("gsm_operator_change", status['oper'])
|
||||||
|
|
||||||
|
if status.has_key('number'):
|
||||||
|
class_.notify_callbacks("gsm_number_display", status['number'])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def on_gsm_keyring_status(class_, status_map):
|
def on_gsm_keyring_status(class_, status_map):
|
||||||
|
|
Loading…
Reference in a new issue