예제 #1
0
    def __init__(self, client):
        """Initializer

            @param client: the main Client instance"""
        gobject.GObject.__init__(self)
        self._client = weakref.proxy(client)

        self._handlers_class = set()
        self._orphaned_handlers = WeakSet()
        self._switchboards = {}
        self._orphaned_switchboards = set()
        self._pending_switchboards = {}

        self._client._protocol.connect("switchboard-invitation-received",
                self._ns_switchboard_invite)
예제 #2
0
 def _reset(self):
     self._switchboards = {}
     self._orphaned_switchboards = set()
     self._requested_switchboards = {}
     self._pending_switchboards = {}
     self._orphaned_handlers = WeakSet()
예제 #3
0
 def __init__(self):
     self._events_handlers = WeakSet()