Implement OOBE view #4
[apps/native/ug-wifi-efl.git] / sources / ui-gadget / include / viewer_list.h
1 /*
2  * Wi-Fi
3  *
4  * Copyright 2012 Samsung Electronics Co., Ltd
5  *
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
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 __VIEWER_LIST_H__
21 #define __VIEWER_LIST_H__
22
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27
28 #include "viewer_manager.h"
29
30 typedef struct {
31         wifi_device_info_t *device_info;
32         VIEWER_ITEM_RADIO_MODES radio_mode;
33 } ug_genlist_data_t;
34
35 Evas_Object *viewer_list_create(Evas_Object *win);
36
37 //////// list item add / remove ///////////////////////////////////////////////////////////////
38 void viewer_list_title_item_set(Elm_Object_Item *item_header);
39 void viewer_list_title_item_del(void);
40 void viewer_list_title_item_update(void);
41
42 int viewer_list_item_radio_mode_set(Elm_Object_Item* item,
43                 VIEWER_ITEM_RADIO_MODES mode);
44 Elm_Object_Item *viewer_list_item_insert_after(wifi_device_info_t *wifi_device,
45                 Elm_Object_Item *after);
46 Elm_Object_Item *viewer_list_get_first_item(void);
47 Elm_Object_Item* viewer_list_get_last_item(void);
48 void viewer_list_item_clear(void);
49 ////////////////////////////////////////////////////////////////////////////////////////////////
50
51 //////// item iteration /////////////////////////////////////////////////////////////////////////
52 int viewer_list_item_size_get(void);
53 void viewer_list_item_del(Elm_Object_Item *item);
54 Elm_Object_Item *viewer_list_item_first_get(Evas_Object* list);
55 Elm_Object_Item *viewer_list_item_next_get(const Elm_Object_Item* current);
56 Elm_Object_Item *viewer_list_item_at_index(int index);
57 /////////////////////////////////////////////////////////////////////////////////////////////////
58
59 //////// item control /////////////////////////////////////////////////////////////////////////
60 void viewer_list_item_enable_all(void);
61 void viewer_list_item_disable_all(void);
62 //////////////////////////////////////////////////////////////////////////////////////////////////
63
64 void viewer_list_item_hidden_network_set(Elm_Object_Item *item);
65
66 Elm_Object_Item *item_get_for_ap(wifi_manager_ap_h ap);
67 Elm_Object_Item *item_get_for_ssid(const char *ssid);
68
69 void viewer_list_wifi_connect(wifi_device_info_t *device_info);
70 void viewer_list_wifi_reconnect(wifi_device_info_t *device_info);
71 void viewer_list_clear_disconnect_popup(wifi_manager_ap_h ap);
72
73 char* ConvertRGBAtoHex(int r, int g, int b, int a);
74 #ifdef __cplusplus
75 }
76 #endif
77
78 #endif