comparison frontends/src/bridge/DBus.py @ 337:4402ac630712

bridge: async callback managed in bridge_constructor + misc - the new flag async make the method asynchronous - new method asyncConnect (connect which return when the user is connected) - setMicroblogAccess added to DBus frontend
author Goffi <goffi@goffi.org>
date Thu, 26 May 2011 16:47:09 +0200
parents 953536246d9d
children e6047415868d
comparison
equal deleted inserted replaced
336:953536246d9d 337:4402ac630712
50 self.db_req_iface.connect_to_signal(functionName, handler) 50 self.db_req_iface.connect_to_signal(functionName, handler)
51 51
52 def addContact(self, entity, profile_key="@DEFAULT@"): 52 def addContact(self, entity, profile_key="@DEFAULT@"):
53 return self.db_comm_iface.addContact(entity, profile_key) 53 return self.db_comm_iface.addContact(entity, profile_key)
54 54
55 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None):
56 return self.db_comm_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=errback)
57
55 def callMenu(self, category, name, menu_type, profile_key): 58 def callMenu(self, category, name, menu_type, profile_key):
56 return unicode(self.db_req_iface.callMenu(category, name, menu_type, profile_key)) 59 return unicode(self.db_req_iface.callMenu(category, name, menu_type, profile_key))
57 60
58 def confirmationAnswer(self, id, accepted, data): 61 def confirmationAnswer(self, id, accepted, data):
59 return self.db_req_iface.confirmationAnswer(id, accepted, data) 62 return self.db_req_iface.confirmationAnswer(id, accepted, data)
197 def sendGroupBlog(self, groups, message, profile_key='@DEFAULT@'): 200 def sendGroupBlog(self, groups, message, profile_key='@DEFAULT@'):
198 return self.db_comm_iface.sendGroupBlog(groups, message, profile_key) 201 return self.db_comm_iface.sendGroupBlog(groups, message, profile_key)
199 202
200 def sendPersonalEvent(self, event_type, data, profile_key='@DEFAULT@'): 203 def sendPersonalEvent(self, event_type, data, profile_key='@DEFAULT@'):
201 return self.db_comm_iface.sendPersonalEvent(event_type, data, profile_key) 204 return self.db_comm_iface.sendPersonalEvent(event_type, data, profile_key)
205
206 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None):
207 return self.db_comm_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback)