summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungki Lee <mk5004.lee@samsung.com>2016-12-28 14:36:55 +0900
committerMyungki Lee <mk5004.lee@samsung.com>2016-12-28 14:36:55 +0900
commit170cbc12f31d2bddc1eaf64b46dca7b2e218e7fc (patch)
tree0f84db0c251a5a544ac50d34836d4b7b08c9fd46
parent8ea5aacad5403084fa778150533915221c1c2bb6 (diff)
downloadnotification-170cbc12f31d2bddc1eaf64b46dca7b2e218e7fc.tar.gz
notification-170cbc12f31d2bddc1eaf64b46dca7b2e218e7fc.tar.bz2
notification-170cbc12f31d2bddc1eaf64b46dca7b2e218e7fc.zip
- if user select a notification on quickpanel, receive a pressed event cb. if user swipe a notification on quickpanel, receive a deleted event cb. Change-Id: Ibe691e5af49ef1ecaee82b7363fef47ece00c096 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rw-r--r--include/notification_internal.h2
-rwxr-xr-xsrc/notification_internal.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/include/notification_internal.h b/include/notification_internal.h
index e5ad7b9..6d5589a 100644
--- a/include/notification_internal.h
+++ b/include/notification_internal.h
@@ -52,6 +52,8 @@ typedef enum _notification_ongoing_value_type {
typedef enum _notification_event_type_extension {
NOTIFICATION_EVENT_TYPE_HIDDEN_BY_USER = 100,
NOTIFICATION_EVENT_TYPE_HIDDEN_BY_TIMEOUT = 101,
+ NOTIFICATION_EVENT_TYPE_PRESSED = 200,
+ NOTIFICATION_EVENT_TYPE_DELETED = 201,
} notification_event_type_extension_e;
GQuark notification_error_quark(void);
diff --git a/src/notification_internal.c b/src/notification_internal.c
index b02b501..c7ef336 100755
--- a/src/notification_internal.c
+++ b/src/notification_internal.c
@@ -1581,9 +1581,11 @@ EXPORT_API int notification_send_event(notification_h noti, int event_type)
return NOTIFICATION_ERROR_INVALID_PARAMETER;
if (!((event_type >= NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1
- && event_type < NOTIFICATION_EVENT_TYPE_MAX)
- || (event_type >= NOTIFICATION_EVENT_TYPE_HIDDEN_BY_USER
- && event_type <= NOTIFICATION_EVENT_TYPE_HIDDEN_BY_TIMEOUT)))
+ && event_type < NOTIFICATION_EVENT_TYPE_MAX) ||
+ (event_type >= NOTIFICATION_EVENT_TYPE_HIDDEN_BY_USER
+ && event_type <= NOTIFICATION_EVENT_TYPE_HIDDEN_BY_TIMEOUT) ||
+ (event_type >= NOTIFICATION_EVENT_TYPE_PRESSED
+ && event_type <= NOTIFICATION_EVENT_TYPE_DELETED)))
return NOTIFICATION_ERROR_INVALID_PARAMETER;
ret = notification_get_event_flag(noti, &event_flag);