Add element type for profiles
[framework/connectivity/connman.git] / test / list-profiles
1 #!/usr/bin/python
2
3 import dbus
4
5 bus = dbus.SystemBus()
6
7 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
8                                         "org.moblin.connman.Manager")
9
10 profiles = manager.ListProfiles()
11
12 for path in profiles:
13         print "[ %s ]" % (path)
14
15         element = dbus.Interface(bus.get_object("org.moblin.connman", path),
16                                                 "org.moblin.connman.Profile")
17
18         properties = element.GetProperties()
19         for key in properties.keys():
20                 print "    %s = %s" % (key, properties[key])
21
22         print