summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-10-29Fix deserialize for all IBus typesEduardo Lima (Etrunko)2-83/+129
This was wrong since the beginning, we needed another iterator to unpack the struct before actually getting the values. There was also need to add a specific function for deserializing IBusAttrList to an Eina_Array of IBusAttr. Change-Id: I2b01411a85c7d69a2d83d54917f87d93016bf75c Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-28New IBus helper functionsEduardo Lima (Etrunko)2-0/+116
- text_from_string: Returns a new wkb_ibus_text from a string - iter_append_text: Appends a wkb_ibus_text to a Eldbus_Message_Iter - engine_desc_from_message_iter: Deserialize IbusEngineDesc type Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-22Fix IBus shutdown processEduardo Lima (Etrunko)1-24/+4
Change-Id: Ia56d3d3856cfccd3a1b7301356b9d87d65f2f377 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-21Added proxy calls to IBusInputContext serviceEduardo Lima (Etrunko)3-2/+209
Change-Id: Id94424f6f58e2706c2e827f3f2c5e56a3000672b Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-21Fix ibus-test to match new wkb-ibus connection schemeEduardo Lima (Etrunko)1-10/+3
Change-Id: Iba231dd9e555e305757db91e4ff87279d40cb52e Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-21Attempt to reconnect to IBus daemon when connection is lostEduardo Lima (Etrunko)1-51/+155
Also fixes spawning of 'ibus-daemon' and 'ibus address' commands Change-Id: I0553bb57dc8ff1c39ff30248260290569553544a Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-21Nullify reference to config_eet in unregisterEduardo Lima (Etrunko)1-2/+5
Change-Id: I50fa4ac0b3f9e0d94417ade22ff7072179cc0b6f Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-21Rename global struct to avoid confusionEduardo Lima (Etrunko)1-59/+59
Change-Id: Icedeaf5cc3ada19be37d98e959f98c13b9539590 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-10New dedicated file for various IBus helper functionsEduardo Lima (Etrunko)4-395/+482
Change-Id: I229d63553c2e8917af196946f5d4864ff78881dc Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-09Fix query for IBus addressEduardo Lima (Etrunko)1-22/+24
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-09Add events to notify of IBus connect/disconnectEduardo Lima (Etrunko)2-1/+18
Change-Id: I1fb68f1840cb10a5517640221d132201c00e8235 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-03Fix engine/hangul config key namesEduardo Lima (Etrunko)1-16/+16
Change-Id: I9a3644ba244de4a1e296ba60e4836edf21fbb6d7 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-03Receive path as parameter in config_registerEduardo Lima (Etrunko)3-7/+6
Change-Id: Ibcf24447cff3cc560b75cf11bc3148c452779f2d Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-03Add missing extern "C" directives in header filesEduardo Lima (Etrunko)2-1/+8
Change-Id: Icd50b604a28b17a642f8037c4fb9d354a33ecd3e Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-03Fix init/shutdown process in wkb-ibus and wkb-ibus-testEduardo Lima (Etrunko)2-19/+27
Change-Id: Ib67336e6e6ea613ff9aa36590afc54edfb86431b Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-03Make use of Eina_Log for debugging messagesEduardo Lima (Etrunko)14-94/+213
Change-Id: I02d57342363ee5b9f7eed087453ba96d375acb14 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-10-02Fix handling of backspace key pressEduardo Lima (Etrunko)1-1/+4
Change-Id: I5f3aca27d1e03636dfcda1d5204abd9c7a4b0ed9 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-27Don't hardcode config file pathEduardo Lima (Etrunko)4-10/+24
We now depend on Efreet to figure out the directory where to save the configuration file used by IBusConfig service interface. Also fix initializations in wkb_ibus_config_register(). Change-Id: I33395d50431931e91955c833591314aec6c2a2e9 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-27Emit 'ValueChanged' signal upon changeEduardo Lima (Etrunko)4-6/+25
Change-Id: I4079c68f6c2b22da7d74115ad50fe894278c515b Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-27Write modifications to Eet file upon changeEduardo Lima (Etrunko)1-1/+11
Change-Id: I53de2ae16b80151eb422b65ac4c06cdc23457c9e Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Fix handling of "Enter" key pressJuan Zhao1-1/+3
Change-Id: I491f31c7a0090a3e9cc490d4274cf6bbe6f09492 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Handle cases of Eldbus_Message_Iter argument being NULLEduardo Lima (Etrunko)1-10/+15
Change-Id: Idf20fee9617ea1322c145d4ebf9804973046110f Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Enable use of IBusConfig interfaceEduardo Lima (Etrunko)3-131/+75
Our implementation makes use of Eet as backend. Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Fix section/key searchEduardo Lima (Etrunko)1-11/+12
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>
2013-09-26Fix implementation of wkb_ibus_config_eet_get_values()Eduardo Lima (Etrunko)1-0/+16
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26The return value of config_key_get must be a variantEduardo Lima (Etrunko)1-1/+13
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>
2013-09-26New function wkb_config_key_signature()Eduardo Lima (Etrunko)2-15/+25
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>
2013-09-26Add implementation of string_list_key_get()Eduardo Lima (Etrunko)1-1/+12
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Fix signatures of wkb_ibus_config_eet public functionsEduardo Lima (Etrunko)2-45/+46
This is to reflect the change on the previous commit. Change-Id: I46199f4f67440660ccedfd7ab507da6b8345d3d4 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Fix signature of wkb_config_key_getEduardo Lima (Etrunko)2-25/+26
Also change the various implementations to comply with it. Change-Id: I669731d992c1b2f77e83c58708821b364810120f Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-26Cosmetic change for DBus message error checking macrosEduardo Lima (Etrunko)3-41/+39
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-20Move IBus definitions to a dedicated header fileEduardo Lima (Etrunko)6-15/+51
Change-Id: Iddfe3bc5cccd46087d0d78834b3320b0d49c8df2 Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-19Added wkb_ibus_config_unregisterEduardo Lima (Etrunko)3-1/+29
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>
2013-09-19Fix initializations in testsEduardo Lima (Etrunko)2-7/+30
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-19Added missing implementation of config_key_string_list_setEduardo Lima (Etrunko)1-2/+13
Also fix config_key_string_set Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-19Add config_section_get_value and config_section_set_valueEduardo Lima (Etrunko)1-2/+71
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>
2013-09-19Fix config_section initialization orderEduardo Lima (Etrunko)1-10/+14
Also set the full 'path' for section id, in order to ease section discovery Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-19Add accessor for key idEduardo Lima (Etrunko)2-3/+10
Also fix implementations of wkb_config_key_set and wkb_config_key_get. Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-19Introduce struct _config_keyEduardo Lima (Etrunko)4-215/+342
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>
2013-09-19Improve config_section base implementationEduardo Lima (Etrunko)1-110/+106
- 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>
2013-09-19Make use of -Wno-unused-parameterEduardo Lima (Etrunko)1-1/+7
Also fix usage of -Wextra Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-09-18Add dist-bzip2 to AM_INIT_AUTOMAKEv0.0.1Eduardo Lima (Etrunko)1-1/+1
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-08-16Initial commitEduardo Lima (Etrunko)42-0/+5653
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>