Apply dpm policy
[apps/native/ug-mobile-ap.git] / include / mh_common_utility.h
old mode 100644 (file)
new mode 100755 (executable)
index 2e3003b..b065cd5
@@ -27,17 +27,48 @@ extern "C" {
 #include "mobile_hotspot.h"
 #include "mh_view_main.h"
 
-#define MH_POPUP_TIMEOUT       2.0f
+#define QP_SIGNAL_PROGRESS_ON  "progress_on"
+#define QP_SIGNAL_PROGRESS_OFF "progress_off"
+#define QP_SIGNAL_PROGRESS_RESET       "progress_reset"
 
-void _prepare_popup(mh_appdata_t *ad, int type, const char *str);
-Eina_Bool _create_popup(mh_appdata_t *ad);
+/* Genlist new style for Tizen 2.4 */
+#define MH_GENLIST_1LINE_TEXT_STYLE "type1"
+#define MH_GENLIST_1LINE_TEXT_ICON_STYLE "type1"
+#define MH_GENLIST_2LINE_TOP_TEXT_STYLE "type1"
+#define MH_GENLIST_2LINE_TOP_TEXT_ICON_STYLE "type1"
+#define MH_GENLIST_2LINE_BOTTOM_TEXT_STYLE "type2"
+#define MH_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE "type2"
+#define MH_GENLIST_MULTILINE_TEXT_STYLE "multiline"
+#define MH_GENLIST_GROUP_INDEX_STYLE "group_index"
+#define MH_GENLIST_FULL_CONTENT_STYLE "full"
+
+Evas_Object *_create_progressbar(Evas_Object *parent, const char *style);
 Evas_Object *_create_bg(Evas_Object *parent, const char *style);
 Evas_Object *_create_win_layout(mh_appdata_t *ad);
 Evas_Object *_create_naviframe(Evas_Object *parent);
-void _handle_usb_mode_change(keynode_t *key, void *data);
-Eina_Bool _hide_imf(Evas_Object *entry);
+Evas_Object *_create_button(Evas_Object *parent, const char *text, const char *part,
+               Evas_Smart_Cb func, void *user_data);
+void _handle_usb_status_change(keynode_t *key, void *data);
 int _get_vconf_hotspot_mode(void);
-Eina_Bool _get_no_of_connected_device(tethering_h handle, int *no, tethering_type_e type);
+Eina_Bool _get_no_of_connected_device(mh_appdata_t *ad, int *no, tethering_type_e type);
+
+void _append_list_client_handle(mh_appdata_t *ad, tethering_client_h client);
+void _release_list_client_handle(mh_appdata_t *ad);
+void _delete_list_client_handle(mh_appdata_t *ad, const char *mac_addr);
+int _get_list_clients_count(mh_appdata_t *ad);
+void _get_list_clients_informations(mh_appdata_t *ad);
+void _free_genlist_item(Elm_Object_Item **item);
+void _free_genlist_itc(Elm_Genlist_Item_Class **itc);
+int _get_sim_state(void);
+connection_cellular_state_e _get_cellular_state(void);
+int _get_checkbox_status(tethering_type_e type);
+bool _set_checkbox_status(tethering_type_e type, int value);
+int _send_signal_qp(const char *cmd);
+void _device_name_changed_cb(keynode_t *key, void *data);
+bool _set_vconf_prev_wifi_state(bool value);
+bool _get_vconf_prev_wifi_state();
+void _handle_network_cellular_state_changed_cb(keynode_t *key, void *data);
+void _handle_mobileap_syspopup_popup_response(keynode_t *key, void *data);
 
 #ifdef __cplusplus
 }