From 402260d7ea6a502078486fe41bbc1cfd18f50e00 Mon Sep 17 00:00:00 2001 From: Seungha Son Date: Tue, 1 Aug 2017 11:24:51 +0900 Subject: [PATCH] Add extention event type - It is a type for event where notifications are hidden due to not user and timeout but external factors. Signed-off-by: Seungha Son Change-Id: Ieb6203d46e0476875f7cfcfa94283359b570e8a1 --- include/notification_internal.h | 1 + src/notification_internal.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/notification_internal.h b/include/notification_internal.h index 4045b89..b122474 100755 --- a/include/notification_internal.h +++ b/include/notification_internal.h @@ -75,6 +75,7 @@ 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_HIDDEN_BY_EXTERNAL = 102, NOTIFICATION_EVENT_TYPE_PRESSED = 200, NOTIFICATION_EVENT_TYPE_DELETED = 201, } notification_event_type_extension_e; diff --git a/src/notification_internal.c b/src/notification_internal.c index b2fbdaa..e8db042 100755 --- a/src/notification_internal.c +++ b/src/notification_internal.c @@ -1697,7 +1697,7 @@ EXPORT_API int notification_send_event(notification_h noti, int event_type) 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_HIDDEN_BY_EXTERNAL) || (event_type >= NOTIFICATION_EVENT_TYPE_PRESSED && event_type <= NOTIFICATION_EVENT_TYPE_DELETED))) return NOTIFICATION_ERROR_INVALID_PARAMETER; @@ -1721,7 +1721,7 @@ EXPORT_API int notification_send_event_by_priv_id(int priv_id, int event_type) 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_HIDDEN_BY_EXTERNAL) || (event_type >= NOTIFICATION_EVENT_TYPE_PRESSED && event_type <= NOTIFICATION_EVENT_TYPE_DELETED))) return NOTIFICATION_ERROR_INVALID_PARAMETER; -- 2.7.4