comparison frontends/src/wix/main_window.py @ 405:10b4f577d0c0

MUC update to follow wokkel's MUC branch update - bridge methods have been updated (API change) - plugin XEP-0045 has been updated
author Goffi <goffi@goffi.org>
date Sat, 08 Oct 2011 18:43:17 +0200
parents c34fd9d6242e
children cf005701624b
comparison
equal deleted inserted replaced
404:6a1c6c41b91b 405:10b4f577d0c0
187 wx.EVT_MENU(self, idFIND_GATEWAYS, self.onFindGateways) 187 wx.EVT_MENU(self, idFIND_GATEWAYS, self.onFindGateways)
188 188
189 189
190 def newMessage(self, from_jid, msg, type, to_jid, profile): 190 def newMessage(self, from_jid, msg, type, to_jid, profile):
191 QuickApp.newMessage(self, from_jid, msg, type, to_jid, profile) 191 QuickApp.newMessage(self, from_jid, msg, type, to_jid, profile)
192
193 def roomJoined(self, room_id, room_service, room_nicks, user_nick, profile):
194 super(MainWindow, self).roomJoined(room_id, room_service, room_nicks, user_nick, profile)
195 192
196 def showAlert(self, message): 193 def showAlert(self, message):
197 # TODO: place this in a separate class 194 # TODO: place this in a separate class
198 popup=wx.PopupWindow(self) 195 popup=wx.PopupWindow(self)
199 ### following code come from wxpython demo 196 ### following code come from wxpython demo
462 #_('Entering a MUC room'), 'test@conference.necton2.int') 459 #_('Entering a MUC room'), 'test@conference.necton2.int')
463 _('Entering a MUC room'), 'room@muc_service.server.tld') 460 _('Entering a MUC room'), 'room@muc_service.server.tld')
464 if dlg.ShowModal() == wx.ID_OK: 461 if dlg.ShowModal() == wx.ID_OK:
465 room_jid=JID(dlg.GetValue()) 462 room_jid=JID(dlg.GetValue())
466 if room_jid.is_valid(): 463 if room_jid.is_valid():
467 self.bridge.joinMUC(room_jid.domain, room_jid.node, self.profiles[self.profile]['whoami'].node, self.profile) 464 self.bridge.joinMUC(room_jid, self.profiles[self.profile]['whoami'].node, {}, self.profile)
468 else: 465 else:
469 error (_("'%s' is an invalid JID !"), room_jid) 466 error (_("'%s' is an invalid JID !"), room_jid)
470 467
471 def onFindGateways(self, e): 468 def onFindGateways(self, e):
472 debug(_("Find Gateways request")) 469 debug(_("Find Gateways request"))