Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 470:5c916b99d0f6
plugin groupblog, D-Bus frontend: added getLastGroupBlogs and getMassiveLastGroupBlogs
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 01 Apr 2012 19:48:31 +0200 |
parents | cf005701624b |
children | 6cd04adddaea |
comparison
equal
deleted
inserted
replaced
469:db4c2b82bab6 | 470:5c916b99d0f6 |
---|---|
168 | 168 |
169 #methods from plugins | 169 #methods from plugins |
170 def getRoomsJoined(self, profile_key): | 170 def getRoomsJoined(self, profile_key): |
171 return self.db_plugin_iface.getRoomsJoined(profile_key) | 171 return self.db_plugin_iface.getRoomsJoined(profile_key) |
172 | 172 |
173 def getRoomsSubjectss(self, profile_key): | 173 def getRoomsSubjects(self, profile_key): |
174 return self.db_plugin_iface.getRoomsSubjectss(profile_key) | 174 return self.db_plugin_iface.getRoomsSubjects(profile_key) |
175 | 175 |
176 def joinMUC(self, room_jid, nick, options, profile_key): | 176 def joinMUC(self, room_jid, nick, options, profile_key): |
177 if options == None: | 177 if options == None: |
178 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature | 178 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature |
179 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key) | 179 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key) |
241 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key) | 241 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key) |
242 | 242 |
243 def getLastMicroblogs(self, jid, max_items, profile_key, callback=None, errback=None): | 243 def getLastMicroblogs(self, jid, max_items, profile_key, callback=None, errback=None): |
244 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) | 244 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) |
245 | 245 |
246 def getMblogNodes(self, profile_key, callback=None, errback=None): | |
247 return self.db_plugin_iface.getMblogNodes(profile_key, reply_handler=callback, error_handler=errback) | |
248 | |
249 def sendGroupBlog(self, groups, message, profile_key): | 246 def sendGroupBlog(self, groups, message, profile_key): |
250 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key) | 247 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key) |
251 | 248 |
249 def getLastGroupBlogs(self, jid, max_items, profile_key, callback=None, errback=None): | |
250 return self.db_plugin_iface.getLastGroupBlogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) | |
251 | |
252 def getMassiveLastGroupBlogs(self, publishers_type, publishers, max_items=10, profile_key='@DEFAULT@', callback=None, errback=None): | |
253 return self.db_plugin_iface.getMassiveLastGroupBlogs(publishers_type, publishers, max_items, profile_key, reply_handler=callback, error_handler=errback) | |
254 | |
252 def sendPersonalEvent(self, event_type, data, profile_key): | 255 def sendPersonalEvent(self, event_type, data, profile_key): |
253 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key) | 256 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key) |
254 | 257 |
255 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): | 258 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): |
256 return self.db_plugin_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback) | 259 return self.db_plugin_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback) |