4 * Copyright (c) 2014 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.
22 * @file TelSatEnvelope.h
27 * @addtogroup CAPI_TELEPHONY_SERVICE_SAT
31 #ifndef _TEL_SAT_ENVELOPE_H_
32 #define _TEL_SAT_ENVELOPE_H_
34 #include <TelSatObj.h>
42 * @brief Enumeration for the SAT call type.
47 TAPI_SAT_CALL_TYPE_MO_VOICE = 0X00, /**< Call type - MO voice */
48 TAPI_SAT_CALL_TYPE_MO_SMS, /**< Call type - MO SMS */
49 TAPI_SAT_CALL_TYPE_SS, /**< Call type - SS */
50 TAPI_SAT_CALL_TYPE_USSD, /**< Call type - USSD */
51 TAPI_SAT_PDP_CNTXT_ACT, /**< Call type - PDP context action */
52 TAPI_SAT_CALL_TYPE_MAX /**< Call type - max */
56 * @brief Enumeration for the result of call control by SIM.
61 TAPI_SAT_CALL_CTRL_R_ALLOWED_NO_MOD = 0, /**< Call control result type - ALLOWED WITH NO MOD */
62 TAPI_SAT_CALL_CTRL_R_NOT_ALLOWED = 1, /**< Call control result type - NOT ALLOWED */
63 TAPI_SAT_CALL_CTRL_R_ALLOWED_WITH_MOD = 2, /**< Call control result type - ALLOWED WITH MOD */
64 TAPI_SAT_CALL_CTRL_R_RESERVED = 0xFF /**< Call control result type - RESERVED */
66 } TelSatCallCtrlResultType_t;
69 * @brief Enumeration for the general result of sending an envelope command to the USIM.
74 TAPI_SAT_ENVELOPE_SUCCESS, /**< Envelope result - success */
75 TAPI_SAT_ENVELOPE_SIM_BUSY, /**< Envelope result - USIM busy */
76 TAPI_SAT_ENVELOPE_FAILED /**< Envelope result - failed */
78 }TelSatEnvelopeResp_t;
82 * @brief The structure type containing data objects for the MENU SELECTION envelope.
87 unsigned char itemIdentifier; /**< Menu selection item identifier */
88 int bIsHelpRequested; /**< Flag to check whether help information is required */
89 } TelSatMenuSelectionReqInfo_t;
91 // 9.1 CALL CONTROL BY SIM
93 * @brief Structure type containing data objects for Call Control result data sent by the 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 parameter 1 */
102 TelSatCapaConfigParamInfo_t ccp2; /**< Capability configuration parameter 2 */
103 }TelSatVoiceCallCtrlIndInfo_t;
106 * @brief The structure type containing SAT SS control result data sent by the USIM.
111 TelSatSsStringInfo_t ssString; /**< SS number */
112 TelSatSubAddressInfo_t subAddress; /**< SS sub address */
113 TelSatBcRepeatIndicatorType_t bcRepeatIndicator; /**< BC repeat indicator */
114 TelSatCapaConfigParamInfo_t ccp1; /**< Capability configuration parameter 1 */
115 TelSatCapaConfigParamInfo_t ccp2; /**< Capability configuration parameter 2 */
116 }TelSatSsCtrlIndInfo_t;
119 * @brief The structure type containing SAT MO SMS control configuration data.
124 TelSatAddressInfo_t rpDestAddress; /**< SMS control RP destination address */
125 TelSatAddressInfo_t tpDestAddress; /**< SMS control TP destination address */
126 } TelSatMoSmsCtrlIndInfo_t;
129 * @brief The structure type containing SAT call control configuration data.
134 TelSatCallType_t callType; /**< Call type */
135 TelSatCallCtrlResultType_t callCtrlResult; /**< Call control result */
136 TelSatAlphaIdentifierInfo_t alphaIdentifier;/**< Alpha identifier */
137 unsigned char callId; /**< Call ID */
138 TelSatCallType_t oldCallType; /**< Old call type */
141 TelSatVoiceCallCtrlIndInfo_t voiceCallData; /**< Voice call control data */
142 TelSatSsCtrlIndInfo_t ssData; /**< SS control data */
143 TelSatMoSmsCtrlIndInfo_t smsData;
145 } TelSatCallCtrlIndInfo_t;
147 // 9.2 MO SHORT MESSAGE CONTROL BY SIM RESULT
149 * @brief The structure type containing SAT MO SS control request data.
154 TelSatCallCtrlResultType_t callCtrlResult; /**< Call control result */
155 TelSatAlphaIdentifierInfo_t alphaIdentifier; /**< Alpha identifier */
156 TelSatMoSmsCtrlIndInfo_t smsData; /**< SMS control data */
157 }TelSatMoSMCtrlResult_t;
159 // 11.5 EVENT DOWNLOAD - USER ACTIVITY EVENT
161 * @brief The structure type containing SAT user activity event request data.
166 TelSatEventListInfo_t eventList; /**< Event List */
167 TelSatDeviceIdentitiesInfo_t deviceIdentities; /**< Device identities info */
169 } TelSatUserActivityEventReqInfo_t;
171 // 11.6 EVENT DOWNLOAD - IDLE SCREEN AVAILABLE EVENT
173 * @brief The structure type containing the data objects for the IDLE SCREEN AVAILABLE event download.
178 TelSatEventDownloadType_t eventData; /**< Event type */
179 } TelSatIdleScreenAvailableEventReqInfo_t;
181 // 11.8 EVENT DOWNLOAD - LANGUAGE SELECTION EVENT
183 * @brief The structure type containing the data objects for the LANGUAGE SELECTION event download.
188 TelSatLanguageType_t language; /**< Selected language info */
189 } TelSatLanguageSelectionEventReqInfo_t;
191 // 11.9 EVENT DOWNLOAD - BROWSER TERMINATION EVENT
193 * @brief The structure type containing the data objects for the BROWSER TERMINATION event download.
198 TelSatBrowserTerminationCauseType_t browserTerminationCause; /**< Browser Termination Cause */
199 } TelSatBrowserTerminationEventReqInfo_t;
201 // 11.10 EVENT DOWNLOAD - DATA AVAILABLE EVENT
203 * @brief The structure type containing SAT data available event request data.
208 TelSatEventListInfo_t eventList; /**< Event List */
209 TelSatDeviceIdentitiesInfo_t deviceIdentities; /**< Device identities info */
210 TelSatChannelStatusInfo_t channelStatus; /**< Channel status */
211 TelSatChannelDataLengthInfo_t channelDataLen; /**< Channel data length */
213 } TelSatDataAvailableEventReqInfo_t;
215 // 11.11 EVENT DOWNLOAD - CHANNEL STATUS EVENT
217 * @brief The structure type containing SAT channel status even request data.
222 TelSatEventListInfo_t eventList; /**< Event list */
223 TelSatDeviceIdentitiesInfo_t deviceIdentities; /**< Device identities info */
224 TelSatChannelStatusInfo_t channelStatus; /**< Channel Status */
225 } TelSatChannelStatusEventReqInfo_t;
231 #endif /* _TEL_SAT_ENVELOPE_H_ */