From: Jihoon Kim Date: Thu, 26 Oct 2017 08:47:51 +0000 (+0900) Subject: Support prediction_hint_data X-Git-Tag: accepted/tizen/unified/20171219.183920~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07a728865ee13613f6267c94944510b65d4ee9ef;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Support prediction_hint_data Change-Id: I39dda4cd5240581fe678f3b87ad098fe636f9f69 Signed-off-by: Jihoon Kim --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index a7bcd4e..4d1f80c 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -658,6 +658,17 @@ static void slot_set_mime_type(const scim::HelperAgent *agent, const scim::Strin } } +static void slot_set_prediction_hint_data(const scim::HelperAgent *agent, int ic, const scim::String &key, const scim::String &value) { + CSCLCoreImpl *impl = CSCLCoreImpl::get_instance(); + if (impl) { + ISCLCoreEventCallback *callback = impl->get_core_event_callback(); + if (callback) { + SECURE_LOGD("key : %s, value : %s\n", key.c_str(), value.c_str()); + callback->on_set_prediction_hint_data(key.c_str(), value.c_str()); + } + } +} + /* Internal input handler function */ Eina_Bool input_handler(void *data, Ecore_Fd_Handler *fd_handler) { @@ -751,6 +762,7 @@ sclboolean CSCLConnectionISF::init() m_helper_agent.signal_connect_process_input_device_event(scim::slot(slot_process_input_device_event)); m_helper_agent.signal_connect_set_prediction_hint(scim::slot(slot_set_prediction_hint)); m_helper_agent.signal_connect_set_mime_type(scim::slot(slot_set_mime_type)); + m_helper_agent.signal_connect_set_prediction_hint_data(scim::slot(slot_set_prediction_hint_data)); m_initialized = TRUE; } diff --git a/src/sclcorecallback.h b/src/sclcorecallback.h index 5a44f99..118e841 100644 --- a/src/sclcorecallback.h +++ b/src/sclcorecallback.h @@ -91,6 +91,7 @@ struct ISCLCoreEventCallback { virtual void on_set_prediction_hint(const sclchar *prediction_hint) {} virtual void on_set_mime_type(const sclchar *mime_type) {} + virtual void on_set_prediction_hint_data(const sclchar *key, const sclchar *value) {} ISCLCoreEventCallback() { /* Current callback interface version is 1.1 */