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 d67d3a40c387ceab6767d66b1b0355770ba79818..9394df6208ca604e8626991c028bb75021764fbb 100755 (executable)
@@ -85,6 +85,7 @@ ENDIF(TIZEN_DEBUG_DISABLE)
 
 INCLUDE(FindPkgConfig)
 PKG_CHECK_MODULES(pkgs REQUIRED
+       aul
        dlog
        tapi
        vconf
index d42f02b8b0eea97ab84ee2892c98b3713a306ac6..f4270e4a021444d343193548f7b5fa08e655ba0f 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 8cf712f86392c90463498e59789880bd0828c0eb..7942d33dc3eb68604a28c70bcda3e06a615290a9 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 b4bfc4ca3d283c41c8fc8cd6c214d5c249c42d9e..f83252d2e3713a713730eca0c908309c290aaf4e 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 01ac8bf8b770c0b15074548f12e62070a80b19f5..ebf82d5f06e5be55c057dd731c70e365413325d1 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)