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 b0c035704936ded430797acf7c302ff3c600e7fc..1e0daead5815cb5ff2b6efb1957ffef88569183f 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 4768c1a351d0601f90b5e2bde26cbfd26e276ac6..b0621ab8fd10522518b0efa16680ba2a8e66de0b 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 71398f7bc1a1cc07db7c30e1c57bdbdc05dc2523..76941145852ecd4324c3587d619a396d90156b8d 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 78bacfe229141dd2acdb9ce5563cc9c254b81e9a..302583bc2200419f82454cd9186b4624432ad96b 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 b36a1c1f746fc89ee441e678fc977ae31e41fa28..c543dcde1819d9f61fee8e45521aaf70e63cb09e 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 997104822870faebd09dcb889f0b0a5f85e75b27..a3fbdd66825091d9ccfea0f17e0f217efe714cae 100644 (file)
@@ -98,6 +98,11 @@ public:
      */
     void reset_keyboard_ise();
 
+    /**
+     * @brief Send a flush keyboard Event to IMEngine
+     */
+    void flush_keyboard_ise();
+
     /**
      * @brief Send a KeyEvent to ISF
      *
index 2e113ccf43a7362419f7f9ed5c3a22cd4c36422b..468078e17b81bd10ed18bfadbc59df9ebbe7dc69 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 1151b54b4088cc42d25a57e9c3a00fa1531a53e1..61456992afc03b56f84312c681310e4251d52931 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);