+wifi-efl-ug (0.5.2-14) precise; urgency=low
+
+ * [N_SE-36723] Added notification state check function
+ * Git: magnolia/apps/home/ug-wifi-efl
+ * Tag: wifi-efl-ug_0.5.2-14
+
+ -- sunil85.kim <isurit@sunil85.kim> Tue, 30 Apr 2013 09:52:17 +0900
+
wifi-efl-ug (0.5.2-13) precise; urgency=low
* Fix bux TREL-368
*
*/
-#include <vconf-keys.h>
-
#include "common.h"
#include "ug_wifi.h"
#include "viewer_list.h"
evas_object_propagate_events_set(toggle_btn, EINA_FALSE);
ret = common_util_get_system_registry(VCONFKEY_WIFI_ENABLE_QS);
+
switch (ret) {
case 1:
ao = elm_object_item_access_object_get(manager_object->item_bottom);
__COMMON_FUNC_EXIT__;
}
+void notification_state_change_cb(keynode_t *node, void *user_data)
+{
+ __COMMON_FUNC_ENTER__;
+
+ int notification_state;
+ Evas_Object *target = NULL;
+
+ assertm_if(NULL == manager_object, "manager_object is NULL");
+ assertm_if(NULL == manager_object->item_bottom, "item_bottom is NULL");
+
+ notification_state = common_util_get_system_registry(VCONFKEY_WIFI_ENABLE_QS);
+ target = elm_object_item_access_object_get(manager_object->item_bottom);
+
+ assertm_if(NULL == target, "Target is NULL");
+
+ if (notification_state == 0) {
+ elm_access_info_set(target, ELM_ACCESS_TYPE, "on/off button");
+ elm_access_info_set(target, ELM_ACCESS_STATE, "off");
+ elm_genlist_item_update(manager_object->item_bottom);
+ } else if (notification_state == 1) {
+ elm_access_info_set(target, ELM_ACCESS_TYPE, "on/off button");
+ elm_access_info_set(target, ELM_ACCESS_STATE, "on");
+ elm_genlist_item_update(manager_object->item_bottom);
+ } else
+ ERROR_LOG(UG_NAME_ERR, "Failed to get notification state");
+
+ __COMMON_FUNC_EXIT__;
+}
+
static void __viewer_manager_bottom_create(Evas_Object* genlist)
{
__COMMON_FUNC_ENTER__;
motion_start();
+ vconf_notify_key_changed(VCONFKEY_WIFI_ENABLE_QS, notification_state_change_cb, NULL);
+
__COMMON_FUNC_EXIT__;
}
VCONFKEY_WIFI_UG_RUN_STATE_ON_FOREGROUND);
__make_scan_if_bss_expired();
-
__COMMON_FUNC_EXIT__;
}
__COMMON_FUNC_ENTER__;
int ret;
- common_util_set_system_registry(VCONFKEY_WIFI_UG_RUN_STATE,
- VCONFKEY_WIFI_UG_RUN_STATE_OFF);
+ common_util_set_system_registry(VCONFKEY_WIFI_UG_RUN_STATE, VCONFKEY_WIFI_UG_RUN_STATE_OFF);
if (!ug || !priv){
__COMMON_FUNC_EXIT__;
winset_popup_manager_destroy(ug_app_state->popup_manager);
ug_app_state->popup_manager = NULL;
DEBUG_LOG(UG_NAME_NORMAL, "* view_main destroying...");
+ vconf_ignore_key_changed(VCONFKEY_WIFI_ENABLE_QS, notification_state_change_cb);
viewer_manager_destroy();
DEBUG_LOG(UG_NAME_NORMAL, "* manager destroy complete");
DEBUG_LOG(UG_NAME_NORMAL, "* wlan manager destroying...");