def __init__(self, name):
        """
        Initialise the connection manager.
        """
        bus_name = 'org.freedesktop.Telepathy.ConnectionManager.%s' % name
        object_path = '/org/freedesktop/Telepathy/ConnectionManager/%s' % name
        _ConnectionManager.__init__(self,
                                    dbus.service.BusName(bus_name, dbus.Bus(), do_not_queue=True),
                                    object_path)

        self._connections = set()
        self._protos = {}
Exemple #2
0
    def __init__(self, name):
        """
        Initialise the connection manager.
        """
        bus_name = 'org.freedesktop.Telepathy.ConnectionManager.%s' % name
        object_path = '/org/freedesktop/Telepathy/ConnectionManager/%s' % name
        _ConnectionManager.__init__(self,
                                    dbus.service.BusName(bus_name, dbus.Bus(), do_not_queue=True),
                                    object_path)

        self._interfaces = set()
        self._connections = set()
        self._protos = {} # proto name => Connection constructor
        self._protocols = {} # proto name => Protocol object

        DBusProperties.__init__(self)
        self._implement_property_get(CONN_MGR_INTERFACE, {
                'Interfaces': lambda: dbus.Array(self._interfaces, signature='s'),
                'Protocols': lambda: dbus.Dictionary(self._protocol_properties,
                                                     signature='sa{sv}')
                })
Exemple #3
0
    def __init__(self, name):
        """
        Initialise the connection manager.
        """
        bus_name = 'org.freedesktop.Telepathy.ConnectionManager.%s' % name
        object_path = '/org/freedesktop/Telepathy/ConnectionManager/%s' % name
        _ConnectionManager.__init__(
            self, dbus.service.BusName(bus_name, dbus.Bus(),
                                       do_not_queue=True), object_path)

        self._interfaces = set()
        self._connections = set()
        self._protos = {}  # proto name => Connection constructor
        self._protocols = {}  # proto name => Protocol object

        DBusProperties.__init__(self)
        self._implement_property_get(
            CONN_MGR_INTERFACE, {
                'Interfaces':
                lambda: dbus.Array(self._interfaces, signature='s'),
                'Protocols':
                lambda: dbus.Dictionary(self._protocol_properties,
                                        signature='sa{sv}')
            })