Release version 0.4.19
[platform/core/api/notification.git] / notification / include / notification_type_internal.h
1 /*
2  * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __NOTIFICATION_TYPE_INTERNAL_H__
18 #define __NOTIFICATION_TYPE_INTERNAL_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /**
25  * @addtogroup NOTIFICATION_INTERNAL
26  * @{
27  */
28
29 #define NOTIFICATION_GLOBAL_UID -1
30 #define NOTIFICATION_DISPLAY_APP_HEADS_UP NOTIFICATION_DISPLAY_APP_ACTIVE /* To avoid build error */
31
32 #define NOTIFICATION_LY_MAX NOTIFICATION_LY_EXTENSION
33 #define NOTIFICATION_EVENT_TYPE_MAX NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_10
34 #define NOTIFICATION_SOUND_TYPE_MAX NOTIFICATION_SOUND_TYPE_USER_DATA
35 #define NOTIFICATION_VIBRATION_TYPE_MAX NOTIFICATION_VIBRATION_TYPE_USER_DATA
36 #define NOTIFICATION_LED_OP_MAX NOTIFICATION_LED_OP_ON_CUSTOM_COLOR
37 #define NOTIFICATION_COUNT_DISPLAY_TYPE_MAX NOTIFICATION_COUNT_DISPLAY_TYPE_RIGHT
38 #define NOTIFICATION_TEXT_TYPE_MAX NOTIFICATION_TEXT_TYPE_BUTTON_10
39 #define NOTIFICATION_IMAGE_TYPE_MAX NOTIFICATION_IMAGE_TYPE_BUTTON_10
40 #define NOTIFICATION_EXECUTE_TYPE_MAX NOTIFICATION_EXECUTE_TYPE_MULTI_LAUNCH
41 #define NOTIFICATION_TYPE_MAX NOTIFICATION_TYPE_ONGOING
42 #define NOTIFICATION_OP_DATA_MAX NOTIFICATION_OP_DATA_EXTRA_INFO_2
43 #define NOTIFICATION_COUNT_POS_MAX NOTIFICATION_COUNT_POS_RIGHT
44 #define NOTIFICATION_VARIABLE_TYPE_MAX NOTIFICATION_VARIABLE_TYPE_COUNT
45
46 /**
47  * @brief Enumeration for notification resource path type.
48  * @since_tizen 3.0
49  */
50 typedef enum _notification_res_path_type {
51         NOTIFICATION_RES_PATH_TYPE_SOUND = NOTIFICATION_IMAGE_TYPE_MAX + 1, /**< Sound */
52         NOTIFICATION_RES_PATH_TYPE_VIBRATION, /**< Vibration */
53 } notification_res_path_type_e;
54
55 /**
56  * @brief Enumeration for notification ongoing value type.
57  * @since_tizen 3.0
58  */
59 typedef enum _notification_ongoing_value_type {
60         NOTIFICATION_ONGOING_VALUE_TYPE_PERCENT = 0, /**< Percent */
61         NOTIFICATION_ONGOING_VALUE_TYPE_TIME, /**< Time */
62 } notification_ongoing_value_type_e;
63
64 /**
65  * @brief Enumeration for extension event type on notification.
66  * @since_tizen 3.0
67  * @see #notification_event_type_e
68  */
69 typedef enum _notification_event_type_extension {
70         NOTIFICATION_EVENT_TYPE_HIDDEN_BY_USER = 100, /**< Hidden by user */
71         NOTIFICATION_EVENT_TYPE_HIDDEN_BY_TIMEOUT = 101, /**< Hidden by timeout */
72         NOTIFICATION_EVENT_TYPE_HIDDEN_BY_EXTERNAL = 102, /**< Hidden by external */
73         NOTIFICATION_EVENT_TYPE_PRESSED = 200, /**< Pressed by user */
74         NOTIFICATION_EVENT_TYPE_DELETED = 201, /**< Deleted by user */
75 } notification_event_type_extension_e;
76
77 /**
78  * @}
79  */
80
81 #ifdef __cplusplus
82 }
83 #endif
84 #endif /* __NOTIFICATION_TYPE_INTERNAL_H__ */