Tizen 2.1 base
[framework/telephony/libtcore.git] / include / type / notification.h
1 /*
2  * libtcore
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Ja-young Gu <jygu@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef __TYPE_NOTIFICATION_H__
22 #define __TYPE_NOTIFICATION_H__
23
24 #include <type/common.h>
25
26 __BEGIN_DECLS
27
28 enum tcore_notification_command {
29         TNOTI_UNKNOWN = 0,
30
31         TNOTI_SERVER = TCORE_NOTIFICATION | TCORE_TYPE_SERVER,
32         TNOTI_SERVER_RUN,
33         TNOTI_SERVER_ADDED_PLUGIN,
34         TNOTI_SERVER_REMOVED_PLUGIN,
35         TNOTI_SERVER_ADDED_COMMUNICATOR,
36         TNOTI_SERVER_REMOVED_COMMUNICATOR,
37         TNOTI_SERVER_ADDED_HAL,
38         TNOTI_SERVER_REMOVED_HAL,
39         TNOTI_SERVER_ADDED_STORAGE,
40         TNOTI_SERVER_REMOVED_STORAGE,
41         TNOTI_SERVER_EXIT,
42
43         TNOTI_CALL = TCORE_NOTIFICATION | TCORE_TYPE_CALL,
44         TNOTI_CALL_STATUS_IDLE,
45         TNOTI_CALL_STATUS_ACTIVE,
46         TNOTI_CALL_STATUS_HELD,
47         TNOTI_CALL_STATUS_DIALING,
48         TNOTI_CALL_STATUS_ALERT,
49         TNOTI_CALL_STATUS_INCOMING,
50         TNOTI_CALL_STATUS_WAITING,
51         TNOTI_CALL_INFO_CALL_CONNECTED_LINE,
52         TNOTI_CALL_INFO_WAITING,
53         TNOTI_CALL_INFO_CUG,
54         TNOTI_CALL_INFO_FORWARDED,
55         TNOTI_CALL_INFO_BARRED_INCOMING,
56         TNOTI_CALL_INFO_BARRED_OUTGOING,
57         TNOTI_CALL_INFO_DEFLECTED,
58         TNOTI_CALL_INFO_CLIR_SUPPRESSION_REJECT,
59         TNOTI_CALL_INFO_FORWARD_UNCONDITIONAL,
60         TNOTI_CALL_INFO_FORWARD_CONDITIONAL,
61         TNOTI_CALL_INFO_CALL_LINE_IDENTITY,
62         TNOTI_CALL_INFO_CALL_NAME_INFORMATION,
63         TNOTI_CALL_INFO_FORWARDED_CALL,
64         TNOTI_CALL_INFO_CUG_CALL,
65         TNOTI_CALL_INFO_DEFLECTED_CALL,
66         TNOTI_CALL_INFO_TRANSFERED_CALL,
67         TNOTI_CALL_INFO_HELD,
68         TNOTI_CALL_INFO_ACTIVE,
69         TNOTI_CALL_INFO_JOINED,
70         TNOTI_CALL_INFO_RELEASED_ON_HOLD,
71         TNOTI_CALL_INFO_TRANSFER_ALERT,
72         TNOTI_CALL_INFO_TRANSFERED,
73         TNOTI_CALL_INFO_CF_CHECK_MESSAGE,
74         TNOTI_CALL_SOUND_PATH,
75         TNOTI_CALL_SOUND_RINGBACK_TONE,
76         TNOTI_CALL_SOUND_WBAMR,
77         TNOTI_CALL_SOUND_EQUALIZATION,
78         TNOTI_CALL_SOUND_NOISE_REDUCTION,
79         TNOTI_CALL_SOUND_CLOCK_STATUS,
80
81         TNOTI_SS = TCORE_NOTIFICATION | TCORE_TYPE_SS,
82         TNOTI_SS_INFO,
83         TNOTI_SS_USSD,
84         TNOTI_SS_RELEASE_COMPLETE,
85
86         TNOTI_MODEM = TCORE_NOTIFICATION | TCORE_TYPE_MODEM,
87         TNOTI_MODEM_POWER,
88         TNOTI_MODEM_FLIGHT_MODE,
89         TNOTI_MODEM_DUN_PIN_CONTROL,
90         TNOTI_MODEM_DUN_EXTERNAL_CALL,
91
92         TNOTI_SIM = TCORE_NOTIFICATION | TCORE_TYPE_SIM,
93         TNOTI_SIM_STATUS,
94
95         TNOTI_SAT = TCORE_NOTIFICATION | TCORE_TYPE_SAT,
96         TNOTI_SAT_PROACTIVE_CMD,
97         TNOTI_SAT_SESSION_END,
98
99         TNOTI_SAP = TCORE_NOTIFICATION | TCORE_TYPE_SAP,
100         TNOTI_SAP_STATUS,
101         TNOTI_SAP_DISCONNECT,
102
103         TNOTI_NETWORK = TCORE_NOTIFICATION | TCORE_TYPE_NETWORK,
104         TNOTI_NETWORK_REGISTRATION_STATUS,
105         TNOTI_NETWORK_LOCATION_CELLINFO,
106         TNOTI_NETWORK_ICON_INFO,
107         TNOTI_NETWORK_CHANGE,
108         TNOTI_NETWORK_TIMEINFO,
109         TNOTI_NETWORK_IDENTITY,
110         TNOTI_NETWORK_NEIGHBORING_CELL_INFO,
111         TNOTI_NETWORK_RESTRICTED_STATE,
112
113         TNOTI_PS = TCORE_NOTIFICATION | TCORE_TYPE_PS,
114         TNOTI_PS_CALL_STATUS,
115         TNOTI_PS_CURRENT_SESSION_DATA_COUNTER,
116         TNOTI_PS_PDP_IPCONFIGURATION,
117         TNOTI_PS_EXTERNAL_CALL,
118         TNOTI_PS_PROTOCOL_STATUS,
119
120         TNOTI_SMS = TCORE_NOTIFICATION | TCORE_TYPE_SMS,
121         TNOTI_SMS_INCOM_MSG,                    /* This is an unsolicited Incoming SMS Event*/
122         TNOTI_SMS_CB_INCOM_MSG,         /* This is an unsolicited Incoming cell broadcast message*/
123         TNOTI_SMS_INCOM_EX_MSG,         /* This is an extended unsolicited Incoming SMS Event*/
124         TNOTI_SMS_CB_INCOM_EX_MSG,      /* This is an extended unsolicited Incoming cell broadcast message*/
125         TNOTI_SMS_MEMORY_STATUS,                /* This event is an unsolicited event indicating SIM memory status */
126         TNOTI_SMS_DEVICE_READY,         /* Device Ready indication */
127         TNOTI_SMS_IND_MAX,
128         TNOTI_SMS_ETWS_INCOM_MSG,               /* This is an unsolicited Incoming ETWS message*/
129
130         TNOTI_PHONEBOOK = TCORE_NOTIFICATION | TCORE_TYPE_PHONEBOOK,
131         TNOTI_PHONEBOOK_STATUS,
132
133         TNOTI_GPS = TCORE_NOTIFICATION | TCORE_TYPE_GPS,
134         TNOTI_GPS_ASSIST_DATA,
135         TNOTI_GPS_MEASURE_POSITION,
136         TNOTI_GPS_RESET_ASSIST_DATA,
137         TNOTI_GPS_FREQUENCY_AIDING_DATA,
138
139         TNOTI_CUSTOM = TCORE_NOTIFICATION | TCORE_TYPE_CUSTOM,
140 };
141
142 struct tnoti_server_run {
143 };
144
145 struct tnoti_server_added_plugin {
146 };
147
148 struct tnoti_server_removed_plugin {
149 };
150
151 struct tnoti_server_added_communicator {
152 };
153
154 struct tnoti_server_removed_communicator {
155 };
156
157 struct tnoti_server_added_hal {
158 };
159
160 struct tnoti_server_removed_hal {
161 };
162
163 struct tnoti_server_added_storage {
164 };
165
166 struct tnoti_server_removed_storage {
167 };
168
169 struct tnoti_server_exit {
170 };
171
172 struct tnoti_custom {
173         unsigned int length;
174         void *data;
175 };
176
177 __END_DECLS
178
179 #endif