Commit 70117831 authored by Devaev Maxim's avatar Devaev Maxim

Added signatures to self-control

parent 7b145eef
...@@ -8,18 +8,23 @@ from settingsd import shared ...@@ -8,18 +8,23 @@ from settingsd import shared
from settingsd import dbus_tools from settingsd import dbus_tools
##### Private constants #####
SETTINGSD_LOGGER_METHODS_NAMESPACE = dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "logger")
SETTINGSD_APPLICATION_METHODS_NAMESPACE = dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "application")
##### Private classes ##### ##### Private classes #####
class Settingsd(service.CustomObject) : class Settingsd(service.CustomObject) :
### DBus methods ### ### DBus methods ###
@service.customMethod(dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "logger")) @service.customMethod(SETTINGSD_LOGGER_METHODS_NAMESPACE, in_signature="i")
def setLogLevel(self, log_level) : def setLogLevel(self, log_level) :
config.setValue(config.APPLICATION_SECTION, "log_level", log_level) config.setValue(config.APPLICATION_SECTION, "log_level", log_level)
### ###
@service.customMethod(dbus_tools.joinMethod(const.DEFAULT_SERVICE_NAME, "application")) @service.customMethod(SETTINGSD_APPLICATION_METHODS_NAMESPACE)
def quit(self) : def quit(self) :
config.value(config.RUNTIME_SECTION, "application").quit() config.value(config.RUNTIME_SECTION, "application").quit()
......
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