2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
18 * This file declares wifi direct popup application functions.
21 * @author Sungsik Jang (sungsik.jang@samsung.com)
26 #ifndef __WFD_SYS_POPAPP_MAIN_H__
27 #define __WFD_SYS_POPAPP_MAIN_H__
29 #include <appcore-efl.h>
31 #include <Elementary.h>
35 #define PACKAGE "wifi-direct-popup"
36 #define EDJ_NAME RESDIR"/edje/wifi-direct-popup.edj"
37 #define LOCALEDIR "/opt/apps/org.tizen.wifi-direct-popup/res/locale"
38 #define WFD_POP_STR_MAX_LEN 128
43 WFD_POP_TIMER_10 = 10,
44 WFD_POP_TIMER_30 = 30,
45 WFD_POP_TIMER_120 = 120,
50 WFD_POP_APRV_CONNECTION_WPS_PUSHBUTTON_REQ,
51 WFD_POP_APRV_CONNECTION_WPS_DISPLAY_REQ,
52 WFD_POP_APRV_CONNECTION_WPS_KEYPAD_REQ,
55 WFD_POP_PROG_DISCONNECT,
56 WFD_POP_PROG_CONNECT_CANCEL,
57 WFD_POP_PROG_CONNECT_WITH_PIN,
58 WFD_POP_PROG_CONNECT_WITH_KEYPAD,
59 WFD_POP_NOTI_CONNECTED,
60 WFD_POP_NOTI_DISCONNECTED,
64 WFD_POP_INCORRECT_PIN,
72 WFD_POP_RESP_APRV_CONNECT_PBC_YES = 1,
73 WFD_POP_RESP_APRV_CONNECT_DISPLAY_YES,
74 WFD_POP_RESP_APRV_CONNECT_KEYPAD_YES,
75 WFD_POP_RESP_APRV_CONNECT_NO,
76 WFD_POP_RESP_PROG_CONNECT_CANCEL,
77 WFD_POP_RESP_PROG_CONNECT_KEYPAD_OK,
78 WFD_POP_RESP_APRV_ENTER_PIN_YES,
79 WFD_POP_RESP_APRV_ENTER_PIN_NO,
85 char text[WFD_POP_STR_MAX_LEN];
86 char label1[WFD_POP_STR_MAX_LEN];
87 char label2[WFD_POP_STR_MAX_LEN];
104 Evas_Object *pin_entry;
105 wfd_popup_t *popup_data;
106 uint popup_timeout_handle;
110 wfd_device_info_t *discovered_peers;
111 int discovered_peer_count;
115 extern wfd_appdata_t *wfd_get_appdata();
116 extern void wfd_destroy_popup();
117 extern void wfd_prepare_popup(int type, void *userdata);
119 #endif /* __WFD_SYS_POPAPP_MAIN_H__ */