Add candidate string. 71/48771/1
authorshoum.chen@samsung.com <shoum.chen@samsung.com>
Fri, 25 Sep 2015 04:02:00 +0000 (12:02 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 29 Sep 2015 08:26:48 +0000 (17:26 +0900)
Change-Id: Ic5d22a369b4e5f983f212bebda57a14db2532dff
Signed-off-by: shoum.chen@samsung.com <shoum.chen@samsung.com>
src/sclconnection-isf.cpp
src/sclcoretypes.h

index b2eb1bc..74f7e0a 100644 (file)
@@ -426,6 +426,12 @@ static void slot_update_lookup_table (const scim::HelperAgent *, scim::LookupTab
                 lookup_table.candidate_labels.push_back(scim::utf8_wcstombs(label).c_str());
             }
 
+            int nCandidateSize = table.get_current_page_size();
+            for(int index=0; index<nCandidateSize; ++index){
+                scim::WideString candidate_str = table.get_candidate_in_current_page(index);
+                lookup_table.candidate.push_back(scim::utf8_wcstombs(candidate_str).c_str());
+            }
+
             callback->on_update_lookup_table(lookup_table);
 
             std::vector<scim::WideString> labels;
index 5243fdc..1ed41e0 100644 (file)
@@ -49,6 +49,7 @@ typedef struct _SclCandidateTable{
     sclboolean page_size_fixed;
 
     std::vector<std::string> candidate_labels;
+    std::vector<std::string> candidate;
 } SclCandidateTable;
 
 }