Support to receive cb when selected in viewer 36/107436/1 accepted/tizen/3.0/common/20170109.195429 accepted/tizen/3.0/ivi/20170105.231646 accepted/tizen/3.0/mobile/20170105.231552 accepted/tizen/3.0/tv/20170105.231612 accepted/tizen/3.0/wearable/20170105.231627 submit/tizen_3.0/20170104.055639
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 28 Dec 2016 05:36:55 +0000 (14:36 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Wed, 28 Dec 2016 05:36:55 +0000 (14:36 +0900)
- 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>
include/notification_internal.h
src/notification_internal.c

index e5ad7b93ddbd8bacbedd2616da2f2239b1543628..6d5589ad15e4fd06da1c59679721878e65d6d815 100644 (file)
@@ -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);
index b02b5017799bd35e319627547f019c71cd571e21..c7ef336038d5a5da3350cf0e409db7e99b13876a 100755 (executable)
@@ -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);