}
}
+static void slot_set_prediction_hint(const scim::HelperAgent *agent, const scim::String &prediction_hint) {
+ CSCLCoreImpl *impl = CSCLCoreImpl::get_instance();
+ if (impl) {
+ ISCLCoreEventCallback *callback = impl->get_core_event_callback();
+ if (callback) {
+ callback->on_set_prediction_hint(prediction_hint.c_str());
+ }
+ }
+}
+
/* Internal input handler function */
Eina_Bool input_handler(void *data, Ecore_Fd_Handler *fd_handler)
{
m_helper_agent.signal_connect_candidate_show(scim::slot(slot_candidate_show));
m_helper_agent.signal_connect_candidate_hide(scim::slot(slot_candidate_hide));
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_initialized = TRUE;
}
/* Added in callback interface version 1.1 */
virtual void on_process_input_device_event(sclu32 &type, sclchar *data, size_t &len, sclu32 *ret) {}
+ virtual void on_set_prediction_hint(const sclchar *prediction_hint) {}
+
ISCLCoreEventCallback() {
/* Current callback interface version is 1.1 */
m_version_major = 1;