Fix logical error unsigned variable compares with negative value
[platform/core/uifw/libscl-core.git] / src / sclcoreui.h
index 76d7998..12abdf1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
 namespace scl
 {
 
+enum KEYBOARD_UI_STATE
+{
+    KEYBOARD_UI_STATE_DID_HIDE,
+    KEYBOARD_UI_STATE_WILL_HIDE,
+    KEYBOARD_UI_STATE_DID_SHOW,
+    KEYBOARD_UI_STATE_WILL_SHOW,
+};
+
 /**
  * @brief The base class that provides features for a soft-keyboard
  *
@@ -66,10 +74,20 @@ public:
     virtual sclwindow create_option_window(SCLOptionWindowType type);
 
     /**
+     * @brief Requests to show existing option window
+     */
+    virtual bool show_option_window(SCLOptionWindowType type);
+
+    /**
      * @brief Requests to destroy an option window
      */
     virtual void destroy_option_window(sclwindow window);
 
+    /**
+    * @brief This API requests each SCLCoreUI backends to process keyboard UI state change event
+    */
+    virtual void process_keyboard_ui_state_change(KEYBOARD_UI_STATE state);
+
 protected:
     std::string m_backend_identifier;