4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 * @ingroup TelephonyAPI
24 * @addtogroup SAT_TAPI SAT
27 * @file TelSatEnvelope.h
29 @brief This file serves as a "C" header file defines structures for Tapi Sat envelope command Services. \n
30 It contains a sample set of constants, enums, structs that would be required by applications.
33 #ifndef _TEL_SAT_ENVELOPE_H_
34 #define _TEL_SAT_ENVELOPE_H_
36 #include <TelSatObj.h>
44 * @enum TelSatCallType_t
45 * This enum indicates the SAT call type
49 TAPI_SAT_CALL_TYPE_MO_VOICE = 0X00, /**< call type - mo voice */
50 TAPI_SAT_CALL_TYPE_MO_SMS, /**< call type - mo sms */
51 TAPI_SAT_CALL_TYPE_SS, /**< call type - ss */
52 TAPI_SAT_CALL_TYPE_USSD, /**< call type - ussd */
53 TAPI_SAT_PDP_CNTXT_ACT, /**< call type - pdp context action */
54 TAPI_SAT_CALL_TYPE_MAX /**< call type - max */
58 * @enum TelSatCallCtrlResultType_t
59 * This enum indicates the result of call control by SIM.
63 TAPI_SAT_CALL_CTRL_R_ALLOWED_NO_MOD = 0, /**< call control result type - ALLOWED WITH NO MOD */
64 TAPI_SAT_CALL_CTRL_R_NOT_ALLOWED = 1, /**< call control result type - NOT ALLOWED */
65 TAPI_SAT_CALL_CTRL_R_ALLOWED_WITH_MOD = 2, /**< call control result type - ALLOWED WITH MOD */
66 TAPI_SAT_CALL_CTRL_R_RESERVED = 0xFF /**< call control result type - RESERVED */
68 } TelSatCallCtrlResultType_t;
71 * @enum TelSatEnvelopeResp_t
72 * This enum indicates the general result of sending an envelope command to USIM.
76 TAPI_SAT_ENVELOPE_SUCCESS, /**< envelope result - success */
77 TAPI_SAT_ENVELOPE_SIM_BUSY, /**< envelope result - USIM busy */
78 TAPI_SAT_ENVELOPE_FAILED /**< envelope result - failed */
80 }TelSatEnvelopeResp_t;
84 * This structure contains the data objects for MENU SELECTION envelope.
88 unsigned char itemIdentifier; /**< menu selection item identifier */
89 int bIsHelpRequested; /**< flag to check whether help information required or not */
90 } TelSatMenuSelectionReqInfo_t;
92 // 9.1 CALL CONTROL BY SIM
94 * This struct contains the data objects for Call Control result data sent by USIM.
98 TelSatAddressInfo_t address; /**< call number */
99 TelSatSubAddressInfo_t subAddress; /**< call number sub address */
100 TelSatBcRepeatIndicatorType_t bcRepeatIndicator; /**< bc repeat indicator */
101 TelSatCapaConfigParamInfo_t ccp1; /**< capability configuration parameter1 */
102 TelSatCapaConfigParamInfo_t ccp2; /**< capability configuration parameter2 */
103 }TelSatVoiceCallCtrlIndInfo_t;
106 * This struct contains SAT ss control result data sent by USIM.
110 TelSatSsStringInfo_t ssString; /**< ss number */
111 TelSatSubAddressInfo_t subAddress; /**< ss sub address */
112 TelSatBcRepeatIndicatorType_t bcRepeatIndicator; /**< bc repeat indicator */
113 TelSatCapaConfigParamInfo_t ccp1; /**< capability configuration parameter1 */
114 TelSatCapaConfigParamInfo_t ccp2; /**< capability configuration parameter2 */
115 }TelSatSsCtrlIndInfo_t;
118 * This struct contains SAT mo SMS control configuration data
122 TelSatAddressInfo_t rpDestAddress; /**< sms control rp destination address */
123 TelSatAddressInfo_t tpDestAddress; /**< sms control tp destination address */
124 } TelSatMoSmsCtrlIndInfo_t;
127 * This struct contains SAT call control configuration data
131 TelSatCallType_t callType; /**< call type */
132 TelSatCallCtrlResultType_t callCtrlResult; /**< call control result */
133 TelSatAlphaIdentifierInfo_t alphaIdentifier;/**< alpha identifier */
134 unsigned char callId; /**< call id */
135 TelSatCallType_t oldCallType; /**< old call type */
138 TelSatVoiceCallCtrlIndInfo_t voiceCallData; /**< voice call control data */
139 TelSatSsCtrlIndInfo_t ssData; /**< ss control data */
140 TelSatMoSmsCtrlIndInfo_t smsData;
142 } TelSatCallCtrlIndInfo_t;
144 // 9.2 MO SHORT MESSAGE CONTROL BY SIM RESULT
146 * This struct contains SAT mo ss control request data
150 TelSatCallCtrlResultType_t callCtrlResult; /**< call control result */
151 TelSatAlphaIdentifierInfo_t alphaIdentifier; /**< alpha identifier */
152 TelSatMoSmsCtrlIndInfo_t smsData; /**< sms control data */
153 }TelSatMoSMCtrlResult_t;
155 // 11.5 EVENT DOWNLOAD - USER ACTIVITY EVENT
157 * This struct contains SAT user activity event request data
161 TelSatEventListInfo_t eventList; /**< event List */
162 TelSatDeviceIdentitiesInfo_t deviceIdentities; /**< device identities info */
164 } TelSatUserActivityEventReqInfo_t;
166 // 11.6 EVENT DOWNLOAD - IDLE SCREEN AVAILABLE EVENT
168 * This structure contains the data objects for IDLE SCREEN AVAILABLE event download.
172 TelSatEventDownloadType_t eventData; /**< event type */
173 } TelSatIdleScreenAvailableEventReqInfo_t;
175 // 11.8 EVENT DOWNLOAD - LANGUAGE SELECTION EVENT
177 * This structure contains the data objects for LANGUAGE SELECTION event download.
181 TelSatLanguageType_t language; /**< selected language info */
182 } TelSatLanguageSelectionEventReqInfo_t;
184 // 11.9 EVENT DOWNLOAD - BROWSER TERMINATION EVENT
186 * This structure contains the data objects for BROWSER TERMINATION event download.
190 TelSatBrowserTerminationCauseType_t browserTerminationCause; /**< browser Termination Cause */
191 } TelSatBrowserTerminationEventReqInfo_t;
193 // 11.10 EVENT DOWNLOAD - DATA AVAILABLE EVENT
195 * This struct contains SAT data available event request data
199 TelSatEventListInfo_t eventList; /**< event List */
200 TelSatDeviceIdentitiesInfo_t deviceIdentities; /**< device identities info */
201 TelSatChannelStatusInfo_t channelStatus; /**< channel status */
202 TelSatChannelDataLengthInfo_t channelDataLen; /**< channel data length */
204 } TelSatDataAvailableEventReqInfo_t;
206 // 11.11 EVENT DOWNLOAD - CHANNEL STATUS EVENT
208 * This struct contains SAT channel status even request data
212 TelSatEventListInfo_t eventList; /**< event list */
213 TelSatDeviceIdentitiesInfo_t deviceIdentities; /**< device identities info */
214 TelSatChannelStatusInfo_t channelStatus; /**< channel Status */
215 } TelSatChannelStatusEventReqInfo_t;
221 #endif /* _TEL_SAT_ENVELOPE_H_ */