2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __W_INPUT_SELECTOR_H_
18 #define __W_INPUT_SELECTOR_H_
21 #define PACKAGE "org.tizen.inputdelegator"
28 #define _(str) gettext(str)
30 #define APP_EDJ_FILE "edje/w-input-selector.edj"
31 #define STT_EDJ_FILE "edje/w-input-stt.edj"
32 #define LOCALEDIR "/usr/apps/org.tizen.inputdelegator/res/locale"
33 #define RESOURCEDIR "/usr/apps/org.tizen.inputdelegator/res/"
36 #include <app_control.h>
37 #include <Elementary.h>
39 #include <efl_extension.h>
42 APP_TYPE_SELECT_MODE = 1,
48 APP_TYPE_KEYBOARD_FROM_SMS,
57 typedef struct appdata{
58 Evas_Object* win_main;
59 Evas_Object* layout_main;
61 Evas_Object* naviframe;
63 Eext_Circle_Surface *circle_surface;
65 app_control_h source_app_control;
69 char* shared_res_path;
81 struct _InputKeyboardData
90 typedef struct _InputKeyboardData InputKeyboardData;
94 void _app_terminate(void* user_data);
95 void reply_to_sender_by_callback_for_back();
96 void reply_to_sender_by_callback(const char *value, const char *type);
97 void reply_to_sender_by_appcontrol(void *data, const char *value, const char *type);
98 char* get_resource_path();
99 char* get_shared_resource_path();
100 void show_gl_focus(Eina_Bool bVisible);
101 void show_popup_toast(const char *text, bool check_img);
102 void _back_to_genlist_for_selector();
103 void set_source_caller_app_id(app_control_h app_control);