small cleanup
[cnetworkmanager.git] / networkmanager / applet / connection.py
blob2d769e32f278dc74c1f0e7f867e93d1a533caee5
1 # -*- coding: utf-8 -*-
3 import dbus
4 from dbusclient import DBusClient
5 #from dbusclient.func import *
8 class Connection(DBusClient):
9 """NetworkManagerSettings.Connection (including Secrets)
11 Methods:
12 Update ( a{sa{sv}}: properties ) → nothing
13 Delete ( ) → nothing
14 GetSettings ( ) → a{sa{sv}}
15 GetSecrets ( s: setting_name, as: hints, b: request_new ) → a{sa{sv}}
17 Signals:
18 Updated ( a{sa{sv}}: settings )
19 Removed ( )
20 """
22 IFACE = "org.freedesktop.NetworkManagerSettings.Connection"
23 # FIXME
24 SECRETS_IFACE = "org.freedesktop.NetworkManagerSettings.Connection.Secrets"
26 def __init__(self, service, opath):
27 super(Connection, self).__init__(dbus.SystemBus(), service, opath, default_interface=self.IFACE)
29 # no adaptors necessary, it seems
30 Connection._add_adaptors(