diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-15 11:36:26 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-15 11:36:26 -0500 |
commit | ac9e1157ab9a29e61b8b3eb4c5a64fc94b61f772 (patch) | |
tree | a1cd3ed30407b11e689b2142d1e49b3f05358a17 /test/monitor-ofono | |
parent | 77361655c00142c22609a40c1905df90e53c810e (diff) | |
download | ofono-ac9e1157ab9a29e61b8b3eb4c5a64fc94b61f772.tar.bz2 |
test: Update monitor-ofono with USSD support
Diffstat (limited to 'test/monitor-ofono')
-rwxr-xr-x | test/monitor-ofono | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/monitor-ofono b/test/monitor-ofono index e4375b89..f7d1a173 100755 --- a/test/monitor-ofono +++ b/test/monitor-ofono @@ -71,6 +71,10 @@ def message(msg, args, member, path, interface): print "{%s} [%s] %s %s (%s)" % (iface, path, member, str(msg), pretty(args)) +def ussd(msg, member, path, interface): + iface = interface[interface.rfind(".") + 1:] + print "{%s} [%s] %s %s" % (iface, path, member, str(msg)) + if __name__ == '__main__': dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) @@ -142,5 +146,13 @@ if __name__ == '__main__': path_keyword="path", interface_keyword="interface") + for member in ["NotificationReceived", "RequestReceived"]: + bus.add_signal_receiver(ussd, + bus_name="org.ofono", + signal_name = member, + member_keyword="member", + path_keyword="path", + interface_keyword="interface") + mainloop = gobject.MainLoop() mainloop.run() |