Add server notification when modem error occurs
[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         TNOTI_SERVER_MODEM_ERR,
43
44         TNOTI_CALL = TCORE_NOTIFICATION | TCORE_TYPE_CALL,
45         TNOTI_CALL_STATUS_IDLE,
46         TNOTI_CALL_STATUS_ACTIVE,
47         TNOTI_CALL_STATUS_HELD,
48         TNOTI_CALL_STATUS_DIALING,
49         TNOTI_CALL_STATUS_ALERT,
50         TNOTI_CALL_STATUS_INCOMING,
51         TNOTI_CALL_STATUS_WAITING,
52         TNOTI_CALL_INFO_CALL_CONNECTED_LINE,
53         TNOTI_CALL_INFO_WAITING,
54         TNOTI_CALL_INFO_CUG,
55         TNOTI_CALL_INFO_FORWARDED,
56         TNOTI_CALL_INFO_BARRED_INCOMING,
57         TNOTI_CALL_INFO_BARRED_OUTGOING,
58         TNOTI_CALL_INFO_DEFLECTED,
59         TNOTI_CALL_INFO_CLIR_SUPPRESSION_REJECT,
60         TNOTI_CALL_INFO_FORWARD_UNCONDITIONAL,
61         TNOTI_CALL_INFO_FORWARD_CONDITIONAL,
62         TNOTI_CALL_INFO_CALL_LINE_IDENTITY,
63         TNOTI_CALL_INFO_CALL_NAME_INFORMATION,
64         TNOTI_CALL_INFO_FORWARDED_CALL,
65         TNOTI_CALL_INFO_CUG_CALL,
66         TNOTI_CALL_INFO_DEFLECTED_CALL,
67         TNOTI_CALL_INFO_TRANSFERED_CALL,
68         TNOTI_CALL_INFO_HELD,
69         TNOTI_CALL_INFO_ACTIVE,
70         TNOTI_CALL_INFO_JOINED,
71         TNOTI_CALL_INFO_RELEASED_ON_HOLD,
72         TNOTI_CALL_INFO_TRANSFER_ALERT,
73         TNOTI_CALL_INFO_TRANSFERED,
74         TNOTI_CALL_INFO_CF_CHECK_MESSAGE,
75         TNOTI_CALL_SOUND_PATH,
76         TNOTI_CALL_SOUND_RINGBACK_TONE,
77         TNOTI_CALL_SOUND_WBAMR,
78         TNOTI_CALL_SOUND_EQUALIZATION,
79         TNOTI_CALL_SOUND_NOISE_REDUCTION,
80         TNOTI_CALL_SOUND_CLOCK_STATUS,
81
82         TNOTI_SS = TCORE_NOTIFICATION | TCORE_TYPE_SS,
83         TNOTI_SS_INFO,
84         TNOTI_SS_USSD,
85         TNOTI_SS_RELEASE_COMPLETE,
86
87         TNOTI_MODEM = TCORE_NOTIFICATION | TCORE_TYPE_MODEM,
88         TNOTI_MODEM_POWER,
89         TNOTI_MODEM_FLIGHT_MODE,
90         TNOTI_MODEM_DUN_PIN_CONTROL,
91         TNOTI_MODEM_DUN_EXTERNAL_CALL,
92         TNOTI_MODEM_ADDED,
93
94         TNOTI_SIM = TCORE_NOTIFICATION | TCORE_TYPE_SIM,
95         TNOTI_SIM_STATUS,
96
97         TNOTI_SAT = TCORE_NOTIFICATION | TCORE_TYPE_SAT,
98         TNOTI_SAT_PROACTIVE_CMD,
99         TNOTI_SAT_SESSION_END,
100
101         TNOTI_SAP = TCORE_NOTIFICATION | TCORE_TYPE_SAP,
102         TNOTI_SAP_STATUS,
103         TNOTI_SAP_DISCONNECT,
104
105         TNOTI_NETWORK = TCORE_NOTIFICATION | TCORE_TYPE_NETWORK,
106         TNOTI_NETWORK_REGISTRATION_STATUS,
107         TNOTI_NETWORK_LOCATION_CELLINFO,
108         TNOTI_NETWORK_ICON_INFO,
109         TNOTI_NETWORK_CHANGE,
110         TNOTI_NETWORK_TIMEINFO,
111         TNOTI_NETWORK_IDENTITY,
112         TNOTI_NETWORK_NEIGHBORING_CELL_INFO,
113         TNOTI_NETWORK_RESTRICTED_STATE,
114
115         TNOTI_PS = TCORE_NOTIFICATION | TCORE_TYPE_PS,
116         TNOTI_PS_CALL_STATUS,
117         TNOTI_PS_CURRENT_SESSION_DATA_COUNTER,
118         TNOTI_PS_PDP_IPCONFIGURATION,
119         TNOTI_PS_EXTERNAL_CALL,
120         TNOTI_PS_PROTOCOL_STATUS,
121
122         TNOTI_SMS = TCORE_NOTIFICATION | TCORE_TYPE_SMS,
123         TNOTI_SMS_INCOM_MSG,                    /* This is an unsolicited Incoming SMS Event*/
124         TNOTI_SMS_CB_INCOM_MSG,         /* This is an unsolicited Incoming cell broadcast message*/
125         TNOTI_SMS_INCOM_EX_MSG,         /* This is an extended unsolicited Incoming SMS Event*/
126         TNOTI_SMS_CB_INCOM_EX_MSG,      /* This is an extended unsolicited Incoming cell broadcast message*/
127         TNOTI_SMS_MEMORY_STATUS,                /* This event is an unsolicited event indicating SIM memory status */
128         TNOTI_SMS_DEVICE_READY,         /* Device Ready indication */
129         TNOTI_SMS_IND_MAX,
130         TNOTI_SMS_ETWS_INCOM_MSG,               /* This is an unsolicited Incoming ETWS message*/
131
132         TNOTI_PHONEBOOK = TCORE_NOTIFICATION | TCORE_TYPE_PHONEBOOK,
133         TNOTI_PHONEBOOK_STATUS,
134
135         TNOTI_GPS = TCORE_NOTIFICATION | TCORE_TYPE_GPS,
136         TNOTI_GPS_ASSIST_DATA,
137         TNOTI_GPS_MEASURE_POSITION,
138         TNOTI_GPS_RESET_ASSIST_DATA,
139         TNOTI_GPS_FREQUENCY_AIDING_DATA,
140
141         TNOTI_CUSTOM = TCORE_NOTIFICATION | TCORE_TYPE_CUSTOM,
142 };
143
144 struct tnoti_server_run {
145 };
146
147 struct tnoti_server_added_plugin {
148 };
149
150 struct tnoti_server_removed_plugin {
151 };
152
153 struct tnoti_server_added_communicator {
154 };
155
156 struct tnoti_server_removed_communicator {
157 };
158
159 struct tnoti_server_added_hal {
160 };
161
162 struct tnoti_server_removed_hal {
163 };
164
165 struct tnoti_server_added_storage {
166 };
167
168 struct tnoti_server_removed_storage {
169 };
170
171 struct tnoti_server_exit {
172 };
173
174 struct tnoti_custom {
175         unsigned int length;
176         void *data;
177 };
178
179 __END_DECLS
180
181 #endif