comparison plugins/plugin_xep_0096.py @ 72:f271fff3a713

MUC implementation: first draft /!\ the experimental muc branche of wokkel must be used - bridge: new roomJoined signal - wix: contact list widget is now in a separate file, and manage different kinds of presentation - wix: chat window now manage group chat (first draft, not working yet) - wix: constants are now in a separate class, so then can be accessible from everywhere - wix: new menu to join room (do nothing yet, except entering in a test room) - new plugin for xep 0045 (MUC), use wokkel experimental MUC branch - plugins: the profile is now given for get_handler, cause it can be used internally by a plugin (e.g.: xep-0045 plugin)
author Goffi <goffi@goffi.org>
date Sun, 21 Mar 2010 10:28:55 +1100
parents 86f1f7f6d332
children
comparison
equal deleted inserted replaced
71:efe81b61673c 72:f271fff3a713
58 info(_("Plugin XEP_0096 initialization")) 58 info(_("Plugin XEP_0096 initialization"))
59 self.host = host 59 self.host = host
60 self._waiting_for_approval = {} 60 self._waiting_for_approval = {}
61 host.bridge.addMethod("sendFile", ".communication", in_sign='sss', out_sign='s', method=self.sendFile) 61 host.bridge.addMethod("sendFile", ".communication", in_sign='sss', out_sign='s', method=self.sendFile)
62 62
63 def getHandler(self): 63 def getHandler(self, profile):
64 return XEP_0096_handler(self) 64 return XEP_0096_handler(self)
65 65
66 def xep_96(self, IQ, profile): 66 def xep_96(self, IQ, profile):
67 info (_("XEP-0096 management")) 67 info (_("XEP-0096 management"))
68 IQ.handled=True 68 IQ.handled=True