[maemo-developers] [maemo-developers] can't reeceive connectivity api signals
From: Fabio Forno fabio.forno at gmail.comDate: Mon Jul 31 20:14:35 EEST 2006
- Previous message: [maemo-developers] Development contest
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm doing some experiments with the connectivity api and the python
dbus bindings. When running this code
import dbus
import gobject
def icd_status_changed(name, type, status):
print name, type, status
bus = dbus.SystemBus()
icd_obj = bus.get_object('com.nokia.icd', '/com/nokia/icd')
icd = dbus.Interface(icd_obj, 'com.nokia.icd')
icd.connect_to_signal('status_changed', icd_status_changed)
print icd.get_statistics()
mainloop = gobject.MainLoop()
mainloop.run()
I correctly get the connection statistics (this means I'm correctly
connected with dbus), but I don't get any "status_changed" event when
connecting and disconnecting to the network (with dbus-monitor
--system I receive those signals...)
Am I missing anything? A python-dbus problem?
--
Fabio Forno, PhD
Istituto Superiore Mario Boella
Jabber ID: xmpp:ff at kamin.polito.it
** Try Jabber http://www.jabber.org
- Previous message: [maemo-developers] Development contest
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
