--- test/list-services | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 test/list-services
diff --git a/test/list-services b/test/list-services new file mode 100755 index 0000000..bd52d71 --- /dev/null +++ b/test/list-services @@ -0,0 +1,27 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SessionBus() + +manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'), + 'org.ofono.mms.Manager') + +services = manager.GetServices() + +for path, properties in services: + print "[ %s ]" % (path) + + object = dbus.Interface(bus.get_object('org.ofono.mms', path), + 'org.ofono.mms.Service') + + try: + properties = object.GetProperties() + except: + continue + + for key in properties.keys(): + val = str(properties[key]) + print " %s = %s" % (key, val) + + print -- 1.7.9.5 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono