test/get-services
raw| 1 | #!/usr/bin/python |
| 2 | |
| 3 | import dbus |
| 4 | |
| 5 | bus = dbus.SessionBus() |
| 6 | |
| 7 | manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'), |
| 8 | 'org.ofono.mms.Manager') |
| 9 | |
| 10 | services = manager.GetServices() |
| 11 | |
| 12 | for entry in services: |
| 13 | path = entry[0] |
| 14 | properties = entry[1] |
| 15 | |
| 16 | print "[ %s ]" % (path) |
| 17 | |
| 18 | for key in properties.keys(): |
| 19 | val = str(properties[key]) |
| 20 | print " %s = %s" % (key, val) |
| 21 | |
| 22 |