profile/ivi/weekeyboard.git
10 years agoFix handling of "Enter" key press
Juan Zhao [Tue, 24 Sep 2013 12:55:31 +0000 (12:55 +0000)]
Fix handling of "Enter" key press

Change-Id: I491f31c7a0090a3e9cc490d4274cf6bbe6f09492
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoHandle cases of Eldbus_Message_Iter argument being NULL
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 20:32:51 +0000 (17:32 -0300)]
Handle cases of Eldbus_Message_Iter argument being NULL

Change-Id: Idf20fee9617ea1322c145d4ebf9804973046110f
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoEnable use of IBusConfig interface
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 15:34:59 +0000 (12:34 -0300)]
Enable use of IBusConfig interface

Our implementation makes use of Eet as backend.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix section/key search
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 15:37:57 +0000 (12:37 -0300)]
Fix section/key search

We only need to set the id of a section if it is not the toplevel

Change-Id: If1bfcc07ca657e859493b1cf98c9e68d11016d13
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix implementation of wkb_ibus_config_eet_get_values()
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:33:15 +0000 (17:33 -0300)]
Fix implementation of wkb_ibus_config_eet_get_values()

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoThe return value of config_key_get must be a variant
Eduardo Lima (Etrunko) [Thu, 26 Sep 2013 18:18:36 +0000 (15:18 -0300)]
The return value of config_key_get must be a variant

We have to use another iterator inside the reply to pack the actual value

Change-Id: I7f4547fb1de3450621aa332ad1caa80f287f7969
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoNew function wkb_config_key_signature()
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:32:22 +0000 (17:32 -0300)]
New function wkb_config_key_signature()

This function can be used to know the signature of a given key, which is
stored in the struct wkb_config_key.

Also adds new function to return all signatures of a given key, which makes
use of the former.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd implementation of string_list_key_get()
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:11:00 +0000 (17:11 -0300)]
Add implementation of string_list_key_get()

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix signatures of wkb_ibus_config_eet public functions
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:26:01 +0000 (17:26 -0300)]
Fix signatures of wkb_ibus_config_eet public functions

This is to reflect the change on the previous commit.

Change-Id: I46199f4f67440660ccedfd7ab507da6b8345d3d4
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix signature of wkb_config_key_get
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:21:23 +0000 (17:21 -0300)]
Fix signature of wkb_config_key_get

Also change the various implementations to comply with it.

Change-Id: I669731d992c1b2f77e83c58708821b364810120f
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoCosmetic change for DBus message error checking macros
Eduardo Lima (Etrunko) [Wed, 25 Sep 2013 20:19:39 +0000 (17:19 -0300)]
Cosmetic change for DBus message error checking macros

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoMove IBus definitions to a dedicated header file
Eduardo Lima (Etrunko) [Fri, 20 Sep 2013 19:34:14 +0000 (16:34 -0300)]
Move IBus definitions to a dedicated header file

Change-Id: Iddfe3bc5cccd46087d0d78834b3320b0d49c8df2
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdded wkb_ibus_config_unregister
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:36:08 +0000 (15:36 -0300)]
Added wkb_ibus_config_unregister

Used to free a reference of the config_eet object, which is initialized
in the register function so it can be used by our IBusConfig interface
implementation.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix initializations in tests
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:33:38 +0000 (15:33 -0300)]
Fix initializations in tests

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdded missing implementation of config_key_string_list_set
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:22:19 +0000 (15:22 -0300)]
Added missing implementation of config_key_string_list_set

Also fix config_key_string_set

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd config_section_get_value and config_section_set_value
Eduardo Lima (Etrunko) [Tue, 17 Sep 2013 18:25:05 +0000 (15:25 -0300)]
Add config_section_get_value and config_section_set_value

Also add two helper functions for returning the section and key according
to the parameters

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoFix config_section initialization order
Eduardo Lima (Etrunko) [Mon, 16 Sep 2013 19:47:25 +0000 (16:47 -0300)]
Fix config_section initialization order

Also set the full 'path' for section id, in order to ease section discovery

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd accessor for key id
Eduardo Lima (Etrunko) [Mon, 16 Sep 2013 17:43:51 +0000 (14:43 -0300)]
Add accessor for key id

Also fix implementations of wkb_config_key_set and wkb_config_key_get.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoIntroduce struct _config_key
Eduardo Lima (Etrunko) [Thu, 12 Sep 2013 19:35:22 +0000 (16:35 -0300)]
Introduce struct _config_key

With this new struct we simplify the config_section implementation
and remove from it the responsibility for setting/getting values.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoImprove config_section base implementation
Eduardo Lima (Etrunko) [Tue, 10 Sep 2013 23:22:36 +0000 (20:22 -0300)]
Improve config_section base implementation

 - New macro _config_section_init to reduce code duplication.
 - New 'subsection' member of _config_section struct to keep track of
   hierarchy between sections. It is now necessary to pass the parent
   section as argument to the _new and _section_init functions.
 - We are now able to free all subsections and the actual struct on the
   base implementation, simplifying the specific implementations and
   saving some lines of code.
 - The same apply for the _set_defaults function, which is called for all
   subsections on the base implementation.
 - Protect against the case of specialized config_section implementation not
   providing the function in question.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoMake use of -Wno-unused-parameter
Eduardo Lima (Etrunko) [Thu, 19 Sep 2013 19:30:55 +0000 (16:30 -0300)]
Make use of -Wno-unused-parameter

Also fix usage of -Wextra

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoAdd dist-bzip2 to AM_INIT_AUTOMAKE v0.0.1
Eduardo Lima (Etrunko) [Wed, 18 Sep 2013 18:30:56 +0000 (15:30 -0300)]
Add dist-bzip2 to AM_INIT_AUTOMAKE

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
10 years agoInitial commit
Eduardo Lima (Etrunko) [Fri, 16 Aug 2013 20:08:23 +0000 (17:08 -0300)]
Initial commit

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>