Add extention event type 17/141517/2
authorSeungha Son <seungha.son@samsung.com>
Tue, 1 Aug 2017 02:24:51 +0000 (11:24 +0900)
committerSon seungha <seungha.son@samsung.com>
Tue, 1 Aug 2017 11:07:37 +0000 (11:07 +0000)
 - It is a type for event where notifications are hidden due to
   not user and timeout but external factors.

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ieb6203d46e0476875f7cfcfa94283359b570e8a1

include/notification_internal.h
src/notification_internal.c

index 4045b89..b122474 100755 (executable)
@@ -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;
index b2fbdaa..e8db042 100755 (executable)
@@ -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;