diff options
author | Ronald Tessier <ronald.tessier@linux.intel.com> | 2012-08-24 14:58:18 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-08-24 10:53:34 -0500 |
commit | 47852a87e7efbef32ad4c40390aaa1c79305a9ae (patch) | |
tree | 2952769e4dcf7d214e57876a420572f6c0b93e00 | |
parent | d6d9b5f48ad8ea6b1f16bcd6350785fb4d63ee88 (diff) | |
download | mmsd-47852a87e7efbef32ad4c40390aaa1c79305a9ae.tar.gz |
test: Add test script to list services properties
-rwxr-xr-x | test/list-services | 27 |
1 files changed, 27 insertions, 0 deletions
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 |