diff sat_bridge/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 23caf1051099
children d2630fba8dfd
line wrap: on
line diff
--- a/sat_bridge/DBus.py	Fri Jun 18 17:14:14 2010 +0800
+++ b/sat_bridge/DBus.py	Sat Jun 19 17:15:30 2010 +0800
@@ -248,6 +248,21 @@
         #debug("Progress asked for %s", id)
         return self.cb["getProgress"](id)
 
+    @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
+                         in_signature='', out_signature='a(sss)')
+    def getMenus(self):
+        return self.cb["getMenus"]()
+    
+    @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
+                         in_signature='sss', out_signature='s')
+    def getMenuHelp(self, category, name, type="NORMAL"):
+        return self.cb["getMenuHelp"](category, name, type)
+    
+    @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
+                         in_signature='ssss', out_signature='s')
+    def callMenu(self, category, name, type, profile_key):
+        return self.cb["callMenu"](category, name, type, profile_key)
+    
     def __attribute_string(self, in_sign):
         i=0
         idx=0