22d99b22e7e5c6fb40e3321b587bb518ac756054
[platform/core/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         TNOTI_MODEM_ADDED,
92
93         TNOTI_SIM = TCORE_NOTIFICATION | TCORE_TYPE_SIM,
94         TNOTI_SIM_STATUS,
95
96         TNOTI_SAT = TCORE_NOTIFICATION | TCORE_TYPE_SAT,
97         TNOTI_SAT_PROACTIVE_CMD,
98         TNOTI_SAT_SESSION_END,
99
100         TNOTI_SAP = TCORE_NOTIFICATION | TCORE_TYPE_SAP,
101         TNOTI_SAP_STATUS,
102         TNOTI_SAP_DISCONNECT,
103
104         TNOTI_NETWORK = TCORE_NOTIFICATION | TCORE_TYPE_NETWORK,
105         TNOTI_NETWORK_REGISTRATION_STATUS,
106         TNOTI_NETWORK_LOCATION_CELLINFO,
107         TNOTI_NETWORK_ICON_INFO,
108         TNOTI_NETWORK_CHANGE,
109         TNOTI_NETWORK_TIMEINFO,
110         TNOTI_NETWORK_IDENTITY,
111         TNOTI_NETWORK_NEIGHBORING_CELL_INFO,
112         TNOTI_NETWORK_RESTRICTED_STATE,
113
114         TNOTI_PS = TCORE_NOTIFICATION | TCORE_TYPE_PS,
115         TNOTI_PS_CALL_STATUS,
116         TNOTI_PS_CURRENT_SESSION_DATA_COUNTER,
117         TNOTI_PS_PDP_IPCONFIGURATION,
118         TNOTI_PS_EXTERNAL_CALL,
119         TNOTI_PS_PROTOCOL_STATUS,
120
121         TNOTI_SMS = TCORE_NOTIFICATION | TCORE_TYPE_SMS,
122         TNOTI_SMS_INCOM_MSG,                    /* This is an unsolicited Incoming SMS Event*/
123         TNOTI_SMS_CB_INCOM_MSG,         /* This is an unsolicited Incoming cell broadcast message*/
124         TNOTI_SMS_INCOM_EX_MSG,         /* This is an extended unsolicited Incoming SMS Event*/
125         TNOTI_SMS_CB_INCOM_EX_MSG,      /* This is an extended unsolicited Incoming cell broadcast message*/
126         TNOTI_SMS_MEMORY_STATUS,                /* This event is an unsolicited event indicating SIM memory status */
127         TNOTI_SMS_DEVICE_READY,         /* Device Ready indication */
128         TNOTI_SMS_IND_MAX,
129         TNOTI_SMS_ETWS_INCOM_MSG,               /* This is an unsolicited Incoming ETWS message*/
130
131         TNOTI_PHONEBOOK = TCORE_NOTIFICATION | TCORE_TYPE_PHONEBOOK,
132         TNOTI_PHONEBOOK_STATUS,
133
134         TNOTI_GPS = TCORE_NOTIFICATION | TCORE_TYPE_GPS,
135         TNOTI_GPS_ASSIST_DATA,
136         TNOTI_GPS_MEASURE_POSITION,
137         TNOTI_GPS_RESET_ASSIST_DATA,
138         TNOTI_GPS_FREQUENCY_AIDING_DATA,
139
140         TNOTI_CUSTOM = TCORE_NOTIFICATION | TCORE_TYPE_CUSTOM,
141 };
142
143 struct tnoti_server_run {
144 };
145
146 struct tnoti_server_added_plugin {
147 };
148
149 struct tnoti_server_removed_plugin {
150 };
151
152 struct tnoti_server_added_communicator {
153 };
154
155 struct tnoti_server_removed_communicator {
156 };
157
158 struct tnoti_server_added_hal {
159 };
160
161 struct tnoti_server_removed_hal {
162 };
163
164 struct tnoti_server_added_storage {
165 };
166
167 struct tnoti_server_removed_storage {
168 };
169
170 struct tnoti_server_exit {
171 };
172
173 struct tnoti_custom {
174         unsigned int length;
175         void *data;
176 };
177
178 __END_DECLS
179
180 #endif