From 9faeb0674c012383a2d01a9c17d97f94cc5a5897 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 31 Jan 2010 05:33:54 +0000 Subject: cleanup, launch.sh, makefile --- src/handler.py | 86 ---------------------------------------------------------- 1 file changed, 86 deletions(-) (limited to 'src/handler.py') 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 -- cgit v1.2.3