tizen 2.3 release
[apps/home/settings.git] / setting-flightmode / include / setting-flightmode.h
similarity index 50%
rename from setting-privacy/include/setting-privacy.h
rename to setting-flightmode/include/setting-flightmode.h
index c242bc8..b457bae 100755 (executable)
  * limitations under the License.
  *
  */
-#ifndef __SETTING_PRIVACY_H__
-#define __SETTING_PRIVACY_H__
+#ifndef __SETTING_FLIGHTMODE_H__
+#define __SETTING_FLIGHTMODE_H__
 
 #include <Elementary.h>
+#include <notification.h>
 #include <setting-common-draw-widget.h>
 #include <setting-common-view.h>
+#include <setting-common-resource.h>
+#include <setting-common-data-slp-setting.h>
 
+#include <ITapiModem.h>
+#include <TapiUtility.h>
+#include <tapi_common.h>
 
-typedef struct _SettingPrivacyUG SettingPrivacyUG;
-struct _SettingPrivacyUG {
+typedef struct _SettingFlightModeUG SettingFlightModeUG;
+
+typedef enum _MODE_OPEARTION{
+       MODE_INVALID = 0, /*< There is no request waiting for processing */
+       MODE_ENTER = 1, /*< Some "flightmode enter" request is waiting for processing */
+       MODE_LEAVE,             /*< Some "flightmode leave" request is waiting for processing */
+} MODE_OPEARTION;
+
+
+struct _SettingFlightModeUG {
        ui_gadget_h ug;
        ui_gadget_h ug_loading;
        /* add more variables here (move your appdata to here) */
-       service_h bundle_data; /**< when loading this UG, bundle is stored */
-       char *pkg_id;
-       char *pkg_label;
-       char *privacy_id;
+       app_control_h bundle_data; /**< when loading this UG, bundle is stored */
+
        Evas *evas;
        Evas_Object *win_main_layout;
        Evas_Object *win_get;
        Evas_Object *bg;
        Evas_Object *ly_main;
        Evas_Object *navi_bar;  // for navigation effect
-       Evas_Object *genlist_privacy;           //privacy genlist
        Evas_Object *scroller;
+       Evas_Object *popup_flight_mode;
 
-       Eina_List* privacy_check_list;
+       Eina_List* app_list;
+       Eina_List* app_check_list;      
+       Elm_Genlist_Item_Class itc_1text_2icon; 
+       Setting_GenGroupItem_Data *data_flightmode;
 
        // UI elements - view main
-       Setting_GenGroupItem_Data *privacy_service;
-
-       Elm_Genlist_Item_Class itc_2text_2;
-       Elm_Genlist_Item_Class itc_1text_1icon;
        setting_view *view_to_load;
+
+       //notification hander
+       int noti_id;
+       
+       /**
+        * vars for flightmode
+        */
+        TapiHandle *handle;
+       bool b_fm_requesting; /**< whether some request is processing. 1:yes, 0:no */
+       MODE_OPEARTION fm_waiting_op;
 };
 
-extern setting_view setting_view_privacy_service;
+extern setting_view setting_view_flightmode_main;
 #endif