---
test/get-properties | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100755 test/get-properties
diff --git a/test/get-properties b/test/get-properties
new file mode 100755
index 0000000..8887fcb
--- /dev/null
+++ b/test/get-properties
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SessionBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'),
+ 'org.ofono.mms.Manager')
+
+services = manager.GetServices()
+path = services[0][0]
+
+service = dbus.Interface(bus.get_object('org.ofono.mms', path),
+ 'org.ofono.mms.Service')
+
+properties = service.GetProperties()
+
+for p in properties:
+ if len(properties[p].__str__()) > 0:
+ print "%s Service Manager rule is: %s" %\
+ (p, properties[p])
+ print "------------------------------------------" \
+ "-----------------"
+ else:
+ print "%s Service Manager rule disabled" % (p)
--
1.7.9.5
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono