}
}
+static void slot_set_optimization_hint(const scim::HelperAgent *agent, scim::uint32 &hint) {
+ CSCLCoreImpl *impl = CSCLCoreImpl::get_instance();
+ if (impl) {
+ ISCLCoreEventCallback *callback = impl->get_core_event_callback();
+ if (callback) {
+ SECURE_LOGD("hint : %d\n", hint);
+ callback->on_set_optimization_hint(hint);
+ }
+ }
+}
+
/* Internal input handler function */
Eina_Bool input_handler(void *data, Ecore_Fd_Handler *fd_handler)
{
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_helper_agent.signal_connect_set_optimization_hint(scim::slot(slot_set_optimization_hint));
m_initialized = TRUE;
}
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) {}
+ virtual void on_set_optimization_hint(sclu32 hint) {}
ISCLCoreEventCallback() {
/* Current callback interface version is 1.1 */
KEYBOARD_UI_STATE_WILL_SHOW,
};
+enum KEYBOARD_OPTMIZATION_HINT
+{
+ KEYBOARD_OPTIMIZATION_HINT_NONE = 0,
+ KEYBOARD_OPTIMIZATION_HINT_SHOW_PREPARE,
+};
+
/**
* @brief The base class that provides features for a soft-keyboard
*