f6023b47104043c05feba2f4d9d44642296a6c27
[apps/native/ug-wifi-efl.git] / sources / wifi-syspopup / include / wifi-syspopup.h
1 /*
2  * Wi-Fi
3  *
4  * Copyright 2012 Samsung Electronics Co., Ltd
5  *
6  * Licensed under the Flora License, Version 1.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.tizenopensource.org/license
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __WIFI_SYSPOPUP_H__
21 #define __WIFI_SYSPOPUP_H__
22
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27
28 #include <efl_assist.h>
29
30 #include "common.h"
31 #include "wlan_manager.h"
32 #include "common_pswd_popup.h"
33 #include "common_eap_connect.h"
34
35 #define PACKAGE                         "wifi-qs"
36 #define LOCALEDIR               "/usr/share/locale"
37 #define WIFI_SP_ICON_PATH       "/usr/share/icons"
38
39 typedef enum {
40         WIFI_DEVPKR_SUPPORT_NONE                        = 0x00,
41         WIFI_DEVPKR_SUPPORT_QUICKPANEL,
42         WIFI_DEVPKR_SUPPORT_MAX,
43 } WIFI_DEVPKR_SUPPORTS;
44
45 typedef enum {
46         WIFI_DEVPKR_WITH_AP_LIST                = 0x00,
47         WIFI_DEVPKR_WITHOUT_AP_LIST
48 } WIFI_DEVPKR_TYPE;
49
50 #define MAX_PROFILE_NUM NETPM_PROFILES_PERSISTENT_MAX
51
52 typedef struct wifi_object {
53         /* wifi object attributes */
54         WIFI_DEVPKR_SUPPORTS wifi_devpkr_support;
55
56         /* connection_result */
57         int connection_result;
58
59         Eina_Bool update_enabled;
60
61         /* caller type */
62         WIFI_DEVPKR_TYPE devpkr_type;
63
64         /* window */
65         Evas_Object *win_main;
66         Evas_Object *conformant;
67         Evas_Object *layout_main;
68
69         Evas *evas;
70
71         /* popups */
72         Evas_Object *popup;
73         pswd_popup_t *passpopup;
74         eap_connect_data_t *eap_popup;
75         Evas_Object *alertpopup;
76
77         /* Sort type*/
78         int sort_type;
79 } wifi_object;
80
81 typedef enum {
82         ITEM_CONNECTION_MODE_NULL,
83         ITEM_CONNECTION_MODE_OFF,
84         ITEM_CONNECTION_MODE_CONNECTING,
85         ITEM_CONNECTION_MODE_CONFIGURATION,
86         ITEM_CONNECTION_MODE_MAX
87 } ITEM_CONNECTION_MODES;
88
89 typedef struct {
90         Elm_Object_Item *it;
91         ITEM_CONNECTION_MODES connection_mode;
92         wifi_device_info_t *dev_info;
93 } devpkr_gl_data_t;
94
95 void wifi_devpkr_redraw(void);
96 int wifi_devpkr_destroy(void);
97 void wifi_devpkr_enable_scan_btn(void);
98 void wifi_devpkr_disable_scan_btn(void);
99 gboolean wifi_devpkr_get_scan_status(void);
100
101 #ifdef __cplusplus
102 }
103 #endif
104
105 #endif