Replaced Wi-Fi CAPI with Wi-Fi manager CAPI
[apps/native/ug-mobile-ap.git] / include / mobile_hotspot.h
index 61adffd..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>
 
@@ -140,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;
@@ -151,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;
@@ -209,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;
@@ -249,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 {