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
This commit is contained in:
parent
5e0a757a1b
commit
f9bbbed6a0
1 changed files with 214 additions and 12 deletions
|
|
@ -109,6 +109,18 @@ class DBusBridgeFrontend(BridgeFrontend):
|
|||
def confirmationAnswer(self, id, accepted, data):
|
||||
return self.db_req_iface.confirmationAnswer(id, accepted, data)
|
||||
|
||||
def getProgress(self, id):
|
||||
return self.db_req_iface.getProgress(id)
|
||||
|
||||
def getMenus(self):
|
||||
return self.db_req_iface.getMenus()
|
||||
|
||||
def getMenuHelp(self, category, name, type="NORMAL"):
|
||||
return self.db_req_iface.getMenuHelp(category, name, type)
|
||||
|
||||
def callMenu(self, category, name, type="NORMAL", profile_key='@DEFAULT@'):
|
||||
return self.db_req_iface.callMenu(category, name, type, profile_key)
|
||||
|
||||
#methods from plugins
|
||||
def getRoomJoined(self, profile_key='@DEFAULT@'):
|
||||
return self.db_comm_iface.getRoomJoined(profile_key)
|
||||
|
|
@ -151,8 +163,7 @@ class DBusBridgeFrontend(BridgeFrontend):
|
|||
|
||||
def gatewayRegister(self, action, target, data):
|
||||
if data == None:
|
||||
data = [('', '')] #XXX: we have to this awful hack because python dbus need to guess the signature
|
||||
data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
|
||||
return self.db_req_iface.gatewayRegister(action, target, data)
|
||||
|
||||
def getProgress(self, id):
|
||||
return self.db_req_iface.getProgress(id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue