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