From: Seungha Son Date: Tue, 1 Aug 2017 02:24:51 +0000 (+0900) Subject: Add extention event type X-Git-Tag: submit/tizen/20170802.081849~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=402260d7ea6a502078486fe41bbc1cfd18f50e00;p=platform%2Fcore%2Fapi%2Fnotification.git 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 --- diff --git a/include/notification_internal.h b/include/notification_internal.h index 4045b89d..b1224745 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 b2fbdaa0..e8db0423 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;