*
* Copyright 2012 Samsung Electronics Co., Ltd
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
#include <Elementary.h>
#include <vconf.h>
#include <ui-gadget-module.h>
-#include <wifi.h>
-#include <net_connection.h>
#include <tethering.h>
+#include <net_connection.h>
+#include <wifi-manager.h>
#include <dlog.h>
#include <notification.h>
#define BT_ICON "A01-5_device_bluetooth.png"
#define USB_ICON "A01-5_device_USB_icon.png"
+#define DEFAULT_ICON_SIZE 40
#define DEVICE_NAME_LENGTH_MAX 32
#define WIFI_PASSPHRASE_LENGTH_MIN 8
#define WIFI_PASSPHRASE_LENGTH_MAX 63
+#define SECURITY_TYPE_LENGTH_MAX 32
#define MH_LABEL_LENGTH_MAX 1024
#define _EDJ(obj) elm_layout_edje_get(obj)
Elm_Genlist_Item_Class *device0_itc;
Elm_Genlist_Item_Class *popup_descp_itc;
Elm_Genlist_Item_Class *popup_check_itc;
+ Elm_Genlist_Item_Class *dev_itc[TETHERING_TYPE_MAX];
Elm_Object_Item *sp_item[4];
Elm_Object_Item *help_sp_item;
Elm_Object_Item *help_item;
Elm_Object_Item *popup_descp_item;
Elm_Object_Item *popup_check_item;
+ Elm_Object_Item *dev_item;
+ Elm_Object_Item *station_items[MAX_CONNECTED_STA];
+#ifdef TIZEN_FEATURE_EMULATOR
+ Elm_Object_Item *emul_station_items[TETHERING_TYPE_MAX];
+#endif
+ int no_of_clients;
#ifdef TETHERING_DATA_USAGE_SUPPORT
Elm_Genlist_Item_Class *usage_itc;
Elm_Object_Item *usage_item;
} mh_data_usage_t;
typedef struct {
- Elm_Object_Item *navi_it;
- Evas_Object *genlist;
-
- Elm_Genlist_Item_Class *dev_itc[TETHERING_TYPE_MAX];
- Elm_Object_Item *dev_item;
- Elm_Object_Item *station_items[MAX_CONNECTED_STA];
- int no_of_clients;
-} mh_conn_client_view_t;
-
-typedef struct {
void *gadget;
GSList *client_list;
bool is_foreground;
tethering_h handle;
connection_h conn_handle;
+ wifi_manager_h wifi_handle;
tethering_type_e type;
Evas_Object *win;
mh_main_view_t main;
mh_wifi_setting_view_t setup;
mh_data_usage_t data_statistics;
- mh_conn_client_view_t connected_device;
} mh_appdata_t;
typedef struct {