| 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 |
path = services[0][0] |
| 12 |
|
| 13 |
service = dbus.Interface(bus.get_object('org.ofono.mms', path), |
| 14 |
'org.ofono.mms.Service') |
| 15 |
|
| 16 |
messages = service.GetMessages() |
| 17 |
|
| 18 |
for entry in messages: |
| 19 |
path = entry[0] |
| 20 |
properties = entry[1] |
| 21 |
|
| 22 |
print "[ %s ]" % (path) |
| 23 |
|
| 24 |
for key in properties.keys(): |
| 25 |
val = str(properties[key]) |
| 26 |
print " %s = %s" % (key, val) |
| 27 |
|
| 28 |
print |