preferences service, a first implementation
Michael 'Mickey' Lauer
mickey at vanille-media.de
Tue Jun 10 14:42:12 CEST 2008
Hi Guillaume,
> Today I worked on the first draft of the configurations (or preferences)
> service.
> I didn't use an existing system, because I want something small, and
> that is aware of the profiles (because many applications have parameters
> that depend of the profile)
Ok, cool!
> Mickey, can I put the code in the git repository ?
For sure, please check this code into git.freesmartphone.org -- I have already
setup a repository for it (opreferences.git). Your ssh key should give you
access.
> == interface "org.freesmartphone.conf" ==
Please use org.freesmartphone.Preferences as the interface and
org.freesmartphone.preferencesd as bus name.
> - method set_profile(s)
> - method get_service(s) -> o // return a proxy to a service conf
> // implemeting org.freesmartphone.conf.service
>
> == interface "org.freesmartphone.conf.service" ==
> - method set(s,v) // set a key value (in the current profile)
> - method get(s) -> o // get a key value (in the current profile)
> - signal notify(s,v) // emitted when a parameter value changes
Please use dbus naming conventions, see our style guide from OTAPI:
Style Guide:
* dbus methods and signals are CamelCased
* Use Get/Set prefixes for accessors (GetServiceCenter, SetServiceCenter)
* Use Verbs for operations (ListProviders, Unlock, SendAuthCode)
* Use similar terms for similar operations (ListProviders, ListCells)
> OK That's it for the moment. I implemented this with python.
That's cool. We will stick with Python until we are 110% satisfied with the
interface ;)
Good work!
:M:
--
Dr. Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
More information about the smartphones-standards
mailing list