Refactored property dumping.
[cnetworkmanager.git] / applet06.py
bloba2eb1f09b9b0f1a748600def17ae1be95d179521
1 from connection06 import cConnection_06
2 from applet import cApplet
4 NETWORK_TYPE_ALLOWED = 1
5 class cApplet_06(cApplet):
6 def __init__(self, svc, opath):
7 self.svc = svc
8 self.opath = opath
9 self.io = bus.get_object(self.svc, self.opath)
10 self.ii = dbus.Interface(self.io, 'org.freedesktop.NetworkManagerInfo')
12 def isSystem(self):
13 return False;
15 def myConnection(self, opath):
16 return cConnection_06(self, opath)
18 # TODO also VPN conns
19 def Connections(self):
20 names = self.ii.getNetworks(NETWORK_TYPE_ALLOWED)
21 return map(self.myConnection, names)