comparison frontends/sat_bridge_frontend/DBus.py @ 101:783e9d6980ec

Couchsurfing plugin: first draft SàT core: adding additionnal menu method bridge: new methods getMenus, getMenuHelp and callMenu wix: new menu are added on startup CS plugin: login on CS
author Goffi <goffi@goffi.org>
date Sat, 19 Jun 2010 17:15:30 +0800
parents 2503de7fb4c7
children d2630fba8dfd
comparison
equal deleted inserted replaced
100:50f1591c8fc6 101:783e9d6980ec
107 return self.db_req_iface.launchAction(type, data) 107 return self.db_req_iface.launchAction(type, data)
108 108
109 def confirmationAnswer(self, id, accepted, data): 109 def confirmationAnswer(self, id, accepted, data):
110 return self.db_req_iface.confirmationAnswer(id, accepted, data) 110 return self.db_req_iface.confirmationAnswer(id, accepted, data)
111 111
112 def getProgress(self, id):
113 return self.db_req_iface.getProgress(id)
114
115 def getMenus(self):
116 return self.db_req_iface.getMenus()
117
118 def getMenuHelp(self, category, name, type="NORMAL"):
119 return self.db_req_iface.getMenuHelp(category, name, type)
120
121 def callMenu(self, category, name, type="NORMAL", profile_key='@DEFAULT@'):
122 return self.db_req_iface.callMenu(category, name, type, profile_key)
123
112 #methods from plugins 124 #methods from plugins
113 def getRoomJoined(self, profile_key='@DEFAULT@'): 125 def getRoomJoined(self, profile_key='@DEFAULT@'):
114 return self.db_comm_iface.getRoomJoined(profile_key) 126 return self.db_comm_iface.getRoomJoined(profile_key)
115 127
116 def getRoomSubjects(self, profile_key='@DEFAULT@'): 128 def getRoomSubjects(self, profile_key='@DEFAULT@'):
149 def in_band_register(self, target, profile_key='@DEFAULT@'): 161 def in_band_register(self, target, profile_key='@DEFAULT@'):
150 return self.db_comm_iface.in_band_register(target, profile_key) 162 return self.db_comm_iface.in_band_register(target, profile_key)
151 163
152 def gatewayRegister(self, action, target, data): 164 def gatewayRegister(self, action, target, data):
153 if data == None: 165 if data == None:
154 data = [('', '')] #XXX: we have to this awful hack because python dbus need to guess the signature 166 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
155 return self.db_req_iface.gatewayRegister(action, target, data) 167 return self.db_req_iface.gatewayRegister(action, target, data)
156 168
157 def getProgress(self, id): 169
158 return self.db_req_iface.getProgress(id)