Add aul dependency and Use syspopup API to lauch syspopup app 49/51449/2 accepted/tizen/mobile/20151112.232012 accepted/tizen/tv/20151112.232025 accepted/tizen/wearable/20151111.044735 submit/tizen/20151109.234313 submit/tizen_wearable/20151109.234313
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 10 Nov 2015 01:13:28 +0000 (10:13 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 10 Nov 2015 01:40:51 +0000 (10:40 +0900)
Change-Id: Id6dbe77c8405df4a17c0c1b843058905d3d73da6
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
CMakeLists.txt
packaging/net-config.spec
src/network-state.c
src/utils/util.c
src/wifi-state.c

index d67d3a4..9394df6 100755 (executable)
@@ -85,6 +85,7 @@ ENDIF(TIZEN_DEBUG_DISABLE)
 
 INCLUDE(FindPkgConfig)
 PKG_CHECK_MODULES(pkgs REQUIRED
+       aul
        dlog
        tapi
        vconf
index d42f02b..f4270e4 100755 (executable)
@@ -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)
index 8cf712f..7942d33 100755 (executable)
@@ -22,7 +22,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <aul.h>
 #include <net/if.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
index b4bfc4c..f83252d 100755 (executable)
@@ -17,7 +17,9 @@
  *
  */
 
+#if defined TIZEN_WEARABLE
 #include <aul.h>
+#endif
 #include <app.h>
 #include <errno.h>
 #include <vconf.h>
@@ -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);
 
index 01ac8bf..ebf82d5 100755 (executable)
@@ -17,7 +17,6 @@
  *
  */
 
-#include <aul.h>
 #include <vconf.h>
 #include <vconf-keys.h>
 #include <bundle.h>
@@ -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)