1 # -*- coding: utf-8 -*-
4 from dbusclient
import DBusClient
5 #from dbusclient.func import *
8 class Connection(DBusClient
):
9 """NetworkManagerSettings.Connection (including Secrets)
12 Update ( a{sa{sv}}: properties ) → nothing
14 GetSettings ( ) → a{sa{sv}}
15 GetSecrets ( s: setting_name, as: hints, b: request_new ) → a{sa{sv}}
18 Updated ( a{sa{sv}}: settings )
22 IFACE
= "org.freedesktop.NetworkManagerSettings.Connection"
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
(