From: Inaky Perez-Gonzalez <[email protected]> --- test/test-sms-msg-state-change | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100755 test/test-sms-msg-state-change
diff --git a/test/test-sms-msg-state-change b/test/test-sms-msg-state-change new file mode 100755 index 0000000..331b722 --- /dev/null +++ b/test/test-sms-msg-state-change @@ -0,0 +1,24 @@ +#!/usr/bin/python + +import gobject + +import dbus +import dbus.mainloop.glib + +def property_changed(name, value, path, interface): + if interface == "org.ofono.SmsMessage": + print "%s: name %s value %s interface %s" \ + % (path, name, value, interface) + +if __name__ == '__main__': + print "FIXME: this should test the whole state change transition machine" + dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) + + bus = dbus.SystemBus() + + bus.add_signal_receiver( + property_changed, bus_name="org.ofono", + signal_name = "PropertyChanged", path_keyword="path", + interface_keyword="interface") + mainloop = gobject.MainLoop() + mainloop.run() -- 1.6.6.1 _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
