Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
7b6ec750
Commit
7b6ec750
authored
Nov 15, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API for determine settingsd version and functionality level
parent
69ba18e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
fmod_settingsd.py
plugins/functions/fmod_settingsd.py
+15
-0
No files found.
plugins/functions/fmod_settingsd.py
View file @
7b6ec750
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment