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)
def _reset(self): self._switchboards = {} self._orphaned_switchboards = set() self._requested_switchboards = {} self._pending_switchboards = {} self._orphaned_handlers = WeakSet()
def __init__(self): self._events_handlers = WeakSet()