Modified NOTICE file and license version
[apps/native/ug-mobile-ap.git] / include / mh_view_main.h
old mode 100644 (file)
new mode 100755 (executable)
index d326fa4..627d22a
@@ -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
 
@@ -29,27 +29,45 @@ extern "C" {
 #include "mh_common_utility.h"
 #include "mh_view_wifi_setup.h"
 
+#define PKGNAME "ug-setting-mobileap-efl"
+
 #define MH_UPDATE_INTERVAL     5       /* 5 Sec */
-#define MH_KB                  (1000)
+#define MH_KB                  (1000LLU)
 #define MH_MB                  (MH_KB * MH_KB)
+#define FILE_PATH_OF_EDC "/usr/apps/ug-setting-mobileap-efl/res/edje/ug-setting-mobileap-efl/tethering.edj"
+#define PS_RECHECK_INTERVAL            500
+#define PS_RECHECK_COUNT_MAX   5
 
-#define MH_DEVICE_LIST_NO_NAME "No name"
-#define MH_DEFAULT_DEVICE_NAME "No name"
-
-#define MH_CONNECTED_DEVICE_WILL_BE_DISCONNECTED       "Connected device will be disconnected"
-#define MH_CONSUMES_MORE_BATTERY_POWER                 "Tethering consumes more battery power and increases your data usage. Continue?"
-
-void ap_update_data_onoff(void *data);
 void ap_update_data_device(mh_appdata_t *ad);
+
+#ifdef TETHERING_DATA_USAGE_SUPPORT
 Eina_Bool ap_update_data_packet_usage(mh_appdata_t *ad);
 void _start_update_data_packet_usage(mh_appdata_t *ad);
 void _stop_update_data_packet_usage(mh_appdata_t *ad);
-void ap_draw_contents(mh_appdata_t *ad);
-void ap_callback_del(mh_appdata_t *ad);
+#endif
+
 void _update_wifi_item(mh_appdata_t *ad, int wifi_state);
 void _update_bt_item(mh_appdata_t *ad, int bt_state);
 void _update_usb_item(mh_appdata_t *ad, int usb_state);
-void _update_main_view(mh_appdata_t *ad);
+void _update_main_view(mh_appdata_t *ad, tethering_type_e type);
+void _start_update_device_conn_time(mh_appdata_t *ad);
+void _stop_update_device_conn_time(mh_appdata_t *ad);
+void _main_draw_contents(mh_appdata_t *ad);
+void _main_callback_del(mh_appdata_t *ad);
+void _main_free_genlist_itc(mh_appdata_t *ad);
+void _list_connected_dev(mh_appdata_t *data);
+void _genlist_update_device_item(mh_appdata_t *ad);
+void _update_conn_clients(mh_appdata_t *ad);
+void _add_connected_clients(mh_appdata_t *ad);
+void _ctxpopup_more_button_callback_add(mh_appdata_t *ad);
+void _ctxpopup_more_button_callback_del(mh_appdata_t *ad);
+
+#ifdef TIZEN_FEATURE_EMULATOR
+tethering_type_e _get_updated_type(void);
+tethering_type_e _get_selected_type(void);
+Eina_Bool _get_selected_state(void);
+void _update_emul_main_view(mh_appdata_t *ad, tethering_type_e type, Eina_Bool state);
+#endif
 
 #ifdef __cplusplus
 }