Add GSettings schema for LUC handler
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Tue, 12 Jun 2012 13:16:59 +0000 (14:16 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Tue, 12 Jun 2012 15:04:31 +0000 (16:04 +0100)
commit1d9750e2c9a431800a276675f917c4ef3975c8d7
tree1ae68994225e91ca18b52112df74da2bda93dcda
parentc825f846c893d2c69045031bfeadc4ca190df9a9
Add GSettings schema for LUC handler

The Last User Context will be stored/accessed using GSettings. This
requires:
- a schema of the data that will be stored.
- a modification to Makefile.am to validate and install the schema.
- modifications to the code to use GSettings.

This commit adds the schema and changes to Makefile.am. The
org.genivi.LUCHandler1.gschema.xml file is generated from
org.genivi.LUCHandler1.gschema.xml.in when ./configure is executed.
This is to allow the schema ID and base path to include the
BOOT_MANAGER_VERSION_API defined in configure.ac, in case we ever
decide to break the API or GSettings key structure.

The default value for the "last-user-context" key is an empty dictionary
for now.
configure.ac
luc-handler/Makefile.am
luc-handler/org.genivi.LUCHandler1.gschema.xml.in [new file with mode: 0644]