Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0045.py @ 372:f964dcec1611
core: plugins refactored according to bridge + updatedValue now use profile
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 06 Jul 2011 01:06:18 +0200 |
parents | abe08fcb42d7 |
children | 10b4f577d0c0 |
comparison
equal
deleted
inserted
replaced
371:3ea41a199b36 | 372:f964dcec1611 |
---|---|
56 | 56 |
57 def __init__(self, host): | 57 def __init__(self, host): |
58 info(_("Plugin XEP_0045 initialization")) | 58 info(_("Plugin XEP_0045 initialization")) |
59 self.host = host | 59 self.host = host |
60 self.clients={} | 60 self.clients={} |
61 host.bridge.addMethod("joinMUC", ".communication", in_sign='ssss', out_sign='', method=self._join) | 61 host.bridge.addMethod("joinMUC", ".plugin", in_sign='ssss', out_sign='', method=self._join) |
62 host.bridge.addMethod("getRoomJoined", ".communication", in_sign='s', out_sign='a(ssass)', method=self.getRoomJoined) | 62 host.bridge.addMethod("getRoomJoined", ".plugin", in_sign='s', out_sign='a(ssass)', method=self.getRoomJoined) |
63 host.bridge.addMethod("getRoomSubjects", ".communication", in_sign='s', out_sign='a(sss)', method=self.getRoomSubjects) | 63 host.bridge.addMethod("getRoomSubjects", ".plugin", in_sign='s', out_sign='a(sss)', method=self.getRoomSubjects) |
64 host.bridge.addMethod("getUniqueRoomName", ".communication", in_sign='s', out_sign='s', method=self.getUniqueName) | 64 host.bridge.addMethod("getUniqueRoomName", ".plugin", in_sign='s', out_sign='s', method=self.getUniqueName) |
65 host.bridge.addSignal("roomJoined", ".communication", signature='ssasss') #args: room_id, room_service, room_nicks, user_nick, profile | 65 host.bridge.addSignal("roomJoined", ".plugin", signature='ssasss') #args: room_id, room_service, room_nicks, user_nick, profile |
66 host.bridge.addSignal("roomUserJoined", ".communication", signature='sssa{ss}s') #args: room_id, room_service, user_nick, user_data, profile | 66 host.bridge.addSignal("roomUserJoined", ".plugin", signature='sssa{ss}s') #args: room_id, room_service, user_nick, user_data, profile |
67 host.bridge.addSignal("roomUserLeft", ".communication", signature='sssa{ss}s') #args: room_id, room_service, user_nick, user_data, profile | 67 host.bridge.addSignal("roomUserLeft", ".plugin", signature='sssa{ss}s') #args: room_id, room_service, user_nick, user_data, profile |
68 host.bridge.addSignal("roomNewSubject", ".communication", signature='ssss') #args: room_id, room_service, subject, profile | 68 host.bridge.addSignal("roomNewSubject", ".plugin", signature='ssss') #args: room_id, room_service, subject, profile |
69 | 69 |
70 def __check_profile(self, profile): | 70 def __check_profile(self, profile): |
71 """check if profile is used and connected | 71 """check if profile is used and connected |
72 if profile known but disconnected, remove it from known profiles | 72 if profile known but disconnected, remove it from known profiles |
73 @param profile: profile to check | 73 @param profile: profile to check |