From: Hyunjee Kim Date: Mon, 17 Jun 2013 00:10:50 +0000 (+0900) Subject: Able to launch tethering apps X-Git-Tag: submit/tizen_2.2/20130714.151952~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2106359b225763570fe593f97f8889328d5a7cb2;p=framework%2Fconnectivity%2Fmobileap-agent.git Able to launch tethering apps Change-Id: I59f46495d4134ab76b3adbb8d7aef3ab6f8ae76c --- diff --git a/packaging/mobileap-agent.spec b/packaging/mobileap-agent.spec index 727afef..162bf99 100644 --- a/packaging/mobileap-agent.spec +++ b/packaging/mobileap-agent.spec @@ -1,6 +1,6 @@ Name: mobileap-agent Summary: Mobile AP daemon for setting tethering environments -Version: 0.1.89 +Version: 0.1.90 Release: 1 Group: TO_BE/FILLED_IN License: Flora License diff --git a/src/mobileap_notification.c b/src/mobileap_notification.c index 3274e72..24a742f 100644 --- a/src/mobileap_notification.c +++ b/src/mobileap_notification.c @@ -27,7 +27,7 @@ #include "mobileap_agent.h" -#define MH_NOTI_APP_NAME "org.tizen.tethering" +#define MH_NOTI_APP_NAME "setting-mobileap-efl" #define MH_AGENT_PKG_NAME "mobileap-agent" static int connected_noti_id = 0; @@ -70,10 +70,8 @@ int _create_timeout_noti(const char *content, const char *title, return MOBILE_AP_ERROR_INTERNAL; } - /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */ ret = notification_set_property(noti, - NOTIFICATION_PROP_VOLATILE_DISPLAY | - NOTIFICATION_PROP_DISABLE_APP_LAUNCH); + NOTIFICATION_PROP_VOLATILE_DISPLAY); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_property [%d]\n", ret); goto FAIL; @@ -116,14 +114,11 @@ int _create_timeout_noti(const char *content, const char *title, goto FAIL; } - /* Unnecessary Code before app control implementation */ - #if 0 ret = notification_set_application(noti, MH_NOTI_APP_NAME); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_application [%d]\n", ret); goto FAIL; } - #endif ret = notification_insert(noti, &timeout_noti_id); if (ret != NOTIFICATION_ERROR_NONE) { @@ -188,11 +183,9 @@ int _create_connected_noti(const char *content, const char *title, return MOBILE_AP_ERROR_INTERNAL; } - /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */ ret = notification_set_property(noti, NOTIFICATION_PROP_DISABLE_AUTO_DELETE | - NOTIFICATION_PROP_VOLATILE_DISPLAY | - NOTIFICATION_PROP_DISABLE_APP_LAUNCH); + NOTIFICATION_PROP_VOLATILE_DISPLAY); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_property [%d]\n", ret); goto FAIL; @@ -234,14 +227,11 @@ int _create_connected_noti(const char *content, const char *title, goto FAIL; } - /* Unnecessary Code before app control implementation */ - #if 0 ret = notification_set_application(noti, MH_NOTI_APP_NAME); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_application [%d]\n", ret); goto FAIL; } - #endif ret = notification_insert(noti, &connected_noti_id); if (ret != NOTIFICATION_ERROR_NONE) {