heynoti
tapi
dlog
- syspopup-caller
device-node
sensor
notification
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(syspopup-caller)
%if %{with x}
BuildRequires: pkgconfig(x11)
%endif
int ret = -1, state = 0;
ret = vconf_get_int(VCONFKEY_STARTER_SEQUENCE, &state);
if (state == 1 || ret != 0) {
- bundle *b = NULL;
- b = bundle_create();
if (lowbat_popup_option == LOWBAT_OPT_WARNING || lowbat_popup_option == LOWBAT_OPT_CHECK) {
- bundle_add(b, "_SYSPOPUP_CONTENT_", "warning");
+ // TODO : display a popup "warning"
} else if(lowbat_popup_option == LOWBAT_OPT_POWEROFF) {
- bundle_add(b, "_SYSPOPUP_CONTENT_", "poweroff");
+ // TODO : display a popup "poweroff"
} else if(lowbat_popup_option == LOWBAT_OPT_CHARGEERR) {
- bundle_add(b, "_SYSPOPUP_CONTENT_", "chargeerr");
+ // TODO : display a popup "chargeerr"
} else
goto out;
-
- ret = syspopup_launch("lowbat-syspopup", b);
- if (ret < 0) {
- _E("popup lauch failed");
- bundle_free(b);
- return EINA_TRUE;
- }
out:
if (lowbat_popup_id != NULL) {
ecore_timer_del(lowbat_popup_id);
lowbat_popup_id = NULL;
}
lowbat_popup_option = 0;
- bundle_free(b);
- return EINA_FALSE;
}
- _D("boot-animation running yet");
+
return EINA_FALSE;
}
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
-#include <syspopup_caller.h>
-#include <aul.h>
#include <bundle.h>
#include <dirent.h>
#include <libudev.h>
if (val == 0 && bChargeDeviceInserted == 1) {
bChargeDeviceInserted = 0;
//low bat popup during charging device removing
+
if (vconf_get_int(VCONFKEY_SYSMAN_BATTERY_STATUS_LOW, &bat_state) == 0) {
- if(bat_state < VCONFKEY_SYSMAN_BAT_NORMAL
- || bat_state == VCONFKEY_SYSMAN_BAT_REAL_POWER_OFF) {
- bundle *b = NULL;
- b = bundle_create();
- if(bat_state == VCONFKEY_SYSMAN_BAT_REAL_POWER_OFF)
- bundle_add(b,"_SYSPOPUP_CONTENT_", "poweroff");
- else
- bundle_add(b, "_SYSPOPUP_CONTENT_", "warning");
- ret = syspopup_launch("lowbat-syspopup", b);
- if (ret < 0) {
- _I("popup launch failed");
+
+ if(bat_state < VCONFKEY_SYSMAN_BAT_NORMAL || bat_state == VCONFKEY_SYSMAN_BAT_REAL_POWER_OFF) {
+ if(bat_state == VCONFKEY_SYSMAN_BAT_REAL_POWER_OFF) {
+ // TODO : display a popup "poweroff"
+ }
+ else {
+ // TODO : display a popup "warning"
}
- bundle_free(b);
}
+
} else {
_E("failed to get vconf key");
return -1;
if (ret == -1) {
vconf_get_int(VCONFKEY_SYSMAN_MMC_MOUNT,&val);
if (val == VCONFKEY_SYSMAN_MMC_MOUNT_FAILED) {
- bundle *b = NULL;
- b = bundle_create();
- if (b == NULL) {
- _E("error bundle_create()");
- return;
- }
- bundle_add(b, "_SYSPOPUP_CONTENT_", "mounterr");
- ret = syspopup_launch("mmc-syspopup", b);
- if (ret < 0) {
- _E("popup launch failed");
- }
- bundle_free(b);
+ // TODO : display a popup mounterr
} else if (val == VCONFKEY_SYSMAN_MMC_MOUNT_COMPLETED) {
- bundle *b = NULL;
- b = bundle_create();
- if (b == NULL) {
- _E("error bundle_create()");
- return;
- }
- bundle_add(b, "_SYSPOPUP_CONTENT_", "mountrdonly");
- ret = syspopup_launch("mmc-syspopup", b);
- if (ret < 0) {
- _E("popup launch failed");
- }
- bundle_free(b);
+ // TODO : display a popup mountrdonly
}
}
}
static int battery_def_cf_opened_actioin(int argc, char **argv)
{
- int ret;
- static int present_status = 1;
- bundle *b;
-
- b = bundle_create();
- if (!b) {
- _E("fail to create bundle");
- return -EINVAL;
- }
-
- ret = bundle_add(b, "_SYSPOPUP_CONTENT_", "battdisconnect");
- if (ret != 0) {
- _E("fail to add bundle");
- goto out;
- }
-
- ret = syspopup_launch("lowbat-syspopup", b);
- if (ret < 0)
- _E("popup launch failed");
-
+ // TODO : display a popup
out:
- bundle_free(b);
- return ret;
+ return -EINVAL;
}
static void pci_keyboard_add_cb(struct ss_main_data *ad)
#include <dirent.h>
#include <vconf.h>
-#include <syspopup_caller.h>
#include <sys/reboot.h>
#include <sys/time.h>
#include <mntent.h>
_E("pre launched %s destroy", LOWBAT_EXEC_PATH);
kill(pid, SIGTERM);
}
- if (syspopup_launch(name, b) < 0)
- return -1;
+ // TODO : display a popup
}
//poweroff-popup
if (strncmp(name, POWEROFF_POPUP_NAME, strlen(POWEROFF_POPUP_NAME)) == 0) {
- if (syspopup_launch(name, b) < 0)
- return -1;
+ // TODO : display a popup poweroff-popup
}
//hdmi-popup
if (strncmp(name, HDMI_POPUP_NAME, strlen(HDMI_POPUP_NAME)) == 0) {
- if (syspopup_launch(name, b) < 0)
- return -1;
+ // TODO : display a popup hdmi-popup
}
//hdmi-noti
if (strncmp(name, HDMI_NOTI_EXEC_PATH, strlen(HDMI_NOTI_EXEC_PATH)) == 0) {
}
//user mem lowmem-popup
if (strncmp(name, LOWMEM_POPUP_NAME, strlen(LOWMEM_POPUP_NAME)) == 0) {
- if (syspopup_launch(name, b) < 0)
- return -1;
+ // TODO : display a popup lowmem-popup
}
return 0;
}
#include <sys/stat.h>
#include <fcntl.h>
#include <heynoti.h>
-#include <aul.h>
#include <vconf-keys.h>
#include <Ecore.h>
static int check_smack_popup(void)
{
- bundle *b = NULL;
- int ret = -1;
- int val = -1;
-
- b = bundle_create();
- bundle_add(b, "_SYSPOPUP_CONTENT_", "checksmack");
- ret = vconf_get_int(VCONFKEY_STARTER_SEQUENCE, &val);
- if (val == 1 || ret != 0) {
- if ((mmc_popup_pid = syspopup_launch("mmc-syspopup", b)) < 0) {
- _E("popup launch failed\n");
- }
- }
- bundle_free(b);
+ mmc_popup_pid = -1;
+ // TODO : display a popup
mmc_check_smack();
return 0;
static void launch_syspopup(const char *str)
{
- bundle *b;
- int ret;
- b = bundle_create();
- if (!b) {
- _E("error bundle_create()");
- return;
- }
- bundle_add(b, "_SYSPOPUP_CONTENT_", str);
- ret = syspopup_launch("mmc-syspopup", b);
- if (ret < 0)
- _E("popup launch failed");
- bundle_free(b);
+ // TODO : display a popup
}
static int mmc_check(char* path)
#include <TelPower.h>
#include <tapi_event.h>
#include <tapi_common.h>
-#include <syspopup_caller.h>
#include <sys/reboot.h>
#include <sys/time.h>
#include <mntent.h>
if (check_oomadj(oom_adj) == 0)
return 0;
- bundle *b = NULL;
-
- b = bundle_create();
- bundle_add(b, "_APP_NAME_", appname);
- ret = syspopup_launch("lowmem-syspopup", b);
- bundle_free(b);
- if (ret < 0) {
- _E("popup lauch failed");
- return -1;
- }
-
- if (set_su_oomadj(ret) < 0) {
- _E("Failed to set oom_adj");
- }
+ // TODO : display a popup
}
}
}
#include <libintl.h>
#include <locale.h>
#include <vconf.h>
-#include <syspopup_caller.h>
#include <notification.h>
#include "core/log.h"
#include "sys_pci_noti.h"