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
0b72ba22
Commit
0b72ba22
authored
Oct 06, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Module for controls settingsd functions
parent
c82abbcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
fmod_settingsd.py
functions/fmod_settingsd.py
+38
-0
No files found.
functions/fmod_settingsd.py
0 → 100644
View file @
0b72ba22
# -*- coding: utf-8 -*-
from
settingsd
import
const
from
settingsd
import
config
from
settingsd
import
service
from
settingsd
import
shared
from
settingsd
import
dbus_tools
##### Private classes #####
class
Settingsd
(
service
.
CustomObject
)
:
### DBus methods ###
@service.customMethod
(
dbus_tools
.
joinMethod
(
const
.
DEFAULT_SERVICE_NAME
,
"logger"
))
def
setLogLevel
(
self
,
log_level
)
:
config
.
setValue
(
config
.
APPLICATION_SECTION
,
"log_level"
,
log_level
)
###
@service.customMethod
(
dbus_tools
.
joinMethod
(
const
.
DEFAULT_SERVICE_NAME
,
"application"
))
def
quit
(
self
)
:
config
.
value
(
config
.
RUNTIME_SECTION
,
"application"
)
.
quit
()
##### Public classes #####
class
Service
(
service
.
Service
)
:
### Public ###
def
initService
(
self
)
:
shared
.
Functions
.
addSharedObject
(
"Settingsd"
,
Settingsd
(
const
.
DEFAULT_SERVICE_PATH
))
@classmethod
def
serviceName
(
self
)
:
return
const
.
MY_NAME
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