Change dbus function name
[platform/core/system/libsvi.git] / include / feedback-ids.h
1 /*
2  * libfeedback
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19 #ifndef __FEEDBACK_IDS_H__
20 #define __FEEDBACK_IDS_H__
21
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27
28 /**
29  * @addtogroup CAPI_SYSTEM_FEEDBACK_MODULE
30  * @{
31  */
32
33
34 /**
35  * @brief Enumeration for feedback interface type.
36  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
37  */
38 typedef enum {
39         FEEDBACK_TYPE_NONE, /**< Feedback type none */
40         FEEDBACK_TYPE_SOUND, /**< Feedback type for sound */
41         FEEDBACK_TYPE_VIBRATION, /**< Feedback type for vibration */
42         FEEDBACK_TYPE_END,
43 } feedback_type_e;
44
45
46 /**
47  * @brief Enumeration for feedback interface of the system pre-defined patterns.
48  * @details Each feedback pattern can have separate media files of each types.
49  *          But depending on vendor design, pattern may not have any type of file.
50  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
51  */
52 typedef enum {
53         FEEDBACK_PATTERN_NONE = -1,
54
55         FEEDBACK_PATTERN_TAP = 0, /**< Feedback pattern when general touch */
56         FEEDBACK_PATTERN_SIP, /**< Feedback pattern when touch text key */
57         FEEDBACK_PATTERN_KEY0 = 6, /**< Feedback pattern when touch numeric 0 key */
58         FEEDBACK_PATTERN_KEY1, /**< Feedback pattern when touch numeric 1 key */
59         FEEDBACK_PATTERN_KEY2, /**< Feedback pattern when touch numeric 2 key */
60         FEEDBACK_PATTERN_KEY3, /**< Feedback pattern when touch numeric 3 key */
61         FEEDBACK_PATTERN_KEY4, /**< Feedback pattern when touch numeric 4 key */
62         FEEDBACK_PATTERN_KEY5, /**< Feedback pattern when touch numeric 5 key */
63         FEEDBACK_PATTERN_KEY6, /**< Feedback pattern when touch numeric 6 key */
64         FEEDBACK_PATTERN_KEY7, /**< Feedback pattern when touch numeric 7 key */
65         FEEDBACK_PATTERN_KEY8, /**< Feedback pattern when touch numeric 8 key */
66         FEEDBACK_PATTERN_KEY9, /**< Feedback pattern when touch numeric 9 key */
67         FEEDBACK_PATTERN_KEY_STAR, /**< Feedback pattern when touch star key */
68         FEEDBACK_PATTERN_KEY_SHARP, /**< Feedback pattern when touch sharp key */
69         FEEDBACK_PATTERN_KEY_BACK, /**< Feedback pattern when touch backspace key */
70         FEEDBACK_PATTERN_HOLD, /**< Feedback pattern when touch hold */
71         FEEDBACK_PATTERN_HW_TAP = 21, /**< Feedback pattern when press hardware key */
72         FEEDBACK_PATTERN_HW_HOLD, /**< Feedback pattern when holding press hardware key */
73
74         FEEDBACK_PATTERN_MESSAGE, /**< Feedback pattern when incoming a message */
75         FEEDBACK_PATTERN_EMAIL = 25, /**< Feedback pattern when incoming an email */
76         FEEDBACK_PATTERN_WAKEUP = 27, /**< Feedback pattern when alert wake up call */
77         FEEDBACK_PATTERN_SCHEDULE = 29, /**< Feedback pattern when alert schedule alarm */
78         FEEDBACK_PATTERN_TIMER = 31, /**< Feedback pattern when alert timer */
79         FEEDBACK_PATTERN_GENERAL = 33, /**< Feedback pattern when alert general event */
80
81         FEEDBACK_PATTERN_POWERON = 36, /**< Feedback pattern when power on */
82         FEEDBACK_PATTERN_POWEROFF, /**< Feedback pattern when power off */
83         FEEDBACK_PATTERN_CHARGERCONN, /**< Feedback pattern when connecting charger */
84         FEEDBACK_PATTERN_CHARGING_ERROR = 40, /**< Feedback pattern when occuring charging error */
85         FEEDBACK_PATTERN_FULLCHARGED = 42, /**< Feedback pattern when full charged */
86         FEEDBACK_PATTERN_LOWBATT = 44, /**< Feedback pattern when low battery */
87         FEEDBACK_PATTERN_LOCK = 46, /**< Feedback pattern when lock */
88         FEEDBACK_PATTERN_UNLOCK, /**< Feedback pattern when unlock */
89         FEEDBACK_PATTERN_VIBRATION_ON = 55, /**< Feedback pattern when turn on vibration mode */
90         FEEDBACK_PATTERN_SILENT_OFF, /**< Feedback pattern when turn off silent mode */
91         FEEDBACK_PATTERN_BT_CONNECTED, /**< Feedback pattern when connecting with bluetooth */
92         FEEDBACK_PATTERN_BT_DISCONNECTED, /**< Feedback pattern when disconnecting with bluetooth */
93         FEEDBACK_PATTERN_LIST_REORDER = 62, /**< Feedback pattern when list reorder */
94         FEEDBACK_PATTERN_LIST_SLIDER, /**< Feedback pattern when list slider sweep */
95         FEEDBACK_PATTERN_VOLUME_KEY, /**< Feedback pattern when pressed volume key */
96
97         FEEDBACK_PATTERN_SYSTEM_SHORT = 107, /**< Feedback pattern for short feedback (Since 4.0) */
98         FEEDBACK_PATTERN_SYSTEM_ERROR, /**< Feedback pattern for error (Since 4.0) */
99         FEEDBACK_PATTERN_SYSTEM_LONG = 112, /**< Feedback pattern for long feedback (Since 4.0) */
100         FEEDBACK_PATTERN_SYSTEM_MID, /**< Feedback pattern for normal feedback (Since 4.0) */
101         FEEDBACK_PATTERN_END_EFFECT = 117, /**< Feedback pattern for end of effect (Since 4.0) */
102
103         FEEDBACK_PATTERN_GENERAL_STRONG_BUZZ = 135, /**< Feedback pattern for strong buzz (Since 4.0) */
104         FEEDBACK_PATTERN_END = 10000,
105
106 } feedback_pattern_e;
107
108
109 /**
110  * @}
111  */
112
113
114 #ifdef __cplusplus
115 }
116 #endif
117
118
119 #endif //__FEEDBACK_IDS_H__