From ce0125f37a3bbb4a9844af4e6debc297a39e7806 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Tue, 10 Nov 2015 10:13:28 +0900 Subject: [PATCH] Add aul dependency and Use syspopup API to lauch syspopup app Change-Id: Id6dbe77c8405df4a17c0c1b843058905d3d73da6 Signed-off-by: Seonah Moon --- CMakeLists.txt | 1 + packaging/net-config.spec | 3 ++- src/network-state.c | 1 - src/utils/util.c | 6 ++++-- src/wifi-state.c | 8 +------- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d67d3a4..9394df6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,7 @@ ENDIF(TIZEN_DEBUG_DISABLE) INCLUDE(FindPkgConfig) PKG_CHECK_MODULES(pkgs REQUIRED + aul dlog tapi vconf diff --git a/packaging/net-config.spec b/packaging/net-config.spec index d42f02b..f4270e4 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,10 +1,11 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.44 +Version: 1.1.45 Release: 2 Group: System/Network License: Apache-2.0 Source0: %{name}-%{version}.tar.gz +BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(vconf) diff --git a/src/network-state.c b/src/network-state.c index 8cf712f..7942d33 100755 --- a/src/network-state.c +++ b/src/network-state.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/src/utils/util.c b/src/utils/util.c index b4bfc4c..f83252d 100755 --- a/src/utils/util.c +++ b/src/utils/util.c @@ -17,7 +17,9 @@ * */ +#if defined TIZEN_WEARABLE #include +#endif #include #include #include @@ -792,7 +794,7 @@ gboolean netconfig_send_notification_to_net_popup(const char * noti, const char bundle_add(b, "_AP_NAME_", ssid); } - ret = aul_launch_app("net.netpopup", b); + ret = syspopup_launch("net.netpopup", b); bundle_free(b); @@ -816,7 +818,7 @@ int netconfig_send_message_to_net_popup(const char *title, bundle_add(b, "_SYSPOPUP_TYPE_", type); bundle_add(b, "_AP_NAME_", ssid); - ret = aul_launch_app("net.netpopup", b); + ret = syspopup_launch("net.netpopup", b); bundle_free(b); diff --git a/src/wifi-state.c b/src/wifi-state.c index 01ac8bf..ebf82d5 100755 --- a/src/wifi-state.c +++ b/src/wifi-state.c @@ -17,7 +17,6 @@ * */ -#include #include #include #include @@ -61,7 +60,7 @@ static void __netconfig_pop_wifi_connected_poppup(const char *ssid) bundle_add(b, "_AP_NAME_", ssid); DBG("Launch Wi-Fi connected alert network popup"); - aul_launch_app("net.netpopup", b); + syspopup_launch("net.netpopup", b); bundle_free(b); } @@ -178,11 +177,6 @@ static gboolean __is_favorited(GVariantIter *array) static void _wifi_state_connected_activation(void) { /* Add activation of services when Wi-Fi is connected */ - bundle *b = NULL; - - b = bundle_create(); - aul_launch_app("com.samsung.keepit-service-standby", b); - bundle_free(b); } static void _wifi_state_changed(wifi_service_state_e state) -- 2.7.4