int flags = 0, priv_id = 0, flag_delete = 0;
notification_type_e type = NOTIFICATION_TYPE_NONE;
int ret = NOTIFICATION_ERROR_INVALID_PARAMETER;
-
+ int ret_event = NOTIFICATION_ERROR_INVALID_PARAMETER;
quickpanel_media_play_feedback();
retif(noti == NULL, NOTIFICATION_ERROR_INVALID_PARAMETER, "Invalid parameter!");
else
flag_delete = 1;
- if (flag_delete == 1 && (type == NOTIFICATION_TYPE_NOTI || _is_item_deletable(noti)))
+ if (flag_delete == 1 && (type == NOTIFICATION_TYPE_NOTI || _is_item_deletable(noti))) {
+ ret_event = notification_send_event(noti, NOTIFICATION_EVENT_TYPE_DELETED);
+ if (ret_event != NOTIFICATION_ERROR_NONE) {
+ DBG("notification_send_event is failed [%d]", ret_event);
+ }
+
ret = notification_delete_by_priv_id(caller_pkgname, NOTIFICATION_TYPE_NOTI, priv_id);
+ }
return ret;
}
static void _do_noti_press(notification_h noti, int pressed_area)
{
- DBG("launch app");
+ DBG("");
int ret = APP_CONTROL_ERROR_NONE;
char *pkgname = NULL;
char *caller_pkgname = NULL;
NOTIFICATION_EXECUTE_TYPE_MULTI_LAUNCH,
NULL, &multi_service_handle);
+ ret = notification_send_event(noti, NOTIFICATION_EVENT_TYPE_PRESSED);
+ if (ret != NOTIFICATION_ERROR_NONE) {
+ DBG("notification_send_event is failed [%d]", ret);
+ }
+
if (pressed_area == NOTI_PRESS_BUTTON_1 && responding_service_handle != NULL) {
DBG("");
quickpanel_uic_close_quickpanel(true, 1);