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