core, bridge: added a profileSetDefault method

This commit is contained in:
Goffi 2015-11-14 19:18:10 +01:00
commit 182f192703
2 changed files with 40 additions and 2 deletions

View file

@ -428,6 +428,12 @@ class DbusObject(dbus.service.Object):
def profileIsSessionStarted(self, profile_key="@DEFAULT@"):
return self._callback("profileIsSessionStarted", unicode(profile_key))
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='s', out_signature='',
async_callbacks=None)
def profileSetDefault(self, arg_0):
return self._callback("profileSetDefault", unicode(arg_0))
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='ss', out_signature='b',
async_callbacks=('callback', 'errback'))

View file

@ -220,7 +220,7 @@ sig_out=s
param_0_default="@DEFAULT@"
doc=Get real profile name from profile key
doc_param_0=%(doc_profile_key)s
doc_return=Real profile name, or empty string if the profile doesn't exist
doc_return=Real profile name
[getProfilesList]
type=method
@ -229,6 +229,13 @@ sig_in=
sig_out=as
doc=Get all profiles
[profileSetDefault]
type=method
category=core
sig_in=s
sig_out=
doc=Set default profile
[getEntityData]
type=method
category=core