Remove PyneoController's "init" event and the corresponding callbacks. It was part of the initial PyneoControl draft, no longer used.
git-svn-id: http://www.neo1973-germany.de/svn@119 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
bff85c8a79
commit
2a739e1378
1 changed files with 1 additions and 12 deletions
|
@ -61,11 +61,7 @@ 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):
|
||||||
PyneoController.register_callback("init", self.on_dbus_initialized)
|
pass
|
||||||
|
|
||||||
def on_dbus_initialized(self):
|
|
||||||
print "Dbus is ready, says InCallScreen"
|
|
||||||
|
|
||||||
|
|
||||||
class MainScreen(EdjeGroup):
|
class MainScreen(EdjeGroup):
|
||||||
text = None
|
text = None
|
||||||
|
@ -75,16 +71,12 @@ class MainScreen(EdjeGroup):
|
||||||
self.text = []
|
self.text = []
|
||||||
|
|
||||||
def register_pyneo_callbacks(self):
|
def register_pyneo_callbacks(self):
|
||||||
PyneoController.register_callback("init", self.on_dbus_initialized)
|
|
||||||
PyneoController.register_callback("sim_key_required", self.on_sim_key_required)
|
PyneoController.register_callback("sim_key_required", self.on_sim_key_required)
|
||||||
PyneoController.register_callback("sim_ready", self.on_sim_ready)
|
PyneoController.register_callback("sim_ready", self.on_sim_ready)
|
||||||
PyneoController.register_callback("gsm_registering", self.on_gsm_registering)
|
PyneoController.register_callback("gsm_registering", self.on_gsm_registering)
|
||||||
PyneoController.register_callback("gsm_registered", self.on_gsm_registered)
|
PyneoController.register_callback("gsm_registered", self.on_gsm_registered)
|
||||||
PyneoController.register_callback("gsm_dialing", self.on_gsm_dialing)
|
PyneoController.register_callback("gsm_dialing", self.on_gsm_dialing)
|
||||||
|
|
||||||
def on_dbus_initialized(self):
|
|
||||||
print "Dbus is ready, says MainScreen"
|
|
||||||
|
|
||||||
def on_sim_key_required(self):
|
def on_sim_key_required(self):
|
||||||
print '---', 'opening keyring'
|
print '---', 'opening keyring'
|
||||||
self.part_text_set("numberdisplay_text", "Enter " + PyneoController.gsm_keyring_status['code'])
|
self.part_text_set("numberdisplay_text", "Enter " + PyneoController.gsm_keyring_status['code'])
|
||||||
|
@ -183,9 +175,6 @@ class PyneoController(object):
|
||||||
# Register our own D-Bus callbacks
|
# Register our own D-Bus callbacks
|
||||||
class_.gsm_wireless.connect_to_signal("Status", class_.on_gsm_wireless_status, dbus_interface=DIN_WIRELESS)
|
class_.gsm_wireless.connect_to_signal("Status", class_.on_gsm_wireless_status, dbus_interface=DIN_WIRELESS)
|
||||||
|
|
||||||
# Notify all screens that the interfaces are here so that they can connect their signal callbacks
|
|
||||||
class_.notify_callbacks("init")
|
|
||||||
|
|
||||||
# D-Bus is ready, let's power up GSM
|
# D-Bus is ready, let's power up GSM
|
||||||
class_.power_up_gsm()
|
class_.power_up_gsm()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue