---
 test/monitor-mms |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/monitor-mms b/test/monitor-mms
index 188d028..ef17a13 100755
--- a/test/monitor-mms
+++ b/test/monitor-mms
@@ -29,6 +29,10 @@ def property_changed(name, value, member, path, interface):
        iface = interface[interface.rfind(".") + 1:]
        print "{%s} [%s] %s %s" % (iface, name, member, value)
 
+def report_changed(type, rec, status, path, interface):
+       iface = interface[interface.rfind(".") + 1:]
+       print "{%s} [%s] <%s> %s : %s" % (iface, path, type, rec, status)
+
 if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
@@ -75,5 +79,11 @@ if __name__ == '__main__':
                                                path_keyword="path",
                                                interface_keyword="interface")
 
+       bus.add_signal_receiver(report_changed,
+                                       bus_name="org.ofono.mms",
+                                       signal_name = "ReportChanged",
+                                               path_keyword="path",
+                                               interface_keyword="interface")
+
        mainloop = gobject.MainLoop()
        mainloop.run()
-- 
1.7.9.5

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to