Added API for flushing keyboard ise 84/94784/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 1 Nov 2016 07:34:40 +0000 (16:34 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 1 Nov 2016 07:34:40 +0000 (16:34 +0900)
Change-Id: I25f49f4e7429aea5f36419e2869cac10551a4a3b

src/sclconnection-isf.cpp
src/sclconnection-isf.h
src/sclconnection.cpp
src/sclconnection.h
src/sclcore.cpp
src/sclcore.h
src/sclcoreimpl.cpp
src/sclcoreimpl.h

index b0c0357..1e0daea 100644 (file)
@@ -824,6 +824,13 @@ void CSCLConnectionISF::reset_keyboard_ise()
     }
 }
 
+void CSCLConnectionISF::flush_keyboard_ise()
+{
+    if (m_initialized) {
+        m_helper_agent.flush_keyboard_ise();
+    }
+}
+
 void CSCLConnectionISF::send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask)
 {
     if (m_initialized) {
index 4768c1a..b0621ab 100644 (file)
@@ -57,6 +57,7 @@ public:
 
     void send_imengine_event(sclint ic, const sclchar *ic_uuid, const sclint command, const sclu32 value);
     void reset_keyboard_ise();
+    void flush_keyboard_ise();
     void send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask);
     void forward_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask);
     void commit_string(sclint ic, const sclchar *ic_uuid, const sclchar *str);
index 71398f7..7694114 100644 (file)
@@ -147,6 +147,13 @@ void CSCLConnection::reset_keyboard_ise()
     }
 }
 
+void CSCLConnection::flush_keyboard_ise()
+{
+    if (m_impl) {
+        m_impl->flush_keyboard_ise();
+    }
+}
+
 void CSCLConnection::send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask)
 {
     if (m_impl) {
index 78bacfe..302583b 100644 (file)
@@ -57,6 +57,7 @@ public:
 
     virtual void send_imengine_event(sclint ic, const sclchar *ic_uuid, const sclint command, const sclu32 value);
     virtual void reset_keyboard_ise();
+    virtual void flush_keyboard_ise();
     virtual void send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask);
     virtual void forward_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask);
     virtual void commit_string(sclint ic, const sclchar *ic_uuid, const sclchar *str);
index b36a1c1..c543dcd 100644 (file)
@@ -116,6 +116,13 @@ void CSCLCore::reset_keyboard_ise()
     }
 }
 
+void CSCLCore::flush_keyboard_ise()
+{
+    if (m_impl) {
+        m_impl->flush_keyboard_ise();
+    }
+}
+
 void CSCLCore::send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask)
 {
     if (m_impl) {
@@ -351,4 +358,4 @@ void CSCLCore::request_ise_hide() const
     if (m_impl) {
         m_impl->request_ise_hide();
     }
-}
\ No newline at end of file
+}
index 9971048..a3fbdd6 100644 (file)
@@ -99,6 +99,11 @@ public:
     void reset_keyboard_ise();
 
     /**
+     * @brief Send a flush keyboard Event to IMEngine
+     */
+    void flush_keyboard_ise();
+
+    /**
      * @brief Send a KeyEvent to ISF
      *
      * @param[in] ic The handle of the IMEngineInstance to receive the event.
index 2e113cc..468078e 100644 (file)
@@ -142,6 +142,11 @@ void CSCLCoreImpl::reset_keyboard_ise()
     m_connection.reset_keyboard_ise();
 }
 
+void CSCLCoreImpl::flush_keyboard_ise()
+{
+    m_connection.flush_keyboard_ise();
+}
+
 void CSCLCoreImpl::send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask)
 {
     m_connection.send_key_event(ic, ic_uuid, keycode, keymask);
@@ -367,4 +372,4 @@ void CSCLCoreImpl::get_selection_text(sclchar **text)
 void CSCLCoreImpl::request_ise_hide()
 {
     m_connection.request_ise_hide();
-}
\ No newline at end of file
+}
index 1151b54..6145699 100644 (file)
@@ -62,6 +62,7 @@ public:
 
     void send_imengine_event(sclint ic, const sclchar *ic_uuid, const sclint command, const sclu32 value);
     void reset_keyboard_ise();
+    void flush_keyboard_ise();
     void send_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask);
     void forward_key_event(sclint ic, const sclchar *ic_uuid, sclu32 keycode, sclu16 keymask);
     void commit_string(sclint ic, const sclchar *ic_uuid, const sclchar *str);