2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
18 * This file declares structure for Wi-Fi direct UI Gadget.
21 * @author Gibyoung Kim (lastkgb.kim@samsung.com)
31 #define PACKAGE "ug-setting-wifidirect-efl"
32 #define LOCALEDIR "/opt/ug/res/locale"
34 #define DIRECT_TAG "wfd_ug"
35 #define DBG(log_level, format, args...) \
36 LOG(log_level, DIRECT_TAG, "[%s()][%d] " format, __FUNCTION__, __LINE__, ##args)
38 #define __FUNC_ENTER__ DBG(LOG_VERBOSE, "+\n")
39 #define __FUNC_EXIT__ DBG(LOG_VERBOSE, "-\n")
41 #define VCONF_WFD_ONOFF "db/wifi_direct/onoff"
42 #define VCONF_WFD_CONNECTION_STATUS "db/wifi_direct/connection_status"
43 #define VCONF_WFD_APNAME "db/setting/device_name"
44 #define VCONF_WFD_PASSWORD "db/mobile_hotspot/wifi_key"
45 #define VCONF_WFD_PREV_STATUS "db/wifi_direct/prev_status"
47 #define assertm_if(expr, fmt, arg...) do { \
49 DBG(LOG_VERBOSE, " ##(%s) -> %s() assert!!## "fmt, #expr, __FUNCTION__, ##arg); \
54 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
55 #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
57 #define AP_NAME_LENGTH_MAX 32
58 #define AP_PASSWORD_LENGTH_MAX 64
59 #define AP_PASSWORD_LENGTH_MIN 8
60 #define AP_REJECT_CHAR_LIST "=,"
62 #define DEFAULT_DEV_NAME "Tizen"
64 #define SSID_LENGTH 32
65 #define MAX_PEER_NUM 10
67 #define _(s) dgettext(PACKAGE, s)
68 #define N_(s) dgettext_noop(s)
69 #define S_(s) dgettext("sys_string", s)
74 char ssid[SSID_LENGTH];
75 unsigned int category;
76 char mac_addr[MAC_LENGTH];
77 char if_addr[MAC_LENGTH];
79 Elm_Object_Item *gl_item;
89 Evas_Object *naviframe;
91 Elm_Object_Item *head;
92 Elm_Object_Item *noitem;
93 Elm_Object_Item *scan_btn;
95 Evas_Object *act_popup;
96 Evas_Object *warn_popup;
100 device_type_s *peers;
110 #endif /* __WFD_UG_H__ */