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
|
|
@ -248,6 +248,21 @@ class DbusObject(dbus.service.Object):
|
|||
#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
|
||||
|
|
|
|||
Loading…
Reference in a new issue