diff 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
line wrap: on
line diff
--- a/frontends/sat_bridge_frontend/DBus.py	Fri Jun 18 17:14:14 2010 +0800
+++ b/frontends/sat_bridge_frontend/DBus.py	Sat Jun 19 17:15:30 2010 +0800
@@ -109,6 +109,18 @@
     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 @@
 
     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)
+