apply FSL(Flora Software License)
[apps/home/ug-wifi-efl.git] / sources / wifi-syspopup / include / wifi-syspopup.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
19 #ifndef __WIFI_SYSPOPUP_H__
20 #define __WIFI_SYSPOPUP_H__
21
22
23 #include "common.h"
24 #include "wlan_manager.h"
25
26 #define PACKAGE "wifi-qs"
27 #define LOCALEDIR "/usr/share/locale"
28 #define WIFI_SP_ICON_PATH "/usr/share/icon"
29
30 typedef enum {
31         WIFI_SYSPOPUP_SUPPORT_NONE =0,
32         WIFI_SYSPOPUP_SUPPORT_QUICKPANEL=1,
33         WIFI_SYSPOPUP_SUPPORT_MAX
34 } WIFI_SYSPOPUP_SUPPORTS;
35
36 #define MAX_PROFILE_NUM NETPM_PROFILES_PERSISTENT_MAX
37
38 typedef struct wifi_object {
39         /* wifi object attributes */
40         WIFI_SYSPOPUP_SUPPORTS wifi_syspopup_support;
41
42         /* connection_result */
43         int connection_result;
44
45         /* window */
46         Evas_Object* win_main;
47         Evas* evas;
48         bundle* b;
49         Evas_Object* layout_main;
50
51         /* popups */
52         Evas_Object* syspopup;
53         Evas_Object* passpopup;
54         Evas_Object* alertpopup; 
55
56 } wifi_object;
57
58 typedef enum {
59         ITEM_CONNECTION_MODE_NULL,
60         ITEM_CONNECTION_MODE_OFF,
61         ITEM_CONNECTION_MODE_CONNECTING,
62         ITEM_CONNECTION_MODE_MAX
63 } ITEM_CONNECTION_MODES;
64
65 typedef struct _genlist_data {
66         Elm_Object_Item *it;
67         Evas_Object *progressbar;
68         ITEM_CONNECTION_MODES connection_mode;
69         wifi_device_info_t *dev_info;
70 } genlist_data;
71
72 int wifi_syspopup_create(void);
73 int wifi_syspopup_destroy(void);
74
75 #endif