BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(wifi-direct)
BuildRequires: pkgconfig(tapi)
-BuildRequires: pkgconfig(syspopup-caller)
Requires(post): /usr/bin/vconftool
BuildRequires: pkgconfig(libsystemd-daemon)
%{?systemd_requires}
#include <vconf.h>
#include <vconf-keys.h>
-#include <aul.h>
#include "wifi.h"
#include "log.h"
static void __netconfig_pop_3g_alert_syspoppup(void)
{
int rv = 0;
- bundle *b = NULL;
int wifi_ug_state = 0;
vconf_get_int(VCONFKEY_WIFI_UG_RUN_STATE, &wifi_ug_state);
if (wifi_ug_state == VCONFKEY_WIFI_UG_RUN_STATE_ON_FOREGROUND)
return;
- b = bundle_create();
-
- bundle_add(b, "_SYSPOPUP_TITLE_", "Cellular connection popup");
- bundle_add(b, "_SYSPOPUP_TYPE_", "notification");
- bundle_add(b, "_SYSPOPUP_CONTENT_", "connected");
-
DBG("Launch 3G alert network popup");
- rv = aul_launch_app("org.tizen.net-popup", b);
+ // TODO : display a popup
- bundle_free(b);
}
static gboolean __netconfig_is_connected(const char *profile)
#include <vconf.h>
#include <vconf-keys.h>
#include <wifi-direct.h>
-#include <syspopup_caller.h>
-#include <aul.h>
#include "log.h"
#include "util.h"
static void __netconfig_pop_device_picker(void)
{
int rv = 0;
- bundle *b = NULL;
int wifi_ug_state = 0;
vconf_get_int(VCONFKEY_WIFI_UG_RUN_STATE, &wifi_ug_state);
if (wifi_ug_state == VCONFKEY_WIFI_UG_RUN_STATE_ON_FOREGROUND)
return;
- b = bundle_create();
-
DBG("Launch Wi-Fi device picker");
- rv = syspopup_launch("wifi-qs", b);
+ // TODO : display a popup
- bundle_free(b);
}
static gboolean __netconfig_wifi_try_device_picker(gpointer data)
void netconfig_add_wifi_found_notification(void)
{
- int ret;
- bundle *b = bundle_create();
-
- bundle_add(b, "_SYSPOPUP_TYPE_", "add_found_ap_noti");
-
- ret = aul_launch_app("org.tizen.net-popup", b);
-
- bundle_free(b);
-
- if (ret >= 0)
- DBG("Successfully added notification");
- else
- ERR("Unable to launch noti-popup. Err = %d", ret);
+ INFO("Add wifi found notification");
}
void netconfig_del_wifi_found_notification(void)
{
- int ret;
- bundle *b = bundle_create();
-
- bundle_add(b, "_SYSPOPUP_TYPE_", "del_found_ap_noti");
-
- ret = aul_launch_app("org.tizen.net-popup", b);
-
- bundle_free(b);
-
- if (ret >= 0)
- DBG("Successfully deleted notification");
- else
- ERR("Unable to launch noti-popup. Err = %d", ret);
+ INFO("Delete wifi found notification");
}