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 7773d10..bc7a365 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 fc3b976..4768c1a 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 0f09588..71398f7 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 6513fa0..78bacfe 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 98ed9af..b36a1c1 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 3ec6270..9971048 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 268d2d4..2e113cc 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 5a20507..1151b54 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;