4 * Copyright 2012 Samsung Electronics Co., Ltd
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
10 * http://www.tizenopensource.org/license
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.
20 #ifndef __WIFI_SYSPOPUP_H__
21 #define __WIFI_SYSPOPUP_H__
28 #include <efl_assist.h>
31 #include "wlan_manager.h"
32 #include "common_pswd_popup.h"
33 #include "common_eap_connect.h"
35 #define PACKAGE "wifi-qs"
36 #define LOCALEDIR "/usr/share/locale"
37 #define WIFI_SP_ICON_PATH "/usr/share/icons"
40 WIFI_DEVPKR_SUPPORT_NONE = 0x00,
41 WIFI_DEVPKR_SUPPORT_QUICKPANEL,
42 WIFI_DEVPKR_SUPPORT_MAX,
43 } WIFI_DEVPKR_SUPPORTS;
46 WIFI_DEVPKR_WITH_AP_LIST = 0x00,
47 WIFI_DEVPKR_WITHOUT_AP_LIST
50 #define MAX_PROFILE_NUM NETPM_PROFILES_PERSISTENT_MAX
52 typedef struct wifi_object {
53 /* wifi object attributes */
54 WIFI_DEVPKR_SUPPORTS wifi_devpkr_support;
56 /* connection_result */
57 int connection_result;
59 Eina_Bool update_enabled;
62 WIFI_DEVPKR_TYPE devpkr_type;
65 Evas_Object *win_main;
66 Evas_Object *conformant;
67 Evas_Object *layout_main;
73 pswd_popup_t *passpopup;
74 eap_connect_data_t *eap_popup;
75 Evas_Object *alertpopup;
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;
91 ITEM_CONNECTION_MODES connection_mode;
92 wifi_device_info_t *dev_info;
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);