Fix crash issue occured when terminating
[platform/core/uifw/inputdelegator.git] / inc / w-input-selector.h
index 92662e1..cedcf17 100755 (executable)
@@ -44,6 +44,9 @@
 #include <Elementary.h>
 #include <Evas.h>
 #include <efl_extension.h>
+#include <string>
+
+using namespace std;
 
 enum {
        APP_TYPE_SELECT_MODE = 1,
@@ -52,6 +55,8 @@ enum {
        APP_TYPE_REPLY,
        APP_TYPE_HANDWRITING,
        APP_TYPE_KEYBOARD,
+       APP_TYPE_DRAWING,
+       APP_TYPE_RECORDING,
 };
 
 enum {
@@ -59,6 +64,13 @@ enum {
        REPLY_APP_CONTROL,
 };
 
+enum {
+    MIME_TYPE_ALL = 0,
+    MIME_TYPE_IMAGE,
+    MIME_TYPE_AUDIO,
+    MIME_TYPE_TEXT,
+};
+
 typedef enum {
    TIZEN_PROFILE_UNKNOWN = 0,
    TIZEN_PROFILE_MOBILE = 0x1,
@@ -88,6 +100,7 @@ typedef struct appdata{
 
        app_control_h source_app_control;
        int app_type;
+       int mime_type;
        int reply_type;
        char* res_path;
        char* shared_res_path;
@@ -104,8 +117,11 @@ typedef enum
 
 struct _InputKeyboardData
 {
-       char *guide_text;
-       char *default_text;
+       string guide_text;
+       string default_text;
+       string return_key_type;
+       int max_text_length;
+       int cursor_position_set;
 };
 typedef struct _InputKeyboardData InputKeyboardData;
 
@@ -118,7 +134,7 @@ typedef struct _InputTypeData InputTypeData;
 
 void _app_terminate(void* user_data);
 void reply_to_sender_by_callback_for_back();
-void reply_to_sender_by_callback(const char *value, const char *type, const char *path[]);
+void reply_to_sender_by_callback(const char *value, const char *type, const char *path[], const char *cursor_pos);
 char* get_resource_path();
 char* get_shared_resource_path();
 void show_gl_focus(Eina_Bool bVisible);