diff options
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() |