Moved dbusclient out of networkmanager.
[cnetworkmanager.git] / networkmanager / settings / connection.py
blob2e3ee7a2cbbdbfdb2634d2e3fdc471a191fc1c6a
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 # FIXME into DBusClient ctor
23 IFACE = "org.freedesktop.NetworkManagerSettings.Connection"
24 # FIXME
25 SECRETS_IFACE = "org.freedesktop.NetworkManagerSettings.Connection.Secrets"
27 def __init__(self, service, opath):
28 super(Connection, self).__init__(dbus.SystemBus(), service, opath, default_interface=self.IFACE)
30 Connection._add_adaptors(
31 methods = {
33 signals = {