Commit 7b6ec750 authored by Devaev Maxim's avatar Devaev Maxim

API for determine settingsd version and functionality level

parent 69ba18e7
......@@ -9,6 +9,7 @@ from settingsd import dbus_tools
##### Private constants #####
SETTINGSD_METHODS_NAMESPACE = dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "commonInfo.settingsd")
LOGGER_METHODS_NAMESPACE = dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "logger")
APPLICATION_METHODS_NAMESPACE = dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "application")
......@@ -18,6 +19,20 @@ class Settingsd(service.CustomObject) :
### DBus methods ###
@service.customMethod(SETTINGSD_METHODS_NAMESPACE, out_signature="s")
def version(self) :
return const.VERSION
@service.customMethod(SETTINGSD_METHODS_NAMESPACE, out_signature="s")
def versionStatus(self) :
return const.VERSION_STATUS
@service.customMethod(SETTINGSD_METHODS_NAMESPACE, out_signature="i")
def functionalityLevel(self) :
return const.FUNCTIONALITY_LEVEL
###
@service.customMethod(LOGGER_METHODS_NAMESPACE, in_signature="i")
def setLogLevel(self, log_level) :
config.setValue(config.APPLICATION_SECTION, "log_level", log_level)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment