diff options
Diffstat (limited to 'src/handler.py')
-rw-r--r-- | src/handler.py | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/src/handler.py b/src/handler.py index 8942ae7c..681af6d7 100644 --- a/src/handler.py +++ b/src/handler.py @@ -49,101 +49,15 @@ class Handler(Singleton): 'room-iq': list(), # An iq is received # Args: the stanza object - - # 'xmpp-presence-handler': list(), - # # A presence is received - # # Args: the stanza object - - # 'xmpp-iq-handler': list(), - # # An iq is received - # # Args: the stanza object - - # 'xmpp-message-handler': list(), - # # A message is received - # # Args: the stanza object - - # # - GUI event - - # 'on-quit': list(), - # # When the user wants to quit. - - # # - Roster and presence - - # 'on-disconnected': list(), - # # When the user is disconnected from the server. - - # 'on-message-received': list(), - # # When a message is received. - # # Args: jid, msg, subject, typ - - # 'send-message': list(), - # # Send a message to someone. - # # Args: jid, msg, subj, typ - - # # - vCard (XEP-0054) - - # 'vcard-request': list(), - # # Request a vcard. - # # Args: jid - - # 'on-vcard-received': list(), - # # When a vcard is received. - # # Args: jid, vcard - - # # - Multi-User Chat (XEP-0045) - - # 'gui-join-room': list(), - # # Join a room inside the GUI (call `join-room`). - # # Args: room, nickname - - # 'quit-room': list(), - # # Quit a room. - # # Args: room, nick - - # 'on-muc-message-received': list(), - # # When a message is received. - # # Args: jid, msg, subject, typ, stanza - - # 'on-muc-presence-changed': list(), - # # When someone in the roster changes his presence. - # # Args: jid, priority, show, status, stanza - - # 'on-muc-error': list(), - # # When the MUC composant sends an error - # # Args: room, code, msg - - # 'eject-user': list(), - # # When the user try to eject another one. - # # Args: room, action, nick, reason - - # 'change-user-role': list(), - # # When the user try to change the role of someone. - # # Args: room, nick, role - - # 'change-user-affiliation': list(), - # # When the user try to change the affiliation of someone. - # # Args: room, jid, aff - - # 'change-subject': list(), - # # When the user try to change the topic. - # # Args: room, subject - - # 'change-nick': list() - # # When the user try to change his nick. - # # Args: room, nick } def connect(self, signal, func): """Connect a function to a signal.""" if func not in self.__signals__[signal]: self.__signals__[signal].append(func) - else: - print "signal %s doesn't exist." % signal def emit(self, signal, **kwargs): """Emit a signal.""" if self.__signals__.has_key(signal): for func in self.__signals__[signal]: func(**kwargs) - else: - print "signal %s doesn't exist." % signal |