UI issues are fixed
[apps/native/ug-mobile-ap.git] / include / mobile_hotspot.h
index 1cf8bbd..3fac392 100644 (file)
@@ -85,16 +85,10 @@ extern "C" {
 #define BT_ICON                                "Bluetooth.png"
 #define USB_ICON                       "USB.png"
 
-#define MH_DEFAULT_PASSWORD            "qwertyuiop"
-
 #define DEVICE_NAME_LENGTH_MAX         31
 #define WIFI_PASSPHRASE_LENGTH_MIN     8
 #define WIFI_PASSPHRASE_LENGTH_MAX     63
 #define MH_LABEL_LENGTH_MAX            1024
-#define FONT_SIZE_20                   20
-#define FONT_SIZE_25                   25
-#define FONT_SIZE_30                   30
-#define FONT_SIZE_32                   32
 
 #define _EDJ(obj)                      elm_layout_edje_get(obj)
 
@@ -110,12 +104,12 @@ typedef enum {
        MH_POP_WIFI_ON_CONF,
        MH_POP_BT_ON_CONF,
        MH_POP_USB_ON_CONF,
+       MH_POP_USB_ON_PREVCONN_CONF,
        MH_POP_ENTER_TO_WIFI_SETUP_CONF,
 
        /* One button pop-up */
        MH_POP_INFORMATION,
        MH_POP_USB_CONNECT,
-       MH_POP_WIFI_PASSWORD_SHORT,
 
        /* No button & timeout pop-up */
        MH_POP_INFORMATION_WO_BUTTON,
@@ -150,6 +144,7 @@ typedef struct ap_app_main {
        Elm_Genlist_Item_Class          *usage_itc;
        Elm_Genlist_Item_Class          *dev_itc[TETHERING_TYPE_MAX];
 
+       Elm_Object_Item                 *sp_item[4];
        Elm_Object_Item                 *wifi_item;
        Elm_Object_Item                 *setup_item;
        Elm_Object_Item                 *bt_item;
@@ -162,7 +157,7 @@ typedef struct ap_app_main {
        int                             wifi_state;
        int                             bt_state;
        int                             usb_state;
-       bool                            old_wifi_state;
+       bool                            need_recover_wifi_tethering;
 } mh_main_view_t;
 
 typedef struct {
@@ -173,7 +168,6 @@ typedef struct {
        Evas_Object                     *title_back_btn;
        Evas_Object                     *hide_btn;
        Evas_Object                     *security_btn;
-       Evas_Object                     *pw_layout;
        Evas_Object                     *pw_entry;
 
        Elm_Genlist_Item_Class          *sp_itc;
@@ -183,6 +177,7 @@ typedef struct {
        Elm_Genlist_Item_Class          *pw_itc;
        Elm_Genlist_Item_Class          *name_itc;
 
+       Elm_Object_Item                 *sp_item[2];
        Elm_Object_Item                 *hide_item;
        Elm_Object_Item                 *security_item;
        Elm_Object_Item                 *pw_item;
@@ -227,8 +222,8 @@ typedef struct {
        mh_data_usage_t                 data_statistics;
        mh_clients_t                    clients;
 
-       int                             popup_type;
-       char                            popup_string[MH_LABEL_LENGTH_MAX];
+       enum ug_event                   rotate_state;
+       Ecore_IMF_Input_Panel_State     imf_state;
 } mh_appdata_t;
 
 typedef struct {