BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(vconf-internal-keys)
BuildRequires: pkgconfig(appcore-common)
BuildRequires: pkgconfig(capi-appfw-app-common)
BuildRequires: pkgconfig(widget_service)
#include <aul_app_com.h>
#include <Ecore_Wl2.h>
#include <system_info.h>
-#include <vconf.h>
-#include <vconf-internal-keys.h>
#include <screen_connector_provider.h>
#include <appcore_multiwindow_base.h>
return feature;
}
-/* LCOV_EXCL_START */
-static void __on_poweroff(keynode_t *key, void *data)
-{
- int val;
-
- val = vconf_keynode_get_int(key);
- switch (val) {
- case VCONFKEY_SYSMAN_POWER_OFF_DIRECT:
- case VCONFKEY_SYSMAN_POWER_OFF_RESTART:
- LOGI("power off changed: %d", val);
- widget_base_exit();
- break;
- case VCONFKEY_SYSMAN_POWER_OFF_NONE:
- case VCONFKEY_SYSMAN_POWER_OFF_POPUP:
- default:
- /* DO NOTHING */
- break;
- }
-}
-/* LCOV_EXCL_STOP */
-
static void __check_empty_instance(void)
{
int cnt = appcore_multiwindow_base_instance_get_cnt();
}
screen_connector_provider_init();
- vconf_notify_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS,
- __on_poweroff, NULL);
-
-
if (__context.ops.create)
ret = __context.ops.create(data);
{
if (__context.ops.terminate)
__context.ops.terminate(data);
-
- vconf_ignore_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS,
- __on_poweroff);
screen_connector_provider_fini();
if (__viewer_endpoint) {