4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.1 (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 __COMMON_PSWD_POPUP_H__
21 #define __COMMON_PSWD_POPUP_H__
29 #include <wifi-manager.h>
31 #include "common_utils.h"
42 Eina_Bool show_wps_btn;
44 Evas_Smart_Cb cancel_cb;
45 Evas_Smart_Cb wps_btn_cb;
46 Evas_Smart_Cb wps_pin_cb;
49 wifi_manager_security_type_e sec_type;
50 } pswd_popup_create_req_data_t;
53 /* PBC popup related attributes */
55 Evas_Object* progressbar;
56 Evas_Object* timer_label;
61 popup_type_t wps_type;
65 /* Password popup related attributes */
66 const char *str_pkg_name;
71 Evas_Object *info_popup;
72 Evas_Object *wps_options_popup;
73 Elm_Object_Item *wps_options_item;
74 Evas_Smart_Cb wps_btn_cb;
75 pbc_popup_t *pbc_popup_data;
77 wifi_manager_security_type_e sec_type;
79 Eina_Bool show_wps_btn;
83 typedef struct pswd_popup pswd_popup_t;
85 pswd_popup_t *create_passwd_popup(Evas_Object *conformant,
86 Evas_Object *win_main, const char *pkg_name,
87 pswd_popup_create_req_data_t *popup_info);
88 void create_pbc_popup(pswd_popup_t *pswd_popup_data, Evas_Smart_Cb cancel_cb,
89 void *cancel_cb_data, popup_type_t type, char *pin);
90 void create_wps_options_popup(Evas_Object *win_main,
91 pswd_popup_t *pswd_popup_data,
92 pswd_popup_create_req_data_t *popup_info);
94 void current_popup_free(pswd_popup_t *pswd_popup_data, popup_type_t type);
95 void passwd_popup_show(pswd_popup_t *pswd_popup_data);
96 void passwd_popup_hide(pswd_popup_t *pswd_popup_data);
97 void passwd_popup_free(pswd_popup_t *pswd_popup_data);
99 char *passwd_popup_get_txt(pswd_popup_t *pswd_popup_data);
100 wifi_manager_ap_h passwd_popup_get_ap(pswd_popup_t *pswd_popup_data);