tizen 2.4 release
[framework/uifw/voice/voice-control-panel.git] / src / voice_control_panel_main.h
1 /*
2 *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved 
3 *  Licensed under the Apache License, Version 2.0 (the "License");
4 *  you may not use this file except in compliance with the License.
5 *  You may obtain a copy of the License at
6 *  http://www.apache.org/licenses/LICENSE-2.0
7 *  Unless required by applicable law or agreed to in writing, software
8 *  distributed under the License is distributed on an "AS IS" BASIS,
9 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 *  See the License for the specific language governing permissions and
11 *  limitations under the License.
12 */
13
14 #ifndef __VOICE_CONTROL_PANEL_MAIN_H
15 #define __VOICE_CONTROL_PANEL_MAIN_H
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 #include <app.h>
22 #include <glib.h>
23 #include <Elementary.h>
24 #include <dlog.h>
25
26 #ifdef LOG_TAG
27 #undef LOG_TAG
28 #endif
29 #define LOG_TAG "vcp"
30 #define _(S)    gettext(S)
31
32 enum {
33         APP_STATE_INIT = 1,
34         APP_STATE_PAUSE,
35         APP_STATE_SERVICE,
36         APP_STATE_TERMINATE,
37 };
38
39 typedef struct _appdata {
40         /* GUI */
41         float scale_w;
42         float scale_h;
43
44         Evas_Object *win;
45         Evas_Object *layout_main;
46         Evas_Object *image_mic;
47         Evas_Object *image_arrow;
48         Evas_Object *content_box;
49         Evas_Object *image_setting;
50
51         Evas_Object *help_win;
52         Evas_Object *help_genlist;
53         Evas_Object *help_layout;
54
55         Elm_Theme *theme;
56
57         int app_state;
58
59         int show_help;
60
61         int current_depth;
62         int current_path[2];
63
64         GList *cmd_list;
65 }appdata;
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #endif /* __VOICE_CONTROL_PANEL_MAIN_H */
72
73 /*
74 vi:ts=4:ai:nowrap:expandtab
75 */