Added flush() function to IMEngineInstanceBase 83/94783/2
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 1 Nov 2016 06:33:36 +0000 (15:33 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 1 Nov 2016 07:33:13 +0000 (16:33 +0900)
Change-Id: I4e8faa9b97354316dab84cd322d53a44ca2677e5

ism/src/scim_helper.cpp
ism/src/scim_helper.h
ism/src/scim_imengine.cpp
ism/src/scim_imengine.h

index 1962a2d..95d9222 100644 (file)
@@ -2495,6 +2495,18 @@ HelperAgent::reset_keyboard_ise (void) const
 }
 
 /**
+ * @brief Request to flush keyboard ISE.
+ */
+void
+HelperAgent::flush_keyboard_ise (void) const
+{
+    LOGD ("");
+    if (!m_impl->si.null ()) {
+        m_impl->si->flush ();
+    }
+}
+
+/**
  * @brief Request panel to hide ISE.
  */
 void
index 269730e..00bd158 100644 (file)
@@ -738,6 +738,11 @@ public:
     void reset_keyboard_ise       (void) const;
 
     /**
+     * @brief Request to flush keyboard ISE.
+     */
+    void flush_keyboard_ise       (void) const;
+
+    /**
      * @brief Send a private command to an application
      *
      * @param command The private command sent from IME.
index 2f0696d..f49321d 100644 (file)
@@ -433,6 +433,11 @@ IMEngineInstanceBase::update_bidi_direction (unsigned int bidi_direction)
 }
 
 void
+IMEngineInstanceBase::flush ()
+{
+}
+
+void
 IMEngineInstanceBase::update_candidate_item_layout (const std::vector<unsigned int> &row_items)
 {
 }
index afb64c3..ba88201 100644 (file)
@@ -770,6 +770,14 @@ public:
      */
     virtual void update_bidi_direction (unsigned int bidi_direction);
 
+    /**
+    * @brief Flushes the internal state of engine instance.
+    *
+    * All status of this engine instance should be flushed,
+    * including the working encoding.
+    */
+    virtual void flush ();
+
 protected:
     /**
      * @name Signal activation functions