From: Jihoon Kim Date: Thu, 24 Sep 2015 06:08:33 +0000 (+0900) Subject: Add send_private_command() interface X-Git-Tag: submit/tizen/20150926.121837^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0652c9da66f82fa52464ef1c383629c841b8d72a;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Add send_private_command() interface Change-Id: I1c4a3d975f99feb471cfca37b711288409a22432 --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index d78ab42..b2eb1bc 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -973,6 +973,13 @@ void CSCLConnectionISF::set_selection(sclint start, sclint end) } } +void CSCLConnectionISF::send_private_command(const sclchar *command) +{ + if (m_initialized) { + m_helper_agent.send_private_command(command); + } +} + extern "C" { void scim_module_init (void) { diff --git a/src/sclconnection-isf.h b/src/sclconnection-isf.h index 9a647fe..2000913 100644 --- a/src/sclconnection-isf.h +++ b/src/sclconnection-isf.h @@ -82,7 +82,7 @@ public: void set_keyboard_ise_by_uuid(const sclchar *uuid); void get_keyboard_ise(const sclchar *uuid); void set_selection(sclint start, sclint end); - + void send_private_command(const char *command); private: sclboolean m_initialized; diff --git a/src/sclconnection.cpp b/src/sclconnection.cpp index 1607355..835375b 100644 --- a/src/sclconnection.cpp +++ b/src/sclconnection.cpp @@ -321,3 +321,10 @@ void CSCLConnection::set_selection(sclint start, sclint end) m_impl->set_selection(start, end); } } + +void CSCLConnection::send_private_command(const sclchar *command) +{ + if (m_impl) { + m_impl->send_private_command(command); + } +} diff --git a/src/sclconnection.h b/src/sclconnection.h index a313607..0a27be0 100644 --- a/src/sclconnection.h +++ b/src/sclconnection.h @@ -82,7 +82,7 @@ public: virtual void set_keyboard_ise_by_uuid(const sclchar *uuid); virtual void get_keyboard_ise(const sclchar *uuid); virtual void set_selection(sclint start, sclint end); - + virtual void send_private_command(const sclchar *command); protected: std::string m_backend_identifier; diff --git a/src/sclcore.cpp b/src/sclcore.cpp index 8ebda48..b8db862 100644 --- a/src/sclcore.cpp +++ b/src/sclcore.cpp @@ -322,3 +322,10 @@ void CSCLCore::set_selection(sclint start, sclint end) m_impl->set_selection(start, end); } } + +void CSCLCore::send_private_command(const sclchar *command) +{ + if (m_impl) { + m_impl->send_private_command(command); + } +} diff --git a/src/sclcore.h b/src/sclcore.h index d6fe3d7..9025a99 100644 --- a/src/sclcore.h +++ b/src/sclcore.h @@ -341,6 +341,8 @@ public: */ void set_selection(sclint start, sclint end); + void send_private_command(const sclchar *command); + private: CSCLCoreImpl *m_impl; }; diff --git a/src/sclcoreimpl.cpp b/src/sclcoreimpl.cpp index 4d19821..8c2deb3 100644 --- a/src/sclcoreimpl.cpp +++ b/src/sclcoreimpl.cpp @@ -319,3 +319,8 @@ void CSCLCoreImpl::set_selection(sclint start, sclint end) { m_connection.set_selection(start, end); } + +void CSCLCoreImpl::send_private_command(const sclchar *command) +{ + m_connection.send_private_command(command); +} diff --git a/src/sclcoreimpl.h b/src/sclcoreimpl.h index 8ba540d..094994b 100644 --- a/src/sclcoreimpl.h +++ b/src/sclcoreimpl.h @@ -100,6 +100,7 @@ public: void destroy_option_window(sclwindow window); void set_selection(sclint start, sclint end); + void send_private_command(const sclchar *command); private: ISCLCoreEventCallback *m_event_callback;