apply FSL(Flora Software License)
[apps/native/ug-wifi-direct.git] / ug-wifidirect / include / wfd_ug_view.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *     http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 /*
18  * This file declares functions for view of Wi-Fi direct UI Gadget.
19  *
20  * @file    wfd_ug_view.h
21  * @author  Gibyoung Kim (lastkgb.kim@samsung.com)
22  * @version 0.1
23  */
24
25
26 #ifndef __WFD_UG_VIEW_H__
27 #define __WFD_UG_VIEW_H__
28
29 #define EDJDIR "/opt/ug/res/edje/ug-setting-wifidirect-efl"
30 #define WFD_UG_EDJ_PATH  EDJDIR"/wfd_ug.edj"
31 #define WFD_IMG_DIR "/opt/ug/res/images/ug-setting-wifidirect-efl"
32
33 #define WFD_ICON_DEVICE_PC              WFD_IMG_DIR"/A09_device_computer.png"
34 #define WFD_ICON_DEVICE_KEYBOARD        WFD_IMG_DIR"/31_BT_device_keyboard.png"
35 #define WFD_ICON_DEVICE_PRINTER         WFD_IMG_DIR"/31_BT_device_printer.png"
36 #define WFD_ICON_DEVICE_UNKNOWN         WFD_IMG_DIR"/31_BT_device_unknown.png"
37 #define WFD_ICON_DEVICE_PHONE           WFD_IMG_DIR"/A09_device_mobile.png"
38 #define WFD_ICON_DEVICE_HEADSET         WFD_IMG_DIR"/31_BT_device_headset.png"
39
40 #define WFD_ICON_DEVICE_MOUSE   WFD_IMG_DIR"/31_BT_device_mouse.png"
41
42 #define WFD_ICON_CONNECTED              WFD_IMG_DIR"/A09_Connect.png"
43
44
45 enum
46 {
47     HEAD_TEXT_TYPE_DIRECT,
48     HEAD_TEXT_TYPE_DEACTIVATING,
49     HEAD_TEXT_TYPE_ACTIVATING,
50     HEAD_TEXT_TYPE_ACTIVATED,
51     HEAD_TEXT_TYPE_SCANING,
52 };
53
54 enum
55 {
56     POPUP_TYPE_WIFI_OFF,
57     POPUP_TYPE_HOTSPOT_OFF,
58
59     POPUP_TYPE_ACTIVATE_FAIL,
60     POPUP_TYPE_DEACTIVATE_FAIL,
61
62     POPUP_TYPE_LINK_TIMEOUT,
63     POPUP_TYPE_AUTH_FAIL,
64     POPUP_TYPE_LINK_FAIL,
65     POPUP_TYPE_UNKNOWN_ERROR,
66
67     POPUP_TYPE_TERMINATE,
68 };
69
70 void create_wfd_ug_view(void *data);
71 void destroy_wfd_ug_view(void *data);
72 void wfd_ug_view_refresh_glitem(void *obj);
73 void wfd_ug_view_refresh_button(void *obj, int enable);
74 void wfd_ug_view_update_peers(void *data);
75 void wfd_ug_view_free_peers(void *data);
76 void wfd_ug_act_popup(void *data, const char *message, int popup_type);
77 void wfg_ug_act_popup_remove(void *data);
78 void wfd_ug_warn_popup(void *data, const char *message, int popup_type);
79 void wfg_ug_warn_popup_remove(void *data);
80
81 #endif                          /* __WFD_UG_VIEW_H__ */