Added request for hiding ISE 62/89362/2
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 23 Sep 2016 07:42:13 +0000 (16:42 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 23 Sep 2016 08:18:20 +0000 (01:18 -0700)
Change-Id: I4ca388bb6898604d03b653fd5b27c21d1a128620

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 7773d10501722661cecfc49da3c5dbd08a2c3212..bc7a3651c476f11d84cec5c8a10068e94ec47e13 100644 (file)
@@ -1075,6 +1075,13 @@ void CSCLConnectionISF::get_selection_text(sclchar **text)
     }
 }
 
+void CSCLConnectionISF::request_ise_hide()
+{
+    if (m_initialized) {
+        m_helper_agent.request_ise_hide();
+    }
+}
+
 extern "C"
 {
     void scim_module_init(void) {
index fc3b9768a55f23b9d155de1dd7380e4266ee9bf8..4768c1a351d0601f90b5e2bde26cbfd26e276ac6 100644 (file)
@@ -85,6 +85,7 @@ public:
     void send_private_command(const char *command);
     sclint get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor);
     void get_selection_text(sclchar **text);
+    void request_ise_hide();
 private:
     sclboolean m_initialized;
 
index 0f095889866fb29eb04e868c5c5371b8dd9cb578..71398f7bc1a1cc07db7c30e1c57bdbdc05dc2523 100644 (file)
@@ -344,3 +344,10 @@ void CSCLConnection::get_selection_text(sclchar **text)
         m_impl->get_selection_text(text);
     }
 }
+
+void CSCLConnection::request_ise_hide()
+{
+    if (m_impl) {
+        m_impl->request_ise_hide();
+    }
+}
index 6513fa0118a6a8d737d6b29aaaaf7c5999fc6891..78bacfe229141dd2acdb9ce5563cc9c254b81e9a 100644 (file)
@@ -85,6 +85,7 @@ public:
     virtual void send_private_command(const sclchar *command);
     virtual sclint get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor);
     virtual void get_selection_text(sclchar **text);
+    virtual void request_ise_hide();
 protected:
     std::string m_backend_identifier;
 
index 98ed9af2a86e8a3a7b481c3071d54917efc5d35d..b36a1c1f746fc89ee441e678fc977ae31e41fa28 100644 (file)
@@ -345,3 +345,10 @@ void CSCLCore::get_selection_text(sclchar **text) const
         m_impl->get_selection_text(text);
     }
 }
+
+void CSCLCore::request_ise_hide() const
+{
+    if (m_impl) {
+        m_impl->request_ise_hide();
+    }
+}
\ No newline at end of file
index 3ec6270935b0976e5b1ce985e7ee7a835631045d..997104822870faebd09dcb889f0b0a5f85e75b27 100644 (file)
@@ -361,6 +361,12 @@ public:
      * @param[out] text The surrounding text.
      */
     void get_selection_text(sclchar **text) const;
+
+    /**
+     * @brief Request to hide ISE.
+     */
+    void request_ise_hide() const;
+
 private:
     CSCLCoreImpl *m_impl;
 };
index 268d2d49a12e6fc50bbe0583f0a420a3981b35de..2e113ccf43a7362419f7f9ed5c3a22cd4c36422b 100644 (file)
@@ -363,3 +363,8 @@ void CSCLCoreImpl::get_selection_text(sclchar **text)
 {
     m_connection.get_selection_text(text);
 }
+
+void CSCLCoreImpl::request_ise_hide()
+{
+    m_connection.request_ise_hide();
+}
\ No newline at end of file
index 5a205074492b8ceb80623eeb84050234ce1983a4..1151b54b4088cc42d25a57e9c3a00fa1531a53e1 100644 (file)
@@ -104,6 +104,7 @@ public:
     sclint get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor);
     void get_selection_text(sclchar **text);
 
+    void request_ise_hide();
 private:
     ISCLCoreEventCallback *m_event_callback;