tizen 2.3 release
[framework/telephony/libslp-tapi.git] / include / TelSatProactvCmd.h
1 /*
2  * libslp-tapi
3  *
4  * Copyright (c) 2014 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 /**
22  * @file TelSatProactvCmd.h
23  */
24
25 /**
26  * @internal
27  * @addtogroup CAPI_TELEPHONY_SERVICE_SAT
28  * @{
29  */
30
31 #ifndef _TEL_SAT_PROACTV_CMD_H_
32 #define _TEL_SAT_PROACTV_CMD_H_
33
34 #include <TelSatObj.h>
35
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40
41 /**
42  * @brief Definition for the max count of SAT menu items.
43  * @since_tizen 2.3
44  */
45 #define TAPI_SAT_MENU_ITEM_COUNT_MAX                    40
46 /**
47  * @brief Definition for the max count of SAT provisioning reference.
48  * @since_tizen 2.3
49  */
50 #define TAPI_SAT_PROVISIONING_REF_MAX_COUNT             10
51
52 /**
53  * @brief The structure type containing the data objects for DISPLAY TEXT proactive command indication.
54  * @since_tizen 2.3
55  */
56 typedef struct {
57         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
58         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
59 } TelSatMoreTimeIndInfo_t;
60
61 /**
62  * @brief The structure type containing the data objects for DISPLAY TEXT proactive command indication.
63  * @since_tizen 2.3
64  */
65 typedef struct {
66         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
67         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
68         TelSatTextTypeInfo_t text; /**< Display text info */
69         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
70         int bImmediateRespRequested; /**< Flag for checking whether immediate response is required */
71         TelSatDurationInfo_t duration; /**<     Duration for which text should be displayed     */
72         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align, and so on */
73 } TelSatDisplayTextIndInfo_t;
74
75 /**
76  * @brief The structure type containing the data objects for GET INKEY proactive command indication.
77  * @since_tizen 2.3
78  */
79 typedef struct {
80         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
81         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
82         TelSatTextTypeInfo_t text; /**< Display text info */
83         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
84         TelSatDurationInfo_t duration; /**<     Duration for which text should be displayed     */
85         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
86 } TelSatGetInkeyIndInfo_t;
87
88 /**
89  * @brief The structure type containing the data objects for GET INPUT proactive command indication.
90  * @since_tizen 2.3
91  */
92 typedef struct {
93         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
94         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
95         TelSatTextTypeInfo_t text; /**< Display text info */
96         TelSatRespLenInfo_t respLen; /**< Input response length */
97         TelSatTextTypeInfo_t defaultText; /**< Default text info */
98         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
99         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
100 } TelSatGetInputIndInfo_t;
101
102 /**
103  * @brief The structure type containing the data objects for PLAY TONE proactive command indication.
104  * @since_tizen 2.3
105  */
106 typedef struct {
107         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
108         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
109         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
110         TelSatToneInfo_t tone; /**<     Tone info */
111         TelSatDurationInfo_t duration; /**<     Duration for which tone should be played */
112         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
113         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
114 } TelSatPlayToneIndInfo_t;
115
116 /**
117  * @brief The structure type containing the data objects for SETUP MENU proactive command indication.
118  * @since_tizen 2.3
119  */
120 typedef struct {
121         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
122         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
123         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
124         unsigned char menuItemCount; /**< Count of menu items */
125         TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**< Menu item data */
126         TelSatItemsNextActionIndiListInfo_t itemNextActionIndList; /**< Next action indication list     */
127         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
128         TelSatIconIdentifierListInfo_t iconIdList; /**< Icon identifier list info */
129         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
130         TelSatTextAttributeListInfo_t itemTextAttributeList; /**< Item text attribute list */
131 } TelSatSetupMenuIndInfo_t;
132
133 /**
134  * @brief The structure type containing the data objects for SELECT ITEM proactive command indication data.
135  * @since_tizen 2.3
136  */
137 typedef struct {
138         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
139         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
140         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
141         TelSatItemsNextActionIndiListInfo_t itemNextActionIndList; /**< Next action indication list     */
142         unsigned char defaultItemIdentifier; /**< Default item identifier(default selected item ID)     */
143         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
144         TelSatIconIdentifierListInfo_t iconIdList; /**< Icon identifier list info */
145         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
146         TelSatTextAttributeListInfo_t itemTextAttributeList; /**< Item text attribute list */
147         unsigned char menuItemCount; /**< Count of menu items */
148         TelSatMenuItemInfo_t menuItem[TAPI_SAT_MENU_ITEM_COUNT_MAX]; /**< Menu item data */
149 } TelSatSelectItemIndInfo_t;
150
151 /**
152  * @brief The structure type containing the data objects for SEND SHORT MESSAGE proactive command indication.
153  * @since_tizen 2.3
154  */
155 typedef struct {
156         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
157         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
158         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
159         TelSatAddressInfo_t address; /**< Address for sending SMS */
160         TelSatSmsTpduInfo_t smsTpdu; /**< SMS TPDU info */
161         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
162         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
163 } TelSatSendSmsIndInfo_t;
164
165 /**
166  * @brief The structure type containing the data objects for SEND SS proactive command indication.
167  * @since_tizen 2.3
168  */
169 typedef struct {
170         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
171         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
172         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
173         TelSatSsStringInfo_t ssString; /**< SS string */
174         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
175         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
176 } TelSatSendSsIndInfo_t;
177
178 /**
179  * @brief The structure type containing the data objects for SEND USSD proactive command indication.
180  * @since_tizen 2.3
181  */
182 typedef struct {
183         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
184         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
185         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
186         TelSatUssdStringInfo_t ussdString; /**< USSD string info */
187         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
188         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
189 } TelSatSendUssdIndInfo_t;
190
191 /**
192  * @brief The structure type containing the data objects for SETUP CALL proactive command indication.
193  * @since_tizen 2.3
194  */
195 typedef struct {
196         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
197         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
198         TelSatAddressInfo_t address; /**< Setup call address info */
199         TelSatCapaConfigParamInfo_t ccp; /**< Capability configuration parameter */
200         TelSatSubAddressInfo_t subAddress; /**< Setup call sub address */
201         TelSatDurationInfo_t duration; /**<     Command execution time duration */
202         TelSatAlphaIdentifierInfo_t userConfirmPhaseAlphaId;/**< User Confirmation Phase Alpha ID */
203         TelSatAlphaIdentifierInfo_t callSetupPhaseAlphaId; /**< Call Setup Phase Alpha ID */
204         TelSatIconIdentifierInfo_t userConfirmPhaseIconId; /**< User Confirmation Phase Icon ID */
205         TelSatIconIdentifierInfo_t callSetupPhaseIconId; /**< Call Setup Phase Icon ID */
206         TelSatTextAttributeInfo_t userConfirmPhaseTextAttribute; /**< User Confirmation Phase Text Attribute */
207         TelSatTextAttributeInfo_t callSetupPhaseTextAttribute; /**<     Call Setup Phase Text Attribute */
208 } TelSatSetupCallIndInfo_t;
209
210 /**
211  * @brief The structure type containing the data objects for REFRESH proactive command indication.
212  * @since_tizen 2.3
213  */
214 typedef struct {
215         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
216         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
217         TelSatFileListInfo_t fileList; /**<     File list for refresh */
218         TelSatAidInfo_t aid; /**< Application ID */
219 } TelSatRefreshIndInfo_t;
220
221 /**
222  * @brief The structure type containing the data objects for PROVIDE LOCAL INFO proactive command indication.
223  * @since_tizen 2.3
224  */
225 typedef struct {
226         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
227         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
228
229 } TelSatProvideLocalInfoIndInfo_t;
230
231 /**
232  * @brief The structure type containing the data objects for SETUP EVENT LIST proactive command indication data.
233  * @since_tizen 2.3
234  */
235 typedef struct {
236         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
237         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
238         TelSatEventListInfo_t eventList; /**< Event list structure type containing events which are required by the USIM application */
239
240 } TelSatSetupEventListIndInfo_t;
241
242 /**
243  * @brief The structure type containing the data objects for SETUP IDLE MODE TEXT proactive command indication.
244  * @since_tizen 2.3
245  */
246 typedef struct {
247         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
248         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
249         TelSatTextTypeInfo_t text; /**< Text to be shown on an idle screen      */
250         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
251         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
252 } TelSatSetupIdleModeTextIndInfo_t;
253
254 /**
255  * @brief The structure type containing the data objects for SEND DTMF COMMAND proactive command indication.
256  * @since_tizen 2.3
257  */
258 typedef struct {
259         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
260         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
261         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
262         TelSatDtmfStringInfo_t dtmfString; /**< DTMF string     */
263         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
264         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
265 } TelSatSendDtmfIndInfo_t;
266
267 /**
268  * @brief The structure type containing the data objects for LANGUAGE NOTIFICATION proactive command indication.
269  * @since_tizen 2.3
270  */
271 typedef struct {
272         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier      */
273         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
274         TelSatLanguageInfo_t language; /**<     Language info from the USIM application */
275 } TelSatLanguageNotificationIndInfo_t;
276
277 /**
278  * @brief The structure type containing the data objects for LAUNCH BROWSER proactive command indication.
279  * @since_tizen 2.3
280  */
281 typedef struct {
282         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. it includes command number, type, and qualifier      */
283         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices      */
284         TelSatBrowserIdentitiesInfo_t browserId; /**< Browser identity  */
285         TelSatUrlInfo_t url; /**< URL */
286         TelSatBearerInfo_t bearer; /**< Bearer which is used by the browser     */
287         unsigned char provisioningRefCount; /**< Provisioning reference count */
288         TelSatProvisioningRefInfo_t provisioningRef[TAPI_SAT_PROVISIONING_REF_MAX_COUNT]; /**< Provisioning reference data */
289         TelSatTextTypeInfo_t text; /**< Display text info */
290         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
291         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
292         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
293 } TelSatLaunchBrowserIndInfo_t;
294
295 /**
296  * @brief The structure type containing the data objects for OPEN CHANNEL CSB proactive command indication data.
297  * @since_tizen 2.3
298  */
299 typedef struct {
300         TelSatAddressInfo_t address; /**< Channel address */
301         TelSatSubAddressInfo_t subAddress; /**< Channel sub address     */
302         TelSatDurationInfo_t duration1; /**< Connection require time */
303         TelSatDurationInfo_t duration2; /**< Connection require time 2 */
304         TelSatBearerParametersCsdInfo_t bearerParamsCsd; /**< CSD info */
305         TelSatBufferSizeInfo_t bufferSize; /**< Buffer size     */
306         TelSatOtherAddressInfo_t otherAddress; /**<     Other address */
307         TelSatTextTypeInfo_t userLogin; /**< User login */
308         TelSatTextTypeInfo_t userPassword; /**< User password */
309         TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     SIM ME interface transport level */
310         TelSatOtherAddressInfo_t dataDestinationAddress; /**< Data destination address  */
311 } TelSatOpenChannelCsbInfo_t;
312
313 /**
314  * @brief The structure type containing the data objects for OPEN CHANNEL (packet) proactive command indication data.
315  * @since_tizen 2.3
316  */
317 typedef struct {
318         TelSatBearerParametersGprsInfo_t bearerParamsGprs; /**< GPRS info */
319         TelSatBufferSizeInfo_t bufferSize; /**< Buffer size     */
320         TelSatnetworkAccessNameInfo_t networkAccessName; /**< Network access name */
321         TelSatOtherAddressInfo_t otherAddress; /**<     Other address */
322         TelSatTextTypeInfo_t userLogin; /**< User login */
323         TelSatTextTypeInfo_t userPassword; /**< User password */
324         TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     SIM ME interface transport level */
325         TelSatOtherAddressInfo_t dataDestinationAddress; /**< Data destination address  */
326         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
327 } TelSatOpenChannelpdbInfo_t;
328
329 /**
330  * @brief The structure type containing the data objects for OPEN CHANNEL LOCAL LINK proactive command indication data.
331  * @since_tizen 2.3
332  */
333 typedef struct {
334         TelSatDurationInfo_t duration1; /**< Command execution time duration1 */
335         TelSatDurationInfo_t duration2; /**< Command execution time duration2 */
336         TelSatBearerParametersLocalLinksInfo_t bearerParamsLocalLinks; /**<     Local link info */
337         TelSatBufferSizeInfo_t bufferSize; /**< Buffer size     */
338         TelSatTextTypeInfo_t userPassword; /**< User password */
339         TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     SIM ME interface transport level */
340         TelSatOtherAddressInfo_t dataDestinationAddress; /**< Data destination address */
341         TelSatRemoteEntityAddressInfo_t remoteEntityAddress; /**< Remote entity address */
342         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
343 } TelSatOpenChannelLocalBearerInfo_t;
344
345 /**
346  * @brief The structure type containing the data objects for OPEN CHANNEL (DEFAULT BEARER) proactive command indication data.
347  * @since_tizen 2.3
348  */
349 typedef struct {
350         TelSatBufferSizeInfo_t bufferSize; /**< Buffer size     */
351         TelSatOtherAddressInfo_t otherAddress; /**<     Other address */
352         TelSatTextTypeInfo_t userLogin; /**< User login */
353         TelSatTextTypeInfo_t userPassword; /**< User password */
354         TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel;/**< SIM ME interface transport level     */
355         TelSatOtherAddressInfo_t dataDestinationAddress; /**< Data destination address */
356 } TelSatOpenChannelDefaultBearerInfo_t;
357
358 /**
359  * @brief The structure type containing the data objects for OPEN CHANNEL (UICC Server Mode) proactive command indication data.
360  * @since_tizen 2.3
361  */
362 typedef struct {
363         TelSatBufferSizeInfo_t bufferSize; /**< Buffer size     */
364         TelSatSimMeInterfaceTransportLevelInfo_t simMeInterfaceTransportLevel; /**<     SIM ME interface transport level */
365 } TelSatOpenChannelUiccServerModeInfo_t;
366
367 /**
368  * @brief The structure type containing the data objects for OPEN CHANNEL proactive command indication data.
369  * @since_tizen 2.3
370  */
371 typedef struct {
372         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
373         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
374         int bIsUiccServerMode; /**<     Flag that indicates whether UICC server mode is active */
375         TelSatBearerDescType_t bearerType; /**< Bearer destination type */
376         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
377         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
378         union {
379                 TelSatOpenChannelCsbInfo_t csBearer; /**< CS info */
380                 TelSatOpenChannelpdbInfo_t pdBearer; /**< PBD info */
381                 TelSatOpenChannelLocalBearerInfo_t locBearer; /**< Local link info */
382                 TelSatOpenChannelDefaultBearerInfo_t defaultBearer; /**< Default bearer */
383                 TelSatOpenChannelUiccServerModeInfo_t uiccServerMode; /**< UICC server mode     */
384         } details; /**< Open Channel Details */
385 } TelSatOpenChannelIndInfo_t;
386
387 /**
388  * @brief The structure type containing the data objects for CLOSE CHANNEL proactive command indication data.
389  * @since_tizen 2.3
390  */
391 typedef struct {
392         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
393         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
394         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
395         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
396         TelSatTextAttributeInfo_t textAttribute; /**< Text attribute info - e.g. bold, center align     */
397 } TelSatCloseChannelIndInfo_t;
398
399 /**
400  * @brief The structure type containing the data objects for RECEIVE DATA proactive command indication data.
401  * @since_tizen 2.3
402  */
403 typedef struct {
404         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
405         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
406         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
407         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
408         TelSatChannelDataLengthInfo_t channelDataLen; /**< Channel data length */
409 } TelSatReceiveDataIndInfo_t;
410
411 /**
412  * @brief The structure type containing the data objects for SEND DATA proactive command indication data.
413  * @since_tizen 2.3
414  */
415 typedef struct {
416         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
417         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
418         TelSatAlphaIdentifierInfo_t alphaId; /**< Alpha identifier(string) info */
419         TelSatIconIdentifierInfo_t iconId; /**< Icon identifier info */
420         TelSatChannelDataInfo_t channel_data; /**< Channel data for sending     */
421 } TelSatSendDataIndInfo_t;
422
423 /**
424  * @brief The structure type containing the data objects for GET CHANNEL STATUS proactive command indication data.
425  * @since_tizen 2.3
426  */
427 typedef struct {
428         TelSatCommandDetailInfo_t commandDetail; /**< Command detail info. It includes command number, type, and qualifier */
429         TelSatDeviceIdentitiesInfo_t deviceIdentities; /**<     Device identities info. It includes source and destination devices */
430 } TelSatGetChannelStatusIndInfo_t;
431
432 /**
433  * @brief The structure type containing the data object for END PROACTIVE SESSION command indication.
434  * @since_tizen 2.3
435  */
436 typedef struct {
437         TelSatCommandType_t commandType; /**<   proactive command type  */
438 } TelSatEndProactiveSessionIndInfo_t;
439
440 /**
441  * @brief The structure type containing the data objects for PROACTIVE command indication union data.
442  * @since_tizen 2.3
443  */
444 typedef struct {
445         union {
446                 TelSatMoreTimeIndInfo_t moreTime;       /**< TBD */
447                 TelSatDisplayTextIndInfo_t displayText; /**< Parsed proactive command info from TLV to Telephony data type - display text */
448                 TelSatGetInkeyIndInfo_t getInkey; /**< Parsed proactive command info from TLV to Telephony data type - getInkey */
449                 TelSatGetInputIndInfo_t getInput; /**< Parsed proactive command info from TLV to Telephony data type - getInput */
450                 TelSatPlayToneIndInfo_t playTone; /**< Parsed proactive command info from TLV to Telephony data type - play tone */
451                 TelSatSetupMenuIndInfo_t setupMenu; /**< Parsed proactive command info from TLV to Telephony data type - setup menu     */
452                 TelSatSelectItemIndInfo_t selectItem; /**< Parsed proactive command info from TLV to Telephony data type - select item */
453                 TelSatSendSmsIndInfo_t sendSms; /**< Parsed proactive command info from TLV to Telephony data type - send SMS */
454                 TelSatSendSsIndInfo_t sendSs; /**< Parsed proactive command info from TLV to Telephony data type - send SS */
455                 TelSatSendUssdIndInfo_t sendUssd; /**< Parsed proactive command info from TLV to Telephony data type - send USSD */
456                 TelSatSetupCallIndInfo_t setupCall; /**< Parsed proactive command info from TLV to Telephony data type - setup call     */
457                 TelSatRefreshIndInfo_t refresh; /**< Parsed proactive command info from TLV to Telephony data type - refresh */
458                 TelSatProvideLocalInfoIndInfo_t provideLocInfo; /**< Parsed proactive command info from TLV to Telephony data type - provide local info */
459                 TelSatLaunchBrowserIndInfo_t launchBrowser; /**< Parsed proactive command info from TLV to Telephony data type - launch browser */
460                 TelSatSetupIdleModeTextIndInfo_t idleText; /**< Parsed proactive command info from TLV to Telephony data type - setup idle mode text */
461                 TelSatSendDtmfIndInfo_t sendDtmf; /**< Parsed proactive command info from TLV to Telephony data type - send DTMF */
462                 TelSatLanguageNotificationIndInfo_t languageNotification;/**< Parsed proactive command info from TLV to Telephony data type - language notification     */
463                 TelSatSetupEventListIndInfo_t setupEventList; /**< Parsed proactive command info from TLV to Telephony data type - setup event list     */
464                 TelSatOpenChannelIndInfo_t openChannel; /**< Parsed proactive command info from TLV to Telephony data type - open channel */
465                 TelSatCloseChannelIndInfo_t closeChannel; /**< Parsed proactive command info from TLV to Telephony data type - close channel */
466                 TelSatReceiveDataIndInfo_t receiveData; /**< Parsed proactive command info from TLV to Telephony data type - receive data */
467                 TelSatSendDataIndInfo_t sendData; /**< Parsed proactive command info from TLV to Telephony data type - send data */
468                 TelSatGetChannelStatusIndInfo_t getChannelStatus; /**< Parsed proactive command info from TLV to Telephony data type - get channel status */
469         } cmdInfo; /**< Union   */
470 } TelSatProactiveCmdData_t;
471
472 /**
473  * @brief The structure type containing the data objects for the Terminal Response of the DISPLAY TEXT proactive command.
474  * @since_tizen 2.3
475  */
476 typedef struct {
477         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
478 } TelSatDisplayTextRespInfo_t;
479
480 /**
481  * @brief The structure type containing the data objects for the Terminal Response of the GET INKEY proactive command.
482  * @since_tizen 2.3
483  */
484 typedef struct {
485         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
486         TelSatTextTypeInfo_t text; /**< Inserted key info */
487         TelSatDurationInfo_t duration;  /**< TBD */
488 } TelSatGetInkeyRespInfo_t;
489
490 /**
491  * @brief The structure type containing the data objects for the Terminal Response of the PLAY TONE proactive command.
492  * @since_tizen 2.3
493  */
494 typedef struct {
495         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
496 } TelSatPlayToneRespInfo_t;
497
498 /**
499  * @brief The structure type containing the data objects for the Terminal Response of the MORE TIME proactive command.
500  * @since_tizen 2.3
501  */
502 typedef struct {
503         TelSatResultInfo_t result; /**< Result that whether the current proactive command request is executed successfully */
504 } TelSatMoreTimeRespInfo_t;
505
506 /**
507  * @brief The structure type containing the data objects for the Terminal Response of the SETUP MENU proactive command.
508  * @since_tizen 2.3
509  */
510 typedef struct {
511         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
512 } TelSatSetupMenuRespInfo_t;
513
514 /**
515  * @brief The structure type containing the data objects for the Terminal Response of the GET INPUT proactive command.
516  * @since_tizen 2.3
517  */
518 typedef struct {
519         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
520         TelSatTextTypeInfo_t text; /**< Inserted string info */
521 } TelSatGetInputRespInfo_t;
522
523 /**
524  * @brief The structure type containing the data objects for the Terminal Response of the SELECT ITEM proactive command.
525  * @since_tizen 2.3
526  */
527 typedef struct {
528         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
529         int bOtherInfo; /**< Flag to check whether other information is required */
530         unsigned char itemIdentifier; /**< Item identifier */
531 } TelSatSelectItemRespInfo_t;
532
533 /**
534  * @brief The structure type containing the data objects for the Terminal Response of the PROVIDE LOCAL INFORMATION proactive command.
535  * @since_tizen 2.3
536  */
537 typedef struct {
538         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
539         int bOtherInfo; /**< Flag to check whether other information is required */
540         TelSatCmdQualiProvideLocalInfo_t infoType; /**< Local info type - e.g. time zone or language info, and so on */
541         union {
542                 TelSatDataTimeZoneInfo_t timeZoneInfo; /**<     Current time zone info */
543                 TelSatLanguageInfo_t languageInfo; /**< Current ME language setting info */
544         } u; /**<       Union   */
545 } TelSatProvideLocalInfoRespInfo_t;
546
547 /**
548  * @brief The structure type containing the data objects for the Terminal Response of the SETUP EVENT LIST proactive command.
549  * @since_tizen 2.3
550  */
551 typedef struct {
552         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
553 } TelSatSetupEventListRespInfo_t;
554
555 /**
556  * @brief The structure type containing the data objects for the Terminal Response of the SEND SMS proactive command.
557  * @since_tizen 2.3
558  */
559 typedef struct {
560         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
561         TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< Call control problem */
562 } TelSatSendSmsRespInfo_t;
563
564 /**
565  * @brief The structure type containing the data objects for the Terminal Response of the SET UP CALL proactive command.
566  * @since_tizen 2.3
567  */
568 typedef struct {
569         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
570         int bOtherInfo; /**< Flag to check whether other information is required */
571         TelSatNetworkProblemType_t networkProblem; /**< Network problem during setup call */
572         TelSatCallCtrlProblemType_t permanentCallCtrlProblem; /**<      Permanent call control problem  */
573         TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**< Call control requested action info */
574         TelSatResultInfo_t result2; /**< Additional response on general result */
575         TelSatTextTypeInfo_t text; /**< Text string info */
576         int bIsTapiCause; /**< Flag to check whether tapi causes problems */
577         unsigned long tapiCause; /**< Tapi call level cause */
578         unsigned long tapiSsCause; /**< Tapi SS level cause */
579 } TelSatSetupCallRespInfo_t;
580
581 /**
582  * @brief The structure type containing the data objects for the Terminal Response of the SEND SS proactive command.
583  * @since_tizen 2.3
584  */
585 typedef struct {
586         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
587         int bOtherInfo; /**< Flag to check whether other information is required */
588         TelSatSsProblemType_t additionalSsProblemInfo; /**<     Additional SS problem */
589         TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< Additional call control problem */
590         TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**< Call control requested action info */
591         TelSatResultInfo_t result2; /**< Additional response on general result */
592         TelSatTextTypeInfo_t text; /**< Text string info */
593 } TelSatSendSsRespInfo_t;
594
595 /**
596  * @brief The structure type containing the data objects for the Terminal Response of the SEND USSD proactive command.
597  * @since_tizen 2.3
598  */
599 typedef struct {
600         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
601         int bOtherInfo; /**< Flag to check whether other information is required */
602         TelSatUssdProblemType_t additionalUssdProblemInfo; /**< Additional USSD problem */
603         TelSatCallCtrlProblemType_t additionalCallCtrlProblemInfo; /**< Additional call control problem */
604         int bCallCtrlHasModification; /**< Flag to check whether modification happens during call control */
605         TelSatTextTypeInfo_t text; /**< Text string info */
606         TelSatCallCtrlRequestedActionInfo_t callCtrlRequestedAction; /**< Call control requested action info */
607         TelSatResultInfo_t result2; /**< Additional response on general result */
608         TelSatTextTypeInfo_t text2; /**< Text string info */
609 } TelSatSendUssdRespInfo_t;
610
611 /**
612  * @brief The structure type containing the data objects for the Terminal Response of the REFRESH proactive command.
613  * @since_tizen 2.3
614  */
615 typedef struct {
616         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
617 } TelSatRefreshRespInfo_t;
618
619 /**
620  * @brief The structure type containing the data objects for the Terminal Response of the GET CHANNEL STATUS proactive command.
621  * @since_tizen 2.3
622  */
623 typedef struct {
624         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
625         int bOtherInfo; /**< Flag to check whether other information is required */
626         TelSatBipProblemType_t additionalProblemInfo; /**< BIP specific problem info */
627         TelSatChannelStatusInfo_t channelStatus; /**< Channel Status */
628 } TelSatGetChannelStatusRespInfo_t;
629
630 /**
631  * @brief The structure type containing the data objects for the Terminal Response of the CLOSE CHANNEL proactive command.
632  * @since_tizen 2.3
633  */
634 typedef struct {
635         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
636         TelSatBipProblemType_t additionalProblemInfo; /**< BIP specific problem info */
637 } TelSatCloseChannelRespInfo_t;
638
639 /**
640  * @brief The structure type containing the data objects for the Terminal Response of the OPEN CHANNEL proactive command.
641  * @since_tizen 2.3
642  */
643 typedef struct {
644         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
645         int bOtherInfo; /**< Flag to check whether other information is required */
646         TelSatBearerDescriptionInfo_t bearerDescription; /**< Bearer description */
647         TelSatBipProblemType_t additionalProblemInfo; /**< BIP specific problem info */
648         TelSatChannelStatusInfo_t channelStatus; /**< Channel status */
649         TelSatBufferSizeInfo_t bufferSize; /**< Buffer size */
650 } TelSatOpenChannelRespInfo_t;
651
652 /**
653  * @brief The structure type containing the data objects for the Terminal Response of the LANGAUGE NOTIFICATION proactive command.
654  * @since_tizen 2.3
655  */
656 typedef struct {
657         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
658 } TelSatLanguageNotificationRespInfo_t;
659
660 /**
661  * @brief The structure type containing the data objects for the Terminal Response of the LAUNCH BROWSER proactive command.
662  * @since_tizen 2.3
663  */
664 typedef struct {
665         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
666         TelSatLaunchBrowserProblemType_t additionalProblemInfo; /**< Browser specific problem info */
667 } TelSatLaunchBrowserRespInfo_t;
668
669 /**
670  * @brief The structure type containing the data objects for the Terminal Response of the RECEIVE DATA proactive command.
671  * @since_tizen 2.3
672  */
673 typedef struct {
674         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
675         TelSatBipProblemType_t additionalProblemInfo; /**< BIP specific problem info */
676         int bOtherInfo; /**< Flag to check whether other information is required */
677         TelSatChannelDataInfo_t channel_data; /**< Channel data */
678         unsigned char channelDataLen; /**< Channel data length */
679 } TelSatReceiveDataRespInfo_t;
680
681 /**
682  * @brief The structure type containing the data objects for the Terminal Response of the SEND DATA proactive command.
683  * @since_tizen 2.3
684  */
685 typedef struct {
686         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
687         TelSatBipProblemType_t additionalProblemInfo; /**< BIP specific problem info */
688         unsigned char channelDataLen; /**< Channel data length */
689 } TelSatSendDataRespInfo_t;
690
691 /**
692  * @brief The structure type containing the data objects for the Terminal Response of the SETUP IDLE MODE TEXT proactive command.
693  * @since_tizen 2.3
694  */
695 typedef struct {
696         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
697 } TelSatSetupIdlemodeTextRespInfo_t;
698
699 /**
700  * @brief The structure type containing the data objects for the Terminal Response of the SEND DTMF proactive command.
701  * @since_tizen 2.3
702  */
703 typedef struct {
704         TelSatResultInfo_t result; /**< Result that indicates whether the current proactive command request is executed successfully */
705 } TelSatSendDtmfRespInfo_t;
706
707 /**
708  * @brief The structure type containing the data structures to be used to send the proactive command response.
709  * @since_tizen 2.3
710  */
711 typedef struct {
712         unsigned char commandNumber; /**< Proactive command number */
713         TelSatCommandType_t commandType; /**< Proactive command type */
714         union {
715                 TelSatMoreTimeRespInfo_t moreTime;      /**< TBD */
716                 TelSatDisplayTextRespInfo_t displayText; /**< Terminal response info from the displayText proactive command     */
717                 TelSatGetInkeyRespInfo_t getInkey; /**< Terminal response info from the getInkey proactive command */
718                 TelSatGetInputRespInfo_t getInput; /**< Terminal response info from the getInput proactive command */
719                 TelSatPlayToneRespInfo_t playTone; /**< Terminal response info from the playTone proactive command */
720                 TelSatSetupMenuRespInfo_t setupMenu; /**< Terminal response info from the setupMenu proactive command */
721                 TelSatSelectItemRespInfo_t selectItem; /**<     Terminal response info from the selectItem proactive command */
722                 TelSatSendSmsRespInfo_t sendSms; /**< Terminal response info from the sendSms proactive command */
723                 TelSatSendSsRespInfo_t sendSs; /**< Terminal response info from the sendSs proactive command */
724                 TelSatSendUssdRespInfo_t sendUssd; /**< Terminal response info from the sendUssd proactive command */
725                 TelSatSetupCallRespInfo_t setupCall; /**< Terminal response info from the setupCall proactive command */
726                 TelSatRefreshRespInfo_t refresh; /**< Terminal response info from the refresh proactive command */
727                 TelSatProvideLocalInfoRespInfo_t provideLocInfo; /**< Terminal response info from the provide Local Info proactive command */
728                 TelSatLaunchBrowserRespInfo_t launchBrowser; /**< Terminal response info from the launch Browser proactive command */
729                 TelSatSetupIdlemodeTextRespInfo_t idleText; /**< Terminal response info from the setup idle mode text proactive command */
730                 TelSatSendDtmfRespInfo_t sendDtmf; /**< Terminal response info from the send DTMF proactive command     */
731                 TelSatLanguageNotificationRespInfo_t languageNotification; /**< Terminal response info from the language Notification proactive command */
732                 TelSatSetupEventListRespInfo_t setupEventList; /**<     Terminal response info from the setup Event List proactive command */
733                 TelSatOpenChannelRespInfo_t openChannel; /**< Terminal response info from the openChannel proactive command     */
734         } terminalRespInfo; /**< Union */
735 } TelSatRespInfo_t;
736
737 /*
738  * SAT Icon Data
739  */
740
741 typedef struct {
742         unsigned char iconId;   /**< TBD */
743         unsigned char imgType;  /**< TBD */
744         unsigned char imgLen;   /**< TBD */
745         unsigned char imgData[256];     /**< TBD */
746 } TelSatIconDataResp_t;
747
748 typedef struct {
749         unsigned char iconId;   /**< TBD */
750         unsigned char imgType;  /**< TBD */
751         unsigned char fileId[2];        /**< TBD */
752         unsigned char reqDataLen[2];    /**< TBD */
753         unsigned char offset[2];        /**< TBD */
754 } TelsatIconDataGet_t;
755
756 #ifdef __cplusplus
757 }
758 #endif
759
760 #endif  /* _TEL_SAT_PROACTV_CMD_H_ */
761
762 /**
763  * @}
764  */