[4.0] Add Finalize api for imf-manager
[platform/core/uifw/dali-adaptor.git] / adaptors / integration-api / x11 / imf-manager-impl.h
old mode 100644 (file)
new mode 100755 (executable)
index aab3f9f..f069d42
@@ -50,6 +50,11 @@ public:
 public:
 
   /**
+   * @copydoc Dali::ImfManager::Finalize()
+   */
+  void Finalize();
+
+  /**
    * Check whether the ImfManager is available.
    * @return true if available, false otherwise
    */
@@ -67,7 +72,7 @@ public:
    * Constructor
    * @param[in] ecoreXwin, The window is created by application.
    */
-  ImfManager( Ecore_X_Window ecoreXwin );
+  ImfManager( Ecore_X_Window* ecoreXwin );
 
   /**
    * Connect Callbacks required for IMF.
@@ -265,7 +270,7 @@ private:
    * Context created the first time and kept until deleted.
    * @param[in] ecoreXwin, The window is created by application.
    */
-  void CreateContext( Ecore_X_Window ecoreXwin );
+  void CreateContext( Ecore_X_Window* ecoreXwin );
 
   /**
    * @copydoc Dali::ImfManager::DeleteContext()
@@ -279,9 +284,11 @@ private:
 
 private:
   Ecore_IMF_Context* mIMFContext;
+  Ecore_X_Window* mEcoreXWin;
   int mIMFCursorPosition;
   std::string mSurroundingText;
 
+  bool mInited:1;                            ///< Whether the imf is already inited.
   bool mRestoreAfterFocusLost:1;             ///< Whether the keyboard needs to be restored (activated ) after focus regained.
   bool mIdleCallbackConnected:1;             ///< Whether the idle callback is already connected.
   InputMethodOptions        mOptions;