Replaced Wi-Fi CAPI with Wi-Fi manager CAPI
[apps/native/ug-mobile-ap.git] / include / mobile_hotspot.h
index 0d35e5f..2ac8ce1 100755 (executable)
@@ -3,7 +3,7 @@
 *
 * 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
 
@@ -48,9 +48,9 @@ extern "C" {
 #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>
 
@@ -88,6 +88,7 @@ extern "C" {
 #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
@@ -130,10 +131,6 @@ typedef struct ap_app_main {
        Evas_Object             *back_btn;
        Evas_Object             *check_popup_ly;
 
-#if 0 /* not used */
-       Elm_Genlist_Item_Class  *sp_itc;
-       Elm_Genlist_Item_Class  *sp2_itc;
-#endif
        Elm_Genlist_Item_Class  *wifi_itc;
        Elm_Genlist_Item_Class  *setup_itc;
        Elm_Genlist_Item_Class  *bt_itc;
@@ -143,6 +140,7 @@ typedef struct ap_app_main {
        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;
@@ -154,7 +152,13 @@ typedef struct ap_app_main {
        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;
@@ -177,13 +181,10 @@ typedef struct {
        Evas_Object             *save_button;
        Evas_Object             *cancel_button;
 
-#if 0 /* not used */
-       Elm_Genlist_Item_Class          *sp_itc;
-       Elm_Genlist_Item_Class          *sp2_itc;
-#endif
        Elm_Genlist_Item_Class          *hide_itc;
        Elm_Genlist_Item_Class          *security_itc;
        Elm_Genlist_Item_Class          *pw_itc;
+       Elm_Genlist_Item_Class          *check_box_itc;
        Elm_Genlist_Item_Class          *name_itc;
        Elm_Genlist_Item_Class          *rename_entry_itc;
        Elm_Genlist_Item_Class          *rename_descp_itc;
@@ -192,6 +193,7 @@ typedef struct {
        Elm_Object_Item         *hide_item;
        Elm_Object_Item         *security_item;
        Elm_Object_Item         *pw_item;
+       Elm_Object_Item         *check_box_item;
        Elm_Object_Item         *name_item;
        Elm_Object_Item         *pw_guide_item;
        Elm_Object_Item         *rename_entry_item;
@@ -214,22 +216,13 @@ typedef struct {
 } 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;
@@ -254,7 +247,6 @@ typedef struct {
        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 {