24
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
#include "cmmcallgsmwcdmaext.h"
|
|
19 |
#include <featureuids.h>
|
|
20 |
#include "cmmphonetsy.h"
|
|
21 |
#include "cmmcalllist.h"
|
|
22 |
#include "cmmconferencecalltsy.h"
|
|
23 |
#include "cmmconferencecallgsmwcdmaext.h"
|
|
24 |
#include <ctsy/pluginapi/cmmdatapackage.h>
|
|
25 |
#include "cmmmessagemanagerbase.h"
|
|
26 |
#include <ctsy/tflogger.h>
|
|
27 |
|
|
28 |
#include "cmmvoicecalltsy.h"
|
|
29 |
|
|
30 |
//csd includes
|
|
31 |
#include "cmmdatacalltsy.h"
|
|
32 |
|
|
33 |
#include <et_tsy.h>
|
|
34 |
|
|
35 |
// ======== MEMBER FUNCTIONS ========
|
|
36 |
|
|
37 |
CMmCallGsmWcdmaExt::CMmCallGsmWcdmaExt()
|
|
38 |
{
|
|
39 |
}
|
|
40 |
|
|
41 |
void CMmCallGsmWcdmaExt::ConstructL()
|
|
42 |
{
|
|
43 |
// Create normal and HSCSD data call related pointers!
|
|
44 |
iDataCallCaps = new ( ELeave ) RMobileCall::TMobileCallDataCapsV1();
|
|
45 |
iCSDParams = new ( ELeave ) RMobileCall::TMobileDataCallParamsV8();
|
|
46 |
iHSCSDParams = new ( ELeave ) RMobileCall::TMobileHscsdCallParamsV8();
|
|
47 |
iCurrentHSCSDInfo = new ( ELeave ) RMobileCall::TMobileCallHscsdInfoV8();
|
|
48 |
|
|
49 |
// iCSDParams, iHSCSDParams and iCurrentHSCSDInfo:
|
|
50 |
// Service and QoS values are set to only supported value (MO, defined in
|
|
51 |
// MmTsy_Defaults.h). If there will be more supported caps in for example
|
|
52 |
// continuation projects, then set here Service and QoS to Unspecified.
|
|
53 |
iCSDParams->iService = RMobileCall::RMobileCall::EServiceDataCircuitAsync;;
|
|
54 |
iCSDParams->iQoS = RMobileCall::EQoSNonTransparent;
|
|
55 |
iCSDParams->iSpeed = RMobileCall::ESpeedUnspecified;
|
|
56 |
iCSDParams->iProtocol = RMobileCall::EProtocolUnspecified;
|
|
57 |
iCSDParams->iRLPVersion = RMobileCall::ERLPNotRequested;
|
|
58 |
iCSDParams->iModemToMSWindowSize = 0x00;
|
|
59 |
iCSDParams->iMSToModemWindowSize = 0x00;
|
|
60 |
iCSDParams->iAckTimer = 0x00;
|
|
61 |
iCSDParams->iRetransmissionAttempts = 0x00;
|
|
62 |
iCSDParams->iResequencingPeriod = 0x00;
|
|
63 |
iCSDParams->iV42bisReq = RMobileCall::EV42bisNeitherDirection;
|
|
64 |
iCSDParams->iV42bisCodewordsNum = 0x00;
|
|
65 |
iCSDParams->iV42bisMaxStringLength = 0x00;
|
|
66 |
|
|
67 |
|
|
68 |
RMobileCall::TMobileDataCallParamsV8* dataCallParamsV8 = static_cast<RMobileCall::TMobileDataCallParamsV8*>(iCSDParams);
|
|
69 |
|
|
70 |
dataCallParamsV8->iBearerMode = RMobileCall::EMulticallNotSupported;
|
|
71 |
dataCallParamsV8->iCallParamOrigin = RMobileCall::EOriginatorUnknown;
|
|
72 |
dataCallParamsV8->iBCRepeatIndicator = RMobileCall::EBCAlternateMode;
|
|
73 |
|
|
74 |
iHSCSDParams->iWantedAiur = RMobileCall::EAiurBpsUnspecified;
|
|
75 |
iHSCSDParams->iWantedRxTimeSlots = 0x00;
|
|
76 |
iHSCSDParams->iMaxTimeSlots = 0x00;
|
|
77 |
iHSCSDParams->iCodings = 0x00;
|
|
78 |
iHSCSDParams->iAsymmetry = RMobileCall::EAsymmetryNoPreference;
|
|
79 |
iHSCSDParams->iUserInitUpgrade = KMultimodeTsyDataUserInitUpgrade;
|
|
80 |
|
|
81 |
RMobileCall::TMobileHscsdCallParamsV8* hscsdCallParamsV8 = static_cast<RMobileCall::TMobileHscsdCallParamsV8*>(iHSCSDParams);
|
|
82 |
hscsdCallParamsV8->iBearerMode = RMobileCall::EMulticallNotSupported;
|
|
83 |
hscsdCallParamsV8->iCallParamOrigin = RMobileCall::EOriginatorUnknown;
|
|
84 |
hscsdCallParamsV8->iIconId.iQualifier = RMobileCall::EIconQualifierNotSet;
|
|
85 |
hscsdCallParamsV8->iIconId.iIdentifier = 0x00;
|
|
86 |
hscsdCallParamsV8->iBCRepeatIndicator = RMobileCall::EBCAlternateMode;
|
|
87 |
|
|
88 |
iCurrentHSCSDInfo->iAiur = RMobileCall::EAiurBpsUnspecified;
|
|
89 |
iCurrentHSCSDInfo->iRxTimeSlots = 0x00;
|
|
90 |
iCurrentHSCSDInfo->iTxTimeSlots = 0x00;
|
|
91 |
iCurrentHSCSDInfo->iCodings = RMobileCall::ETchCodingUnspecified;
|
|
92 |
iCurrentHSCSDInfo->iCallParamOrigin = RMobileCall::EOriginatorUnknown;
|
|
93 |
iCurrentHSCSDInfo->iIconId.iIdentifier = 0x00;
|
|
94 |
iCurrentHSCSDInfo->iIconId.iQualifier = RMobileCall::EIconQualifierNotSet;
|
|
95 |
iCurrentHSCSDInfo->iParamsCallControlModified = EFalse;
|
|
96 |
iCurrentHSCSDInfo->iBCRepeatIndicator = RMobileCall::EBCAlternateMode;
|
|
97 |
|
|
98 |
iMobileCallCaps.iCallControlCaps = 0x00000000 | RCall::KCapsDial;
|
|
99 |
|
|
100 |
if ( RMobilePhone::EVoiceService == iSymbianCallMode )
|
|
101 |
{
|
|
102 |
iMobileCallCaps.iCallControlCaps |= RCall::KCapsVoice;
|
|
103 |
}
|
|
104 |
else if ( RMobilePhone::ECircuitDataService == iSymbianCallMode )
|
|
105 |
{
|
|
106 |
iMobileCallCaps.iCallControlCaps |=
|
|
107 |
RCall::KCapsData | RCall::KCapsConnect;
|
|
108 |
}
|
|
109 |
else if ( RMobilePhone::EFaxService == iSymbianCallMode )
|
|
110 |
{
|
|
111 |
iMobileCallCaps.iCallControlCaps |= RCall::KCapsFax;
|
|
112 |
}
|
|
113 |
else
|
|
114 |
{
|
|
115 |
iMobileCallCaps.iCallControlCaps = 0x00000000;
|
|
116 |
}
|
|
117 |
|
|
118 |
iMobileCallCaps.iCallEventCaps = 0x000000ff;
|
|
119 |
|
|
120 |
iMobileCallInfo.iForwarded = EFalse;
|
|
121 |
iMobileCallInfo.iBCRepeatIndicator = RMobileCall::EBCAlternateMode;
|
|
122 |
|
|
123 |
TInt err = iFeatureControl.Open();
|
|
124 |
iUsingFeatureManager = (err == KErrNone);
|
|
125 |
|
|
126 |
iSystemStatePluginHandler = iMmCallTsy->Phone()->SystemStatePluginHandler();
|
|
127 |
|
|
128 |
ResetInternalAttributes();
|
|
129 |
}
|
|
130 |
|
|
131 |
CMmCallGsmWcdmaExt* CMmCallGsmWcdmaExt::NewL(
|
|
132 |
CMmCallTsy* aMmCallTsy,
|
|
133 |
RMobilePhone::TMobileService aMode,
|
|
134 |
CMmMessageManagerBase* aMessageManager )
|
|
135 |
{
|
|
136 |
CMmCallGsmWcdmaExt* callGsmWcdmaExt = new( ELeave ) CMmCallGsmWcdmaExt();
|
|
137 |
|
|
138 |
CleanupStack::PushL( callGsmWcdmaExt );
|
|
139 |
callGsmWcdmaExt->iMmCallTsy = aMmCallTsy;
|
|
140 |
callGsmWcdmaExt->iSymbianCallMode = aMode;
|
|
141 |
callGsmWcdmaExt->iMessageManager = aMessageManager;
|
|
142 |
callGsmWcdmaExt->ConstructL();
|
|
143 |
CleanupStack::Pop();
|
|
144 |
|
|
145 |
return callGsmWcdmaExt;
|
|
146 |
}
|
|
147 |
|
|
148 |
CMmCallGsmWcdmaExt::~CMmCallGsmWcdmaExt()
|
|
149 |
{
|
|
150 |
iFeatureControl.Close();
|
|
151 |
if ( iDataCallCaps )
|
|
152 |
{
|
|
153 |
delete iDataCallCaps;
|
|
154 |
}
|
|
155 |
iDataCallCaps = NULL;
|
|
156 |
if ( iCSDParams )
|
|
157 |
{
|
|
158 |
delete iCSDParams;
|
|
159 |
}
|
|
160 |
iCSDParams = NULL;
|
|
161 |
if ( iHSCSDParams )
|
|
162 |
{
|
|
163 |
delete iHSCSDParams;
|
|
164 |
}
|
|
165 |
iHSCSDParams = NULL;
|
|
166 |
if ( iCurrentHSCSDInfo )
|
|
167 |
{
|
|
168 |
delete iCurrentHSCSDInfo;
|
|
169 |
}
|
|
170 |
iCurrentHSCSDInfo = NULL;
|
|
171 |
|
|
172 |
iMmCallTsy = NULL;
|
|
173 |
iMessageManager = NULL;
|
|
174 |
|
|
175 |
}
|
|
176 |
|
|
177 |
// ---------------------------------------------------------------------------
|
|
178 |
// CMmCallGsmWcdmaExt::ResetInternalAttributes
|
|
179 |
// Resets GSM call internal attributes.
|
|
180 |
// (other items were commented in a header).
|
|
181 |
// ---------------------------------------------------------------------------
|
|
182 |
//
|
|
183 |
void CMmCallGsmWcdmaExt::ResetInternalAttributes()
|
|
184 |
{
|
|
185 |
// Add only attributes that can be set in call object construction
|
|
186 |
// (during ConstructL), in HangUp or in call object destruction
|
|
187 |
// (during ~CMmCallGsmWcdmaExt).
|
|
188 |
iDataCallMode = EDataCallModeUnknown;
|
|
189 |
|
|
190 |
iBearerService.iBearerCaps =
|
|
191 |
RCall::KBearerCapsCompressionNone | RCall::KBearerCapsProtocolUnknown;
|
|
192 |
iBearerService.iBearerSpeed = RCall::EBearerDataUnknown;
|
|
193 |
|
|
194 |
// Set data call caps to default
|
|
195 |
// Supported capabilities defined in MmTsy_Defaults.h, see also etelmm.h
|
|
196 |
iDataCallCaps->iSpeedCaps = KMultimodeTsyDataSpeedCaps;
|
|
197 |
iDataCallCaps->iProtocolCaps = KMultimodeTsyDataProtocolCaps;
|
|
198 |
iDataCallCaps->iServiceCaps = KMultimodeTsyDataServiceCaps;
|
|
199 |
iDataCallCaps->iQoSCaps = KMultimodeTsyDataQoSCaps;
|
|
200 |
iDataCallCaps->iHscsdSupport = KMultimodeTsyDataHscsdSupport;
|
|
201 |
|
|
202 |
// additional flags for videotelephony
|
|
203 |
if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KCsVideoTelephony) == KFeatureSupported) )
|
|
204 |
{
|
|
205 |
iDataCallCaps->iSpeedCaps |= KMultimodeTsyDataSpeedCapsVT;
|
|
206 |
iDataCallCaps->iProtocolCaps |= KMultimodeTsyDataProtocolCapsVT;
|
|
207 |
iDataCallCaps->iServiceCaps |= KMultimodeTsyDataServiceCapsVT;
|
|
208 |
}
|
|
209 |
|
|
210 |
// If Hscsd support is false, all the following iDataCallCaps are invalid
|
|
211 |
// Detailed in GSM 05.02 V8.10.0 Appendix B
|
|
212 |
// Multislot class
|
|
213 |
iDataCallCaps->iMClass = KMultimodeTsyDataMClassDefValue;
|
|
214 |
// Max number of Rx slots
|
|
215 |
iDataCallCaps->iMaxRxTimeSlots = KMultimodeTsyDataMaxRxTSDefValue;
|
|
216 |
// Max number of Tx slots
|
|
217 |
iDataCallCaps->iMaxTxTimeSlots = KMultimodeTsyDataMaxTxTSDefValue;
|
|
218 |
// Max number of Sum slots
|
|
219 |
iDataCallCaps->iTotalRxTxTimeSlots = KMultimodeTsyDataTotalRxTxTSDefValue;
|
|
220 |
iDataCallCaps->iCodingCaps = KMultimodeTsyDataTchCodingsCaps;
|
|
221 |
iDataCallCaps->iAsymmetryCaps = KMultimodeTsyDataAsymmetryCaps;
|
|
222 |
// Not supporting automatic service level upgrading
|
|
223 |
iDataCallCaps->iUserInitUpgrade = KMultimodeTsyDataUserInitUpgrade;
|
|
224 |
iDataCallCaps->iRLPVersionCaps = KMultimodeTsyDataRLPVersionCaps;
|
|
225 |
iDataCallCaps->iV42bisCaps = KMultimodeTsyDataV42bisCaps;
|
|
226 |
}
|
|
227 |
|
|
228 |
// ---------------------------------------------------------------------------
|
|
229 |
// CMmCallGsmWcdmaExt::DialL
|
|
230 |
// GSM specific Dial method for outgoing call
|
|
231 |
// (other items were commented in a header).
|
|
232 |
// ---------------------------------------------------------------------------
|
|
233 |
//
|
|
234 |
TInt CMmCallGsmWcdmaExt::DialL(
|
|
235 |
RMobilePhone::TMobileService aCallMode,
|
|
236 |
const TDesC8* aCallParams,
|
|
237 |
const TDesC* aTelNumber,
|
|
238 |
TInt aExtensionId )
|
|
239 |
{
|
|
240 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::DialL extensionid %d", aExtensionId );
|
|
241 |
|
|
242 |
// Reset iCallParams extended members
|
|
243 |
iCallParams.iAlphaId.Zero();
|
|
244 |
iCallParams.iIconId.iQualifier = RMobileCall::EIconQualifierNotSet;
|
|
245 |
iCallParams.iIconId.iIdentifier = 0x00;
|
|
246 |
iCallParams.iBCRepeatIndicator = RMobileCall::EBCAlternateMode;
|
|
247 |
iCallParams.iBearerCap2.Zero();
|
|
248 |
iCallParams.iBearerCap1.Zero();
|
|
249 |
iCallParams.iSubAddress.Zero();
|
|
250 |
iCallParams.iCallParamOrigin = RMobileCall::EOriginatorUnknown;
|
|
251 |
iCallParams.iBearerMode = RMobileCall::EMulticallNotSupported;
|
|
252 |
iCallParams.iIdRestrict = RMobileCall::EIdRestrictDefault;
|
|
253 |
iCallParams.iCug.iExplicitInvoke = EFalse;
|
|
254 |
iCallParams.iCug.iCugIndex = 0xFFFF;
|
|
255 |
iCallParams.iCug.iSuppressPrefCug = EFalse;
|
|
256 |
iCallParams.iCug.iSuppressOA = EFalse;
|
|
257 |
iCallParams.iAutoRedial = EFalse;
|
|
258 |
|
|
259 |
//use base class to determine callparam version
|
|
260 |
RCall::TCallParamsPckg* callParamsPckg =
|
|
261 |
reinterpret_cast<RCall::TCallParamsPckg*>(const_cast<TDesC8*>( aCallParams ) );
|
|
262 |
|
|
263 |
RCall::TCallParams& callParams = ( *callParamsPckg )();
|
|
264 |
|
|
265 |
TInt extensionId( callParams.ExtensionId() );
|
|
266 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::DialL callParams.extensionId %d ", extensionId);
|
|
267 |
|
|
268 |
if( ( RMobileCall::KETelMobileCallParamsV1 == extensionId ) ||
|
|
269 |
( RMobileCall::KETelMobileCallParamsV2 == extensionId ))
|
|
270 |
{
|
|
271 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL callparams V1, V2");
|
|
272 |
|
|
273 |
iCallParams.iSpeakerControl = callParams.iSpeakerControl;
|
|
274 |
|
|
275 |
iCallParams.iSpeakerVolume = callParams.iSpeakerVolume;
|
|
276 |
iCallParams.iInterval = callParams.iInterval;
|
|
277 |
iCallParams.iWaitForDialTone = callParams.iWaitForDialTone;
|
|
278 |
RMobileCall::TMobileCallParamsV1Pckg* paramsPckgV1 =
|
|
279 |
reinterpret_cast<RMobileCall::TMobileCallParamsV1Pckg*>(
|
|
280 |
const_cast<TDesC8*>( aCallParams ) );
|
|
281 |
RMobileCall::TMobileCallParamsV1& params1 = (*paramsPckgV1)();
|
|
282 |
iCallParams.iIdRestrict = params1.iIdRestrict;
|
|
283 |
iCallParams.iAutoRedial = params1.iAutoRedial;
|
|
284 |
iCallParams.iCug.iExplicitInvoke = params1.iCug.iExplicitInvoke;
|
|
285 |
iCallParams.iCug.iCugIndex = params1.iCug.iCugIndex;
|
|
286 |
iCallParams.iCug.iSuppressOA = params1.iCug.iSuppressOA;
|
|
287 |
iCallParams.iCug.iSuppressPrefCug = params1.iCug.iSuppressPrefCug;
|
|
288 |
|
|
289 |
if ( RMobileCall::KETelMobileCallParamsV2 == extensionId )
|
|
290 |
{
|
|
291 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL callparams V2");
|
|
292 |
RMobileCall::TMobileCallParamsV2Pckg* paramsPckgV2 =
|
|
293 |
reinterpret_cast<RMobileCall::TMobileCallParamsV2Pckg*>(
|
|
294 |
const_cast<TDesC8*>( aCallParams ) );
|
|
295 |
|
|
296 |
RMobileCall::TMobileCallParamsV2& params2 = (*paramsPckgV2)();
|
|
297 |
iCallParams.iBearerMode = params2.iBearerMode;
|
|
298 |
}
|
|
299 |
}
|
|
300 |
|
|
301 |
else if( RMobileCall::KETelMobileCallParamsV7 == extensionId )
|
|
302 |
{
|
|
303 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL callparams V7");
|
|
304 |
RMobileCall::TMobileCallParamsV7Pckg* paramsPckgV7 =
|
|
305 |
reinterpret_cast<RMobileCall::TMobileCallParamsV7Pckg*>(
|
|
306 |
const_cast<TDesC8*>( aCallParams ) );
|
|
307 |
|
|
308 |
iCallParams = ( *paramsPckgV7 )();
|
|
309 |
}
|
|
310 |
else
|
|
311 |
{
|
|
312 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL callparams version unknown");
|
|
313 |
iCallParams.iSpeakerControl = callParams.iSpeakerControl;
|
|
314 |
iCallParams.iSpeakerVolume = callParams.iSpeakerVolume;
|
|
315 |
iCallParams.iInterval = callParams.iInterval;
|
|
316 |
iCallParams.iWaitForDialTone = callParams.iWaitForDialTone;
|
|
317 |
//default unknown values
|
|
318 |
iCallParams.iIdRestrict = RMobileCall::EIdRestrictDefault;
|
|
319 |
iCallParams.iCug.iExplicitInvoke = EFalse;
|
|
320 |
iCallParams.iCug.iCugIndex = 0xFFFF;
|
|
321 |
iCallParams.iCug.iSuppressPrefCug = EFalse;
|
|
322 |
iCallParams.iCug.iSuppressOA = EFalse;
|
|
323 |
iCallParams.iAutoRedial = EFalse;
|
|
324 |
}
|
|
325 |
|
|
326 |
iMobileCallInfo.iDialledParty.iTelNumber.Copy( *aTelNumber );
|
|
327 |
iMobileCallInfo.iDialledParty.iNumberPlan =
|
|
328 |
RMobilePhone::EUnknownNumberingPlan;
|
|
329 |
iMobileCallInfo.iDialledParty.iTypeOfNumber =
|
|
330 |
RMobilePhone::EUnknownNumber;
|
|
331 |
iMobileCallInfo.iService = aCallMode;
|
|
332 |
iMobileCallInfo.iValid |= RMobileCall::KCallDialledParty;
|
|
333 |
iMobileCallInfo.iValid |= RMobileCall::KCallAlternating;
|
|
334 |
iMobileCallInfo.iAlternatingCall =
|
|
335 |
RMobilePhone::EAlternatingModeUnspecified;
|
|
336 |
|
|
337 |
// Reset old info
|
|
338 |
iMobileCallInfo.iRemoteParty.iDirection = RMobileCall::EDirectionUnknown;
|
|
339 |
|
|
340 |
//Create package
|
|
341 |
CCallDataPackage package;
|
|
342 |
//Set call id and call mode
|
|
343 |
package.SetCallIdAndMode( iMmCallTsy->CallId(), aCallMode );
|
|
344 |
|
|
345 |
//Send request to the Domestic OS layer.
|
|
346 |
if ( KETelExt3rdPartyV1 == aExtensionId )
|
|
347 |
{
|
|
348 |
//Pack call parameters and mobile call info
|
|
349 |
// Use argument parameters since TMobileCallParamsV7 does not inherit from 3rd party params.
|
|
350 |
package.PackData(const_cast<TDesC8*>(aCallParams), &iMobileCallInfo);
|
|
351 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL: KETelExt3rdPartyV1");
|
|
352 |
//if it is a 3rd party client
|
|
353 |
return iMessageManager->HandleRequestL( EMobileCallDialISV,
|
|
354 |
&package );
|
|
355 |
}
|
|
356 |
|
|
357 |
//if not a 3rd party client and dial no fdn check used
|
|
358 |
else if ( KMultimodeCallTypeIDNoFdnCheck == aExtensionId )
|
|
359 |
{
|
|
360 |
//Pack call parameters and mobile call info
|
|
361 |
TPckg<RMobileCall::TMobileCallParamsV7> pckgToSend(iCallParams);
|
|
362 |
package.PackData( &pckgToSend , &iMobileCallInfo );
|
|
363 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL: KMultimodeCallTypeIDNoFdnCheck");
|
|
364 |
return iMessageManager->HandleRequestL(
|
|
365 |
EMobileCallDialNoFdnCheck, &package );
|
|
366 |
}
|
|
367 |
else
|
|
368 |
{
|
|
369 |
//Pack call parameters and mobile call info
|
|
370 |
TPckg<RMobileCall::TMobileCallParamsV7> pckgToSend(iCallParams);
|
|
371 |
package.PackData( &pckgToSend , &iMobileCallInfo );
|
|
372 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialL: EEtelCallDial");
|
|
373 |
return iMessageManager->HandleRequestL( EEtelCallDial, &package );
|
|
374 |
}
|
|
375 |
|
|
376 |
}
|
|
377 |
|
|
378 |
// ---------------------------------------------------------------------------
|
|
379 |
// CMmCallGsmWcdmaExt::AnswerIncomingCallL
|
|
380 |
// Answers incoming call.
|
|
381 |
// (other items were commented in a header).
|
|
382 |
// ---------------------------------------------------------------------------
|
|
383 |
//
|
|
384 |
TInt CMmCallGsmWcdmaExt::AnswerIncomingCallL(
|
|
385 |
TInt aCallId,
|
|
386 |
TInt aExtensionId )
|
|
387 |
{
|
|
388 |
//Create package
|
|
389 |
CCallDataPackage package;
|
|
390 |
|
|
391 |
//Set call id and call mode
|
|
392 |
package.SetCallIdAndMode( aCallId, iSymbianCallMode );
|
|
393 |
|
|
394 |
//Send request to the Domestic OS layer.
|
|
395 |
if ( KETelExt3rdPartyV1 == aExtensionId )
|
|
396 |
{
|
|
397 |
//if it is a 3rd party client
|
|
398 |
return iMessageManager->HandleRequestL( EMobileCallAnswerISV,
|
|
399 |
&package );
|
|
400 |
}
|
|
401 |
else
|
|
402 |
{
|
|
403 |
//if not a 3rd party client
|
|
404 |
return iMessageManager->HandleRequestL( EEtelCallAnswer, &package );
|
|
405 |
}
|
|
406 |
|
|
407 |
}
|
|
408 |
|
|
409 |
// ---------------------------------------------------------------------------
|
|
410 |
// CMmCallGsmWcdmaExt::GetMobileCallCapsV1
|
|
411 |
// Return GSM specific mobile call capabilities (V1).
|
|
412 |
// (other items were commented in a header).
|
|
413 |
// ---------------------------------------------------------------------------
|
|
414 |
//
|
|
415 |
void CMmCallGsmWcdmaExt::GetMobileCallCapsV1(
|
|
416 |
RMobileCall::TMobileCallCapsV1& aCallCapsV1 )
|
|
417 |
{
|
|
418 |
aCallCapsV1 = iMobileCallCaps;
|
|
419 |
}
|
|
420 |
|
|
421 |
|
|
422 |
// ---------------------------------------------------------------------------
|
|
423 |
// CMmCallGsmWcdmaExt::SetGSMCallCaps
|
|
424 |
// Set GSM specific mobile call caps
|
|
425 |
// (other items were commented in a header).
|
|
426 |
// ---------------------------------------------------------------------------
|
|
427 |
//
|
|
428 |
void CMmCallGsmWcdmaExt::SetGSMCallCaps(
|
|
429 |
const RMobileCall::TMobileCallCapsV1* aCaps )
|
|
430 |
{
|
|
431 |
iMobileCallCaps = *aCaps;
|
|
432 |
}
|
|
433 |
|
|
434 |
// ---------------------------------------------------------------------------
|
|
435 |
// CMmCallGsmWcdmaExt::AddGSMCallCaps
|
|
436 |
// Adds requested caps to GSM specific mobile call caps
|
|
437 |
// (other items were commented in a header).
|
|
438 |
// ---------------------------------------------------------------------------
|
|
439 |
//
|
|
440 |
void CMmCallGsmWcdmaExt::AddGSMCallCaps(
|
|
441 |
TUint32 aCaps )
|
|
442 |
{
|
|
443 |
iMobileCallCaps.iCallControlCaps |= aCaps;
|
|
444 |
}
|
|
445 |
|
|
446 |
// ---------------------------------------------------------------------------
|
|
447 |
// CMmCallGsmWcdmaExt::RemoveGSMCallCaps
|
|
448 |
// Removes requested caps from GSM specific mobile call caps
|
|
449 |
// (other items were commented in a header).
|
|
450 |
// ---------------------------------------------------------------------------
|
|
451 |
//
|
|
452 |
void CMmCallGsmWcdmaExt::RemoveGSMCallCaps(
|
|
453 |
TUint32 aCaps )
|
|
454 |
{
|
|
455 |
iMobileCallCaps.iCallControlCaps &= ~aCaps;
|
|
456 |
}
|
|
457 |
|
|
458 |
// ---------------------------------------------------------------------------
|
|
459 |
// CMmCallGsmWcdmaExt::CompleteNotifyStatusChange
|
|
460 |
// Updates the dynamic capabilities of the GSM extension
|
|
461 |
// (other items were commented in a header).
|
|
462 |
// ---------------------------------------------------------------------------
|
|
463 |
//
|
|
464 |
TInt CMmCallGsmWcdmaExt::CompleteNotifyStatusChange(
|
|
465 |
RMobileCall::TMobileCallStatus aCallStatus )
|
|
466 |
{
|
|
467 |
TInt ret( KErrNone );
|
|
468 |
TBool singleCallGoingOn( EFalse );
|
|
469 |
TBool twoCallsGoingOn( EFalse );
|
|
470 |
TBool conferenceGoingOn( EFalse );
|
|
471 |
TInt numberOfNonIdleCallObjects( 0 );
|
|
472 |
|
|
473 |
// Get CMmPhone for information gathering
|
|
474 |
CMmPhoneTsy* mmPhone = iMmCallTsy->Phone();
|
|
475 |
// Get CallList
|
|
476 |
CMmCallList* callList = mmPhone->CallList();
|
|
477 |
// Get Conference call object
|
|
478 |
CMmConferenceCallTsy* mmConference = mmPhone->ConferenceCall();
|
|
479 |
// Create a pointer for call object
|
|
480 |
CMmCallTsy* mmCall = NULL;
|
|
481 |
|
|
482 |
//Save previous caps
|
|
483 |
TUint32 oldControlCaps = iMobileCallCaps.iCallControlCaps;
|
|
484 |
|
|
485 |
//Count number of call objects that are not in idle state
|
|
486 |
for ( TInt i = 0; i < callList->GetNumberOfObjects(); i++ )
|
|
487 |
{
|
|
488 |
mmCall = callList->GetMmCallByIndex( i );
|
|
489 |
if ( RMobileCall::EStatusIdle != mmCall->MobileCallStatus() )
|
|
490 |
{
|
|
491 |
numberOfNonIdleCallObjects++;
|
|
492 |
}
|
|
493 |
}
|
|
494 |
|
|
495 |
//if there is only one non-idle call
|
|
496 |
if ( numberOfNonIdleCallObjects == 1 )
|
|
497 |
{
|
|
498 |
singleCallGoingOn = ETrue;
|
|
499 |
}
|
|
500 |
//multicall situation
|
|
501 |
else
|
|
502 |
{
|
|
503 |
TBool confInUse( EFalse );
|
|
504 |
|
|
505 |
//if conference call object exists
|
|
506 |
if ( mmConference )
|
|
507 |
{
|
|
508 |
//if conference call is not in idle state
|
|
509 |
//or if CreateConference has been requested
|
|
510 |
if ( ( mmConference->Status() !=
|
|
511 |
RMobileConferenceCall::EConferenceIdle ) ||
|
|
512 |
mmConference->ServiceRequested(
|
|
513 |
CMmConferenceCallTsy::EMultimodeConferenceCallCreateConference ) )
|
|
514 |
{
|
|
515 |
//conference is going on, act according the situation
|
|
516 |
conferenceGoingOn = ETrue;
|
|
517 |
confInUse = ETrue;
|
|
518 |
}
|
|
519 |
}
|
|
520 |
//if conference call is not active
|
|
521 |
if ( !confInUse )
|
|
522 |
{
|
|
523 |
//conference call is not in use. There are 2 calls in different
|
|
524 |
//states.
|
|
525 |
twoCallsGoingOn = ETrue;
|
|
526 |
}
|
|
527 |
}
|
|
528 |
|
|
529 |
// Set Mobile Call Control + Core Caps
|
|
530 |
// Switch according to the call status
|
|
531 |
switch ( aCallStatus )
|
|
532 |
{
|
|
533 |
// Clear caps for idle status
|
|
534 |
case RMobileCall::EStatusIdle:
|
|
535 |
iMobileCallInfo.iValid = 0x00000000;
|
|
536 |
|
|
537 |
// Set Idle caps
|
|
538 |
iMobileCallCaps.iCallControlCaps |=
|
|
539 |
RCall::KCapsDial;
|
|
540 |
|
|
541 |
// Data call has also connect.
|
|
542 |
// Remove dataport caps.
|
|
543 |
if ( RMobilePhone::ECircuitDataService == iSymbianCallMode )
|
|
544 |
{
|
|
545 |
iMobileCallCaps.iCallControlCaps |=
|
|
546 |
RCall::KCapsConnect;
|
|
547 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
548 |
RCall::KCapsLoanDataPort |
|
|
549 |
RCall::KCapsRecoverDataPort );
|
|
550 |
}
|
|
551 |
|
|
552 |
// Clear possible old caps
|
|
553 |
//Caps are set in 2 phases because defined in different
|
|
554 |
//classes (lint complains about different types)
|
|
555 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
556 |
RCall::KCapsAnswer |
|
|
557 |
RCall::KCapsHangUp );
|
|
558 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
559 |
RMobileCall::KCapsHold |
|
|
560 |
RMobileCall::KCapsResume |
|
|
561 |
RMobileCall::KCapsSwap |
|
|
562 |
RMobileCall::KCapsDeflect |
|
|
563 |
RMobileCall::KCapsTransfer |
|
|
564 |
RMobileCall::KCapsJoin |
|
|
565 |
RMobileCall::KCapsOneToOne |
|
|
566 |
RMobileCall::KCapsSwitchAlternatingCall );
|
|
567 |
|
|
568 |
if ( conferenceGoingOn )
|
|
569 |
{
|
|
570 |
//reset the enable Join flag
|
|
571 |
iEnableJoinFlag = EFalse;
|
|
572 |
CMmCallGsmWcdmaExt* mmCallGsmWcdmaExt = NULL;
|
|
573 |
|
|
574 |
//loop through all call objects updating GoOneToOne caps
|
|
575 |
for ( TInt i = 0; i < callList->GetNumberOfObjects(); i++ )
|
|
576 |
{
|
|
577 |
mmCall = callList->GetMmCallByIndex( i );
|
|
578 |
|
|
579 |
if ( mmCall->MobileCallStatus() == RMobileCall::EStatusConnected
|
|
580 |
&& mmConference)
|
|
581 |
{
|
|
582 |
if ( mmConference->IsGoOneToOneSupported( mmCall->CallId() ) )
|
|
583 |
{
|
|
584 |
// Fetch the active call extension
|
|
585 |
mmCallGsmWcdmaExt = REINTERPRET_CAST(
|
|
586 |
CMmCallGsmWcdmaExt*, mmCall->ActiveCallExtension() );
|
|
587 |
|
|
588 |
//add GoOneToOne caps
|
|
589 |
mmCallGsmWcdmaExt->AddGSMCallCaps(
|
|
590 |
RMobileCall::KCapsOneToOne );
|
|
591 |
|
|
592 |
//complete caps change notification
|
|
593 |
mmCall->CompleteNotifyMobileCallCapsChange( KErrNone );
|
|
594 |
}
|
|
595 |
}
|
|
596 |
}
|
|
597 |
}
|
|
598 |
break;
|
|
599 |
case RMobileCall::EStatusDialling:
|
|
600 |
//activate HangUp caps
|
|
601 |
iMobileCallCaps.iCallControlCaps |=
|
|
602 |
RCall::KCapsHangUp;
|
|
603 |
|
|
604 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
605 |
RCall::KCapsDial | RCall::KCapsConnect );
|
|
606 |
|
|
607 |
break;
|
|
608 |
case RMobileCall::EStatusRinging:
|
|
609 |
//Caps are set in 2 phases because defined in different
|
|
610 |
//classes (lint complains about different types)
|
|
611 |
iMobileCallCaps.iCallControlCaps |=
|
|
612 |
RCall::KCapsHangUp;
|
|
613 |
iMobileCallCaps.iCallControlCaps |=
|
|
614 |
RMobileCall::KCapsDeflect;
|
|
615 |
|
|
616 |
//if there is no held and active calls
|
|
617 |
if ( !( ( callList->GetMmCallByStatus(
|
|
618 |
RMobileCall::EStatusHold ) != NULL ) &&
|
|
619 |
( callList->GetMmCallByStatus(
|
|
620 |
RMobileCall::EStatusConnected ) != NULL ) ) )
|
|
621 |
{
|
|
622 |
iMobileCallCaps.iCallControlCaps |=
|
|
623 |
RCall::KCapsAnswer;
|
|
624 |
}
|
|
625 |
|
|
626 |
if ( RMobilePhone::ECircuitDataService == iSymbianCallMode )
|
|
627 |
{
|
|
628 |
if ( ( callList->GetMmCallByStatus(
|
|
629 |
RMobileCall::EStatusConnected ) == NULL ) &&
|
|
630 |
( callList->GetMmCallByStatus(
|
|
631 |
RMobileCall::EStatusHold ) == NULL ) &&
|
|
632 |
( callList->GetMmCallByStatus(
|
|
633 |
RMobileCall::EStatusDisconnecting ) == NULL ) &&
|
|
634 |
( callList->GetMmCallByStatus(
|
|
635 |
RMobileCall::EStatusDisconnectingWithInband ) == NULL ) )
|
|
636 |
{
|
|
637 |
iMobileCallCaps.iCallControlCaps |=
|
|
638 |
RCall::KCapsAnswer;
|
|
639 |
// Set call caps
|
|
640 |
TUint32 callCaps = iMmCallTsy->CallCaps();
|
|
641 |
callCaps |= RCall::KCapsAnswer;
|
|
642 |
iMmCallTsy->SetCallCaps( callCaps );
|
|
643 |
}
|
|
644 |
}
|
|
645 |
else
|
|
646 |
{
|
|
647 |
if ( !( ( callList->GetMmCallByStatus(
|
|
648 |
RMobileCall::EStatusHold ) != NULL ) &&
|
|
649 |
( callList->GetMmCallByStatus(
|
|
650 |
RMobileCall::EStatusConnected ) != NULL ) ) )
|
|
651 |
{
|
|
652 |
iMobileCallCaps.iCallControlCaps |=
|
|
653 |
RCall::KCapsAnswer;
|
|
654 |
}
|
|
655 |
}
|
|
656 |
|
|
657 |
//disable Dial caps
|
|
658 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
659 |
RCall::KCapsDial | RCall::KCapsConnect );
|
|
660 |
|
|
661 |
break;
|
|
662 |
case RMobileCall::EStatusAnswering:
|
|
663 |
//activate hangup caps. EStatusRinging may have been missed
|
|
664 |
//so this needs to be activated.
|
|
665 |
iMobileCallCaps.iCallControlCaps |= RCall::KCapsHangUp;
|
|
666 |
|
|
667 |
//remove dial, answer and deflect caps
|
|
668 |
//Caps are set in 2 phases because defined in different
|
|
669 |
//classes (lint complains about different types)
|
|
670 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
671 |
RCall::KCapsDial |
|
|
672 |
RCall::KCapsAnswer );
|
|
673 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
674 |
RMobileCall::KCapsDeflect );
|
|
675 |
|
|
676 |
//if conference call is going on
|
|
677 |
if ( conferenceGoingOn )
|
|
678 |
{
|
|
679 |
//enable Join flag when call enters the connected state
|
|
680 |
iEnableJoinFlag = ETrue;
|
|
681 |
}
|
|
682 |
break;
|
|
683 |
case RMobileCall::EStatusConnecting:
|
|
684 |
//if conference call is going on
|
|
685 |
if ( conferenceGoingOn )
|
|
686 |
{
|
|
687 |
//enable Join flag when call enters the connected state
|
|
688 |
iEnableJoinFlag = ETrue;
|
|
689 |
|
|
690 |
//loop through all call objects searching held calls
|
|
691 |
for ( TInt i = 0; i < callList->GetNumberOfObjects(); i++ )
|
|
692 |
{
|
|
693 |
mmCall = callList->GetMmCallByIndex( i );
|
|
694 |
|
|
695 |
if ( mmCall->MobileCallStatus() ==
|
|
696 |
RMobileCall::EStatusHold )
|
|
697 |
{
|
|
698 |
//If status is Hold, disable GoOneToOne and Dial caps
|
|
699 |
//Caps are set in 2 phases because defined in different
|
|
700 |
//classes (lint complains about different types)
|
|
701 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
702 |
RCall::KCapsDial );
|
|
703 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
704 |
RMobileCall::KCapsOneToOne );
|
|
705 |
}
|
|
706 |
}
|
|
707 |
}
|
|
708 |
else if ( twoCallsGoingOn )
|
|
709 |
{
|
|
710 |
//if there is a call on Hold state
|
|
711 |
if ( callList->GetMmCallByStatus(
|
|
712 |
RMobileCall::EStatusHold ) != NULL )
|
|
713 |
{
|
|
714 |
//enable transfer caps
|
|
715 |
iMobileCallCaps.iCallControlCaps |=
|
|
716 |
RMobileCall::KCapsTransfer;
|
|
717 |
}
|
|
718 |
}
|
|
719 |
break;
|
|
720 |
case RMobileCall::EStatusDisconnecting:
|
|
721 |
case RMobileCall::EStatusDisconnectingWithInband:
|
|
722 |
//disable some caps
|
|
723 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
724 |
RMobileCall::KCapsHold |
|
|
725 |
RMobileCall::KCapsResume |
|
|
726 |
RMobileCall::KCapsSwap |
|
|
727 |
RMobileCall::KCapsDeflect |
|
|
728 |
RMobileCall::KCapsTransfer |
|
|
729 |
RMobileCall::KCapsJoin |
|
|
730 |
RMobileCall::KCapsOneToOne |
|
|
731 |
RMobileCall::KCapsSwitchAlternatingCall |
|
|
732 |
RMobileCall::KCapsActivateCCBS );
|
|
733 |
// Remove dataport caps.
|
|
734 |
if ( RMobilePhone::ECircuitDataService == iSymbianCallMode )
|
|
735 |
{
|
|
736 |
iMobileCallCaps.iCallControlCaps &= ~(RCall::KCapsLoanDataPort);
|
|
737 |
}
|
|
738 |
break;
|
|
739 |
case RMobileCall::EStatusReconnectPending:
|
|
740 |
case RMobileCall::EStatusWaitingAlternatingCallSwitch:
|
|
741 |
//Clear useless caps
|
|
742 |
//Caps are set in 2 phases because defined in different
|
|
743 |
//classes (lint complains about different types)
|
|
744 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
745 |
RCall::KCapsHangUp );
|
|
746 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
747 |
RMobileCall::KCapsHold |
|
|
748 |
RMobileCall::KCapsResume |
|
|
749 |
RMobileCall::KCapsSwap |
|
|
750 |
RMobileCall::KCapsDeflect |
|
|
751 |
RMobileCall::KCapsTransfer |
|
|
752 |
RMobileCall::KCapsJoin |
|
|
753 |
RMobileCall::KCapsOneToOne |
|
|
754 |
RMobileCall::KCapsSwitchAlternatingCall );
|
|
755 |
break;
|
|
756 |
case RMobileCall::EStatusUnknown:
|
|
757 |
case RMobileCall::EStatusConnected:
|
|
758 |
case RMobileCall::EStatusHold:
|
|
759 |
case RMobileCall::EStatusTransferring:
|
|
760 |
case RMobileCall::EStatusTransferAlerting:
|
|
761 |
// Default: do nothing
|
|
762 |
default:
|
|
763 |
if ( singleCallGoingOn )
|
|
764 |
{
|
|
765 |
UpdateSingleCallControlCaps( aCallStatus );
|
|
766 |
}
|
|
767 |
else if ( twoCallsGoingOn )
|
|
768 |
{
|
|
769 |
UpdateDoubleCallControlCaps( aCallStatus );
|
|
770 |
}
|
|
771 |
else if ( conferenceGoingOn )
|
|
772 |
{
|
|
773 |
UpdateMultipleCallControlCaps(
|
|
774 |
aCallStatus );
|
|
775 |
}
|
|
776 |
break;
|
|
777 |
}
|
|
778 |
|
|
779 |
if ( oldControlCaps == iMobileCallCaps.iCallControlCaps )
|
|
780 |
{
|
|
781 |
ret = KErrNotFound;
|
|
782 |
}
|
|
783 |
else
|
|
784 |
{
|
|
785 |
ret = KErrNone;
|
|
786 |
}
|
|
787 |
|
|
788 |
return ret;
|
|
789 |
}
|
|
790 |
|
|
791 |
// ---------------------------------------------------------------------------
|
|
792 |
// CMmCallGsmWcdmaExt::UpdateMultipleCallControlCaps
|
|
793 |
// This method updates call capabilities in case that conference call is going
|
|
794 |
// on.
|
|
795 |
// (other items were commented in a header).
|
|
796 |
// ---------------------------------------------------------------------------
|
|
797 |
//
|
|
798 |
TInt CMmCallGsmWcdmaExt::UpdateMultipleCallControlCaps(
|
|
799 |
RMobileCall::TMobileCallStatus aCallStatus )
|
|
800 |
{
|
|
801 |
// Get CMmPhone for information gathering
|
|
802 |
CMmPhoneTsy* mmPhone = iMmCallTsy->Phone();
|
|
803 |
// Get CallList
|
|
804 |
CMmCallList* callList = mmPhone->CallList();
|
|
805 |
|
|
806 |
TInt numberOfCallsInConfererence =
|
|
807 |
mmPhone->ConferenceCall()->NumberOfCallsInConference();
|
|
808 |
|
|
809 |
// Set Mobile Call Control + Core Caps
|
|
810 |
// Switch according to the call status
|
|
811 |
switch ( aCallStatus )
|
|
812 |
{
|
|
813 |
// Enable caps for an active call
|
|
814 |
case RMobileCall::EStatusConnected:
|
|
815 |
//Clear useless caps
|
|
816 |
//Caps are set in 2 phases because defined in different
|
|
817 |
//classes (lint complains about different types)
|
|
818 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
819 |
RCall::KCapsDial |
|
|
820 |
RCall::KCapsAnswer );
|
|
821 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
822 |
RMobileCall::KCapsTransfer |
|
|
823 |
RMobileCall::KCapsHold |
|
|
824 |
RMobileCall::KCapsResume |
|
|
825 |
RMobileCall::KCapsDeflect );
|
|
826 |
|
|
827 |
if ( NULL == callList->GetMmCallByStatus(
|
|
828 |
RMobileCall::EStatusHold ) )
|
|
829 |
{
|
|
830 |
//Go one to one is possible
|
|
831 |
iMobileCallCaps.iCallControlCaps |=
|
|
832 |
RMobileCall::KCapsOneToOne;
|
|
833 |
}
|
|
834 |
|
|
835 |
//This is a case where conference call is going on and a new call
|
|
836 |
//has entered the connected state -> Join and Swap caps might be
|
|
837 |
//enabled in this situation
|
|
838 |
if ( iEnableJoinFlag )
|
|
839 |
{
|
|
840 |
//if there are calls on hold status and more participants can
|
|
841 |
//be added to conference call
|
|
842 |
if ( callList->GetMmCallByStatus(
|
|
843 |
RMobileCall::EStatusHold ) != NULL &&
|
|
844 |
numberOfCallsInConfererence < KMaxCallsInConference )
|
|
845 |
{
|
|
846 |
//This call is not part of conference call, Join flag can
|
|
847 |
//be enabled. Only the call that is not part of conference
|
|
848 |
//can have Swap caps enabled.
|
|
849 |
iMobileCallCaps.iCallControlCaps |=
|
|
850 |
RMobileCall::KCapsJoin;
|
|
851 |
}
|
|
852 |
//reset the flag
|
|
853 |
iEnableJoinFlag = EFalse;
|
|
854 |
}
|
|
855 |
break;
|
|
856 |
case RMobileCall::EStatusHold:
|
|
857 |
//GoOneToOne is not possible in Hold state, disable it.
|
|
858 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
859 |
RMobileCall::KCapsOneToOne );
|
|
860 |
break;
|
|
861 |
case RMobileCall::EStatusUnknown:
|
|
862 |
case RMobileCall::EStatusIdle:
|
|
863 |
case RMobileCall::EStatusDialling:
|
|
864 |
case RMobileCall::EStatusRinging:
|
|
865 |
case RMobileCall::EStatusAnswering:
|
|
866 |
case RMobileCall::EStatusConnecting:
|
|
867 |
case RMobileCall::EStatusDisconnecting:
|
|
868 |
case RMobileCall::EStatusDisconnectingWithInband:
|
|
869 |
case RMobileCall::EStatusReconnectPending:
|
|
870 |
case RMobileCall::EStatusWaitingAlternatingCallSwitch:
|
|
871 |
case RMobileCall::EStatusTransferring:
|
|
872 |
case RMobileCall::EStatusTransferAlerting:
|
|
873 |
// Default: do nothing
|
|
874 |
default:
|
|
875 |
break;
|
|
876 |
}
|
|
877 |
|
|
878 |
return KErrNone;
|
|
879 |
}
|
|
880 |
|
|
881 |
// ---------------------------------------------------------------------------
|
|
882 |
// CMmCallGsmWcdmaExt::UpdateDoubleCallControlCaps
|
|
883 |
// This method updates call capabilities in case that there are two calls in
|
|
884 |
// non-idle state and they are not in a conference.
|
|
885 |
// (other items were commented in a header).
|
|
886 |
// ---------------------------------------------------------------------------
|
|
887 |
//
|
|
888 |
TInt CMmCallGsmWcdmaExt::UpdateDoubleCallControlCaps(
|
|
889 |
RMobileCall::TMobileCallStatus aCallStatus )
|
|
890 |
{
|
|
891 |
// Get CMmPhone for information gathering
|
|
892 |
CMmPhoneTsy* mmPhone = iMmCallTsy->Phone();
|
|
893 |
// Get CallList
|
|
894 |
CMmCallList* callList = mmPhone->CallList();
|
|
895 |
|
|
896 |
// Set Mobile Call Control + Core Caps
|
|
897 |
// Switch according to the call status
|
|
898 |
switch ( aCallStatus )
|
|
899 |
{
|
|
900 |
// Enable caps for an active call
|
|
901 |
case RMobileCall::EStatusConnected:
|
|
902 |
//Clear useless caps
|
|
903 |
//Caps are set in 2 phases because defined in different
|
|
904 |
//classes (lint complains about different types)
|
|
905 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
906 |
RCall::KCapsAnswer |
|
|
907 |
RCall::KCapsDial );
|
|
908 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
909 |
RMobileCall::KCapsTransfer |
|
|
910 |
RMobileCall::KCapsJoin |
|
|
911 |
RMobileCall::KCapsResume |
|
|
912 |
RMobileCall::KCapsSwap |
|
|
913 |
RMobileCall::KCapsDeflect |
|
|
914 |
RMobileCall::KCapsHold );
|
|
915 |
|
|
916 |
//if there is a call on hold
|
|
917 |
if ( callList->GetMmCallByStatus(
|
|
918 |
RMobileCall::EStatusHold ) != NULL )
|
|
919 |
{
|
|
920 |
//enable swap, join and transfer caps
|
|
921 |
iMobileCallCaps.iCallControlCaps |= (
|
|
922 |
RMobileCall::KCapsSwap |
|
|
923 |
RMobileCall::KCapsJoin |
|
|
924 |
RMobileCall::KCapsTransfer );
|
|
925 |
}
|
|
926 |
//if there is waiting call
|
|
927 |
else if ( callList->GetMmCallByStatus(
|
|
928 |
RMobileCall::EStatusRinging ) != NULL )
|
|
929 |
{
|
|
930 |
//enable swap, join and transfer caps
|
|
931 |
iMobileCallCaps.iCallControlCaps |=
|
|
932 |
RMobileCall::KCapsHold;
|
|
933 |
}
|
|
934 |
|
|
935 |
break;
|
|
936 |
case RMobileCall::EStatusHold:
|
|
937 |
//clear useless caps
|
|
938 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
939 |
RMobileCall::KCapsOneToOne |
|
|
940 |
RMobileCall::KCapsTransfer |
|
|
941 |
RMobileCall::KCapsSwap |
|
|
942 |
RMobileCall::KCapsHold |
|
|
943 |
RMobileCall::KCapsJoin |
|
|
944 |
RMobileCall::KCapsResume );
|
|
945 |
|
|
946 |
//if there is a call on Connected state
|
|
947 |
if ( callList->GetMmCallByStatus(
|
|
948 |
RMobileCall::EStatusConnected ) != NULL )
|
|
949 |
{
|
|
950 |
//enable swap, join and transfer caps
|
|
951 |
iMobileCallCaps.iCallControlCaps |=
|
|
952 |
RMobileCall::KCapsSwap |
|
|
953 |
RMobileCall::KCapsJoin |
|
|
954 |
RMobileCall::KCapsTransfer;
|
|
955 |
}
|
|
956 |
//if there is waiting call
|
|
957 |
else if ( callList->GetMmCallByStatus(
|
|
958 |
RMobileCall::EStatusRinging ) != NULL )
|
|
959 |
{
|
|
960 |
//enable swap, join and transfer caps
|
|
961 |
iMobileCallCaps.iCallControlCaps |=
|
|
962 |
RMobileCall::KCapsResume;
|
|
963 |
}
|
|
964 |
|
|
965 |
//if there is a call on Connecting state
|
|
966 |
if ( callList->GetMmCallByStatus(
|
|
967 |
RMobileCall::EStatusConnecting ) != NULL )
|
|
968 |
{
|
|
969 |
//enable transfer caps
|
|
970 |
iMobileCallCaps.iCallControlCaps |=
|
|
971 |
RMobileCall::KCapsTransfer;
|
|
972 |
}
|
|
973 |
break;
|
|
974 |
case RMobileCall::EStatusUnknown:
|
|
975 |
case RMobileCall::EStatusIdle:
|
|
976 |
case RMobileCall::EStatusDialling:
|
|
977 |
case RMobileCall::EStatusRinging:
|
|
978 |
case RMobileCall::EStatusAnswering:
|
|
979 |
case RMobileCall::EStatusConnecting:
|
|
980 |
case RMobileCall::EStatusDisconnecting:
|
|
981 |
case RMobileCall::EStatusDisconnectingWithInband:
|
|
982 |
case RMobileCall::EStatusReconnectPending:
|
|
983 |
case RMobileCall::EStatusWaitingAlternatingCallSwitch:
|
|
984 |
case RMobileCall::EStatusTransferring:
|
|
985 |
case RMobileCall::EStatusTransferAlerting:
|
|
986 |
// Default do nothing
|
|
987 |
default:
|
|
988 |
break;
|
|
989 |
}
|
|
990 |
|
|
991 |
return KErrNone;
|
|
992 |
}
|
|
993 |
|
|
994 |
// ---------------------------------------------------------------------------
|
|
995 |
// CMmCallGsmWcdmaExt::UpdateSingleCallControlCaps
|
|
996 |
// This method updates call capabilities in case that there is only one
|
|
997 |
// non-idle call
|
|
998 |
// (other items were commented in a header).
|
|
999 |
// ---------------------------------------------------------------------------
|
|
1000 |
//
|
|
1001 |
TInt CMmCallGsmWcdmaExt::UpdateSingleCallControlCaps(
|
|
1002 |
RMobileCall::TMobileCallStatus aCallStatus )
|
|
1003 |
{
|
|
1004 |
// Set Mobile Call Control + Core Caps
|
|
1005 |
// Switch according to the call status
|
|
1006 |
switch ( aCallStatus )
|
|
1007 |
{
|
|
1008 |
case RMobileCall::EStatusConnected:
|
|
1009 |
//Disable some caps for an active call
|
|
1010 |
//Caps are set in 2 phases because defined in different
|
|
1011 |
//classes (lint complains about different types)
|
|
1012 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
1013 |
RCall::KCapsAnswer |
|
|
1014 |
RCall::KCapsDial );
|
|
1015 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
1016 |
RMobileCall::KCapsTransfer |
|
|
1017 |
RMobileCall::KCapsResume |
|
|
1018 |
RMobileCall::KCapsSwap |
|
|
1019 |
RMobileCall::KCapsDeflect |
|
|
1020 |
RMobileCall::KCapsJoin |
|
|
1021 |
RMobileCall::KCapsOneToOne );
|
|
1022 |
|
|
1023 |
//activate HangUp caps
|
|
1024 |
iMobileCallCaps.iCallControlCaps |=
|
|
1025 |
RCall::KCapsHangUp;
|
|
1026 |
|
|
1027 |
// Data call can't be controlled with swap, resume & join
|
|
1028 |
if ( RMobilePhone::ECircuitDataService != iSymbianCallMode
|
|
1029 |
&& RMobilePhone::EFaxService != iSymbianCallMode )
|
|
1030 |
{
|
|
1031 |
iMobileCallCaps.iCallControlCaps |=
|
|
1032 |
RMobileCall::KCapsHold;
|
|
1033 |
}
|
|
1034 |
break;
|
|
1035 |
case RMobileCall::EStatusHold:
|
|
1036 |
//disable some caps first
|
|
1037 |
iMobileCallCaps.iCallControlCaps &= ~(
|
|
1038 |
RMobileCall::KCapsOneToOne |
|
|
1039 |
RMobileCall::KCapsTransfer |
|
|
1040 |
RMobileCall::KCapsSwap |
|
|
1041 |
RMobileCall::KCapsHold |
|
|
1042 |
RMobileCall::KCapsJoin |
|
|
1043 |
RMobileCall::KCapsOneToOne |
|
|
1044 |
RMobileCall::KCapsResume );
|
|
1045 |
|
|
1046 |
//activate HangUp caps
|
|
1047 |
iMobileCallCaps.iCallControlCaps |=
|
|
1048 |
RCall::KCapsHangUp;
|
|
1049 |
|
|
1050 |
// Data call can't be controlled with swap, resume & join
|
|
1051 |
if ( RMobilePhone::ECircuitDataService != iSymbianCallMode
|
|
1052 |
&& RMobilePhone::EFaxService != iSymbianCallMode )
|
|
1053 |
{
|
|
1054 |
iMobileCallCaps.iCallControlCaps |=
|
|
1055 |
RMobileCall::KCapsResume;
|
|
1056 |
}
|
|
1057 |
break;
|
|
1058 |
case RMobileCall::EStatusUnknown:
|
|
1059 |
case RMobileCall::EStatusIdle:
|
|
1060 |
case RMobileCall::EStatusDialling:
|
|
1061 |
case RMobileCall::EStatusRinging:
|
|
1062 |
case RMobileCall::EStatusAnswering:
|
|
1063 |
case RMobileCall::EStatusConnecting:
|
|
1064 |
case RMobileCall::EStatusDisconnecting:
|
|
1065 |
case RMobileCall::EStatusDisconnectingWithInband:
|
|
1066 |
case RMobileCall::EStatusReconnectPending:
|
|
1067 |
case RMobileCall::EStatusWaitingAlternatingCallSwitch:
|
|
1068 |
case RMobileCall::EStatusTransferring:
|
|
1069 |
case RMobileCall::EStatusTransferAlerting:
|
|
1070 |
// Default do nothing
|
|
1071 |
default:
|
|
1072 |
break;
|
|
1073 |
}
|
|
1074 |
|
|
1075 |
return KErrNone;
|
|
1076 |
}
|
|
1077 |
|
|
1078 |
// ---------------------------------------------------------------------------
|
|
1079 |
// CMmCallGsmWcdmaExt::GetCallParams
|
|
1080 |
// Returns the GSM specific call parameters in parameter.
|
|
1081 |
// (other items were commented in a header).
|
|
1082 |
// ---------------------------------------------------------------------------
|
|
1083 |
//
|
|
1084 |
void CMmCallGsmWcdmaExt::GetCallParams(
|
|
1085 |
TDes8* aParams )
|
|
1086 |
{
|
|
1087 |
RCall::TCallParamsPckg* callParamsPckg =
|
|
1088 |
reinterpret_cast<RCall::TCallParamsPckg*>( aParams );
|
|
1089 |
RCall::TCallParams& callParams = ( *callParamsPckg )();
|
|
1090 |
|
|
1091 |
TInt extensionId( callParams.ExtensionId() );
|
|
1092 |
|
|
1093 |
if ( RMobilePhone::ECircuitDataService != iSymbianCallMode )
|
|
1094 |
{
|
|
1095 |
if ( RMobileCall::KETelMobileCallParamsV1 == extensionId ||
|
|
1096 |
RMobileCall::KETelMobileDataCallParamsV1 == extensionId ||
|
|
1097 |
RMobileCall::KETelMobileDataCallParamsV2 == extensionId ||
|
|
1098 |
RMobileCall::KETelMobileDataCallParamsV8 == extensionId ||
|
|
1099 |
RMobileCall::KETelMobileHscsdCallParamsV1 == extensionId ||
|
|
1100 |
RMobileCall::KETelMobileHscsdCallParamsV2 == extensionId ||
|
|
1101 |
RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ||
|
|
1102 |
RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId )
|
|
1103 |
{
|
|
1104 |
RMobileCall::TMobileCallParamsV1Pckg* paramsPckgV1 =
|
|
1105 |
reinterpret_cast<RMobileCall::TMobileCallParamsV1Pckg*>(
|
|
1106 |
aParams );
|
|
1107 |
RMobileCall::TMobileCallParamsV1& params = ( *paramsPckgV1 )();
|
|
1108 |
|
|
1109 |
|
|
1110 |
//Parameter of base class TMobileCallParamsV1
|
|
1111 |
params.iIdRestrict = iCallParams.iIdRestrict;
|
|
1112 |
params.iCug = iCallParams.iCug;
|
|
1113 |
params.iAutoRedial = iCallParams.iAutoRedial;
|
|
1114 |
}
|
|
1115 |
else if ( RMobileCall::KETelMobileCallParamsV2 == extensionId )
|
|
1116 |
{
|
|
1117 |
RMobileCall::TMobileCallParamsV2Pckg* paramsPckgV2 =
|
|
1118 |
reinterpret_cast<RMobileCall::TMobileCallParamsV2Pckg*>(
|
|
1119 |
aParams );
|
|
1120 |
RMobileCall::TMobileCallParamsV2& params = ( *paramsPckgV2 )();
|
|
1121 |
|
|
1122 |
//Parameter of base class TMobileCallParamsV1
|
|
1123 |
params.iIdRestrict = iCallParams.iIdRestrict;
|
|
1124 |
params.iCug = iCallParams.iCug;
|
|
1125 |
params.iAutoRedial = iCallParams.iAutoRedial;
|
|
1126 |
//Parameter of class TMobileCallParamsV2
|
|
1127 |
params.iBearerMode = iCallParams.iBearerMode;
|
|
1128 |
}
|
|
1129 |
else if ( RMobileCall::KETelMobileCallParamsV7 == extensionId )
|
|
1130 |
{
|
|
1131 |
|
|
1132 |
RMobileCall::TMobileCallParamsV7Pckg* paramsPckgV7 =
|
|
1133 |
reinterpret_cast<RMobileCall::TMobileCallParamsV7Pckg*>(
|
|
1134 |
aParams );
|
|
1135 |
RMobileCall::TMobileCallParamsV7& params = ( *paramsPckgV7 )();
|
|
1136 |
|
|
1137 |
//Parameter of base class TMobileCallParamsV1
|
|
1138 |
params.iIdRestrict = iCallParams.iIdRestrict;
|
|
1139 |
params.iCug = iCallParams.iCug;
|
|
1140 |
params.iAutoRedial = iCallParams.iAutoRedial;
|
|
1141 |
|
|
1142 |
//Parameter of class TMobileCallParamsV2
|
|
1143 |
params.iBearerMode = iCallParams.iBearerMode;
|
|
1144 |
|
|
1145 |
//Paremeters of class TMobileCallParamsV7
|
|
1146 |
params.iCallParamOrigin = iCallParams.iCallParamOrigin;
|
|
1147 |
params.iSubAddress = iCallParams.iSubAddress;
|
|
1148 |
params.iBearerCap1 = iCallParams.iBearerCap1;
|
|
1149 |
params.iBearerCap2 = iCallParams.iBearerCap2;
|
|
1150 |
params.iBCRepeatIndicator = iCallParams.iBCRepeatIndicator;
|
|
1151 |
params.iIconId.iQualifier = iCallParams.iIconId.iQualifier;
|
|
1152 |
params.iIconId.iIdentifier = iCallParams.iIconId.iIdentifier;
|
|
1153 |
params.iAlphaId = iCallParams.iAlphaId;
|
|
1154 |
|
|
1155 |
}
|
|
1156 |
else
|
|
1157 |
{
|
|
1158 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::GetCallParams callparams version unknown");
|
|
1159 |
}
|
|
1160 |
|
|
1161 |
}
|
|
1162 |
else
|
|
1163 |
{
|
|
1164 |
if ( RMobileCall::KETelMobileCallParamsV1 == extensionId ||
|
|
1165 |
RMobileCall::KETelMobileCallParamsV2 == extensionId ||
|
|
1166 |
RMobileCall::KETelMobileCallParamsV7 == extensionId ||
|
|
1167 |
RMobileCall::KETelMobileDataCallParamsV1 == extensionId ||
|
|
1168 |
RMobileCall::KETelMobileDataCallParamsV2 == extensionId ||
|
|
1169 |
RMobileCall::KETelMobileDataCallParamsV8 == extensionId ||
|
|
1170 |
RMobileCall::KETelMobileHscsdCallParamsV1 == extensionId ||
|
|
1171 |
RMobileCall::KETelMobileHscsdCallParamsV2 == extensionId ||
|
|
1172 |
RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ||
|
|
1173 |
RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId )
|
|
1174 |
{
|
|
1175 |
RMobileCall::TMobileCallParamsV1Pckg* paramsPckgV1 =
|
|
1176 |
reinterpret_cast<RMobileCall::TMobileCallParamsV1Pckg*>(
|
|
1177 |
aParams );
|
|
1178 |
RMobileCall::TMobileCallParamsV1& params = ( *paramsPckgV1 )();
|
|
1179 |
|
|
1180 |
//Parameter of base class TMobileCallParamsV1
|
|
1181 |
params.iIdRestrict = iCSDParams->iIdRestrict;
|
|
1182 |
params.iCug = iCSDParams->iCug;
|
|
1183 |
params.iAutoRedial = iCSDParams->iAutoRedial;
|
|
1184 |
|
|
1185 |
}
|
|
1186 |
|
|
1187 |
if ( RMobileCall::KETelMobileDataCallParamsV1 == extensionId ||
|
|
1188 |
RMobileCall::KETelMobileDataCallParamsV2 == extensionId ||
|
|
1189 |
RMobileCall::KETelMobileDataCallParamsV8 == extensionId ||
|
|
1190 |
RMobileCall::KETelMobileHscsdCallParamsV1 == extensionId ||
|
|
1191 |
RMobileCall::KETelMobileHscsdCallParamsV2 == extensionId ||
|
|
1192 |
RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ||
|
|
1193 |
RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId )
|
|
1194 |
{
|
|
1195 |
RMobileCall::TMobileDataCallParamsV1Pckg* paramsPckgV1 =
|
|
1196 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV1Pckg*>(
|
|
1197 |
aParams );
|
|
1198 |
RMobileCall::TMobileDataCallParamsV1& dataParams = ( *paramsPckgV1 )();
|
|
1199 |
|
|
1200 |
CopyMobileDataCallParams( dataParams, *iCSDParams );
|
|
1201 |
|
|
1202 |
}
|
|
1203 |
|
|
1204 |
if ( RMobileCall::KETelMobileDataCallParamsV2 == extensionId ||
|
|
1205 |
RMobileCall::KETelMobileDataCallParamsV8 == extensionId)
|
|
1206 |
{
|
|
1207 |
RMobileCall::TMobileDataCallParamsV2Pckg* paramsPckgV2 =
|
|
1208 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV2Pckg*>(
|
|
1209 |
aParams );
|
|
1210 |
RMobileCall::TMobileDataCallParamsV2& dataParams2 = ( *paramsPckgV2 )();
|
|
1211 |
|
|
1212 |
RMobileCall::TMobileDataCallParamsV2* dataCallParamsV2 = static_cast<RMobileCall::TMobileDataCallParamsV2*>(iCSDParams);
|
|
1213 |
|
|
1214 |
//Parameter of class TMobileDataCallParamsV2
|
|
1215 |
dataParams2.iBearerMode = dataCallParamsV2->iBearerMode;
|
|
1216 |
}
|
|
1217 |
|
|
1218 |
if ( RMobileCall::KETelMobileDataCallParamsV8 == extensionId )
|
|
1219 |
{
|
|
1220 |
RMobileCall::TMobileDataCallParamsV8Pckg* paramsPckgV8 =
|
|
1221 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV8Pckg*>(
|
|
1222 |
aParams );
|
|
1223 |
RMobileCall::TMobileDataCallParamsV8& dataParams8 = ( *paramsPckgV8 )();
|
|
1224 |
|
|
1225 |
RMobileCall::TMobileDataCallParamsV8* dataCallParamsV8 = static_cast<RMobileCall::TMobileDataCallParamsV8*>(iCSDParams);
|
|
1226 |
|
|
1227 |
//Parameters of class TMobileDataCallParamsV8
|
|
1228 |
dataParams8.iSubAddress = dataCallParamsV8->iSubAddress;
|
|
1229 |
dataParams8.iBearerCap1 = dataCallParamsV8->iBearerCap1;
|
|
1230 |
dataParams8.iBearerCap2 = dataCallParamsV8->iBearerCap2;
|
|
1231 |
dataParams8.iBCRepeatIndicator = dataCallParamsV8->iBCRepeatIndicator;
|
|
1232 |
dataParams8.iCallParamOrigin = dataCallParamsV8->iCallParamOrigin;
|
|
1233 |
dataParams8.iIconId.iQualifier = dataCallParamsV8->iIconId.iQualifier;
|
|
1234 |
dataParams8.iIconId.iIdentifier = dataCallParamsV8->iIconId.iIdentifier;
|
|
1235 |
dataParams8.iAlphaId = dataCallParamsV8->iAlphaId;
|
|
1236 |
|
|
1237 |
}
|
|
1238 |
|
|
1239 |
if ( RMobileCall::KETelMobileHscsdCallParamsV1 == extensionId ||
|
|
1240 |
RMobileCall::KETelMobileHscsdCallParamsV2 == extensionId ||
|
|
1241 |
RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ||
|
|
1242 |
RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId)
|
|
1243 |
{
|
|
1244 |
RMobileCall::TMobileHscsdCallParamsV1Pckg* paramsPckgV1 =
|
|
1245 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV1Pckg*>(
|
|
1246 |
aParams );
|
|
1247 |
RMobileCall::TMobileHscsdCallParamsV1& hscsdParams =
|
|
1248 |
( *paramsPckgV1 )();
|
|
1249 |
|
|
1250 |
//Parameter of base class TMobileHscsdCallParamsV1
|
|
1251 |
hscsdParams.iWantedAiur = iHSCSDParams->iWantedAiur;
|
|
1252 |
hscsdParams.iWantedRxTimeSlots = iHSCSDParams->iWantedRxTimeSlots;
|
|
1253 |
hscsdParams.iMaxTimeSlots = iHSCSDParams->iMaxTimeSlots;
|
|
1254 |
hscsdParams.iCodings = iHSCSDParams->iCodings;
|
|
1255 |
hscsdParams.iAsymmetry = iHSCSDParams->iAsymmetry;
|
|
1256 |
hscsdParams.iUserInitUpgrade = iHSCSDParams->iUserInitUpgrade;
|
|
1257 |
}
|
|
1258 |
|
|
1259 |
if ( RMobileCall::KETelMobileHscsdCallParamsV2 == extensionId ||
|
|
1260 |
RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ||
|
|
1261 |
RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId)
|
|
1262 |
{
|
|
1263 |
RMobileCall::TMobileHscsdCallParamsV2Pckg* paramsPckgV2 =
|
|
1264 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV2Pckg*>(
|
|
1265 |
aParams );
|
|
1266 |
RMobileCall::TMobileHscsdCallParamsV2& hscsdParams2 =
|
|
1267 |
( *paramsPckgV2 )();
|
|
1268 |
|
|
1269 |
//Parameter of class TMobileHscsdCallParamsV2
|
|
1270 |
RMobileCall::TMobileHscsdCallParamsV2* hscsdCallParamsV2 = static_cast<RMobileCall::TMobileHscsdCallParamsV2*>(iHSCSDParams);
|
|
1271 |
hscsdParams2.iBearerMode = hscsdCallParamsV2->iBearerMode;
|
|
1272 |
}
|
|
1273 |
|
|
1274 |
if ( RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ||
|
|
1275 |
RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId)
|
|
1276 |
{
|
|
1277 |
RMobileCall::TMobileHscsdCallParamsV7Pckg* paramsPckgV7 =
|
|
1278 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV7Pckg*>(
|
|
1279 |
aParams );
|
|
1280 |
RMobileCall::TMobileHscsdCallParamsV7& hscsdParams7 =
|
|
1281 |
( *paramsPckgV7 )();
|
|
1282 |
|
|
1283 |
RMobileCall::TMobileHscsdCallParamsV7* hscsdCallParamsV7 = static_cast<RMobileCall::TMobileHscsdCallParamsV7*>(iHSCSDParams);
|
|
1284 |
|
|
1285 |
//Parameter of class TMobileHscsdCallParamsV7
|
|
1286 |
hscsdParams7.iCallParamOrigin = hscsdCallParamsV7->iCallParamOrigin;
|
|
1287 |
hscsdParams7.iIconId.iQualifier = hscsdCallParamsV7->iIconId.iQualifier;
|
|
1288 |
hscsdParams7.iIconId.iIdentifier = hscsdCallParamsV7->iIconId.iIdentifier;
|
|
1289 |
hscsdParams7.iAlphaId = hscsdCallParamsV7->iAlphaId;
|
|
1290 |
}
|
|
1291 |
|
|
1292 |
if ( RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId )
|
|
1293 |
{
|
|
1294 |
RMobileCall::TMobileHscsdCallParamsV8Pckg* paramsPckgV8 =
|
|
1295 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV8Pckg*>(
|
|
1296 |
aParams );
|
|
1297 |
RMobileCall::TMobileHscsdCallParamsV8& hscsdParams8 =
|
|
1298 |
( *paramsPckgV8 )();
|
|
1299 |
|
|
1300 |
RMobileCall::TMobileHscsdCallParamsV8* hscsdCallParamsV8 = static_cast<RMobileCall::TMobileHscsdCallParamsV8*>(iHSCSDParams);
|
|
1301 |
|
|
1302 |
//Parameter of class TMobileHscsdCallParamsV8
|
|
1303 |
hscsdParams8.iSubAddress = hscsdCallParamsV8->iSubAddress;
|
|
1304 |
hscsdParams8.iBearerCap1 = hscsdCallParamsV8->iBearerCap1;
|
|
1305 |
hscsdParams8.iBearerCap2 = hscsdCallParamsV8->iBearerCap2;
|
|
1306 |
hscsdParams8.iBCRepeatIndicator = hscsdCallParamsV8->iBCRepeatIndicator;
|
|
1307 |
|
|
1308 |
}
|
|
1309 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::GetCallParams callparams version unknown");
|
|
1310 |
|
|
1311 |
}
|
|
1312 |
|
|
1313 |
}
|
|
1314 |
|
|
1315 |
// ---------------------------------------------------------------------------
|
|
1316 |
// CMmCallGsmWcdmaExt::DialEmergencyCallL
|
|
1317 |
// GSM specific DialEmergencyCall method.
|
|
1318 |
// (other items were commented in a header).
|
|
1319 |
// ---------------------------------------------------------------------------
|
|
1320 |
//
|
|
1321 |
TInt CMmCallGsmWcdmaExt::DialEmergencyCall(
|
|
1322 |
TCtsySsmCallbackData& aCallbackData )
|
|
1323 |
{
|
|
1324 |
// store stateInfo and Emergency number
|
|
1325 |
// to have access to them inside callback
|
|
1326 |
TRfStateInfo stateInfo = iMmCallTsy->Phone()->GetRfStateInfo();
|
|
1327 |
|
|
1328 |
if( stateInfo != ERfsStateInfoNormal )
|
|
1329 |
{
|
|
1330 |
//the method in callTsy has already checked that
|
|
1331 |
// emergency calls in offline are enabled
|
|
1332 |
//otherwise this code woulnd't be reached
|
|
1333 |
|
|
1334 |
//set the RF to normal state so the emergency call can be dialed
|
|
1335 |
SetRfState( ERfsStateInfoNormal, this, aCallbackData );
|
|
1336 |
}
|
|
1337 |
else
|
|
1338 |
{
|
|
1339 |
// if there is no need to change RF state
|
|
1340 |
// then call SsmPluginCallback immediately
|
|
1341 |
SsmPluginCallback(KErrNone, aCallbackData);
|
|
1342 |
}
|
|
1343 |
|
|
1344 |
return KErrNone;
|
|
1345 |
}
|
|
1346 |
|
|
1347 |
|
|
1348 |
// ---------------------------------------------------------------------------
|
|
1349 |
// CMmCallGsmWcdmaExt::HoldL
|
|
1350 |
// This method can be used to hold an active call.
|
|
1351 |
// (other items were commented in a header).
|
|
1352 |
// ---------------------------------------------------------------------------
|
|
1353 |
//
|
|
1354 |
TInt CMmCallGsmWcdmaExt::HoldL(
|
|
1355 |
TInt aCallId )
|
|
1356 |
{
|
|
1357 |
TInt ret( KErrNone );
|
|
1358 |
|
|
1359 |
CMmConferenceCallTsy* mmConference =
|
|
1360 |
iMmCallTsy->Phone()->ConferenceCall();
|
|
1361 |
|
|
1362 |
if ( NULL != mmConference )
|
|
1363 |
{
|
|
1364 |
if ( RMobileConferenceCall::EConferenceIdle !=
|
|
1365 |
mmConference->Status() )
|
|
1366 |
{
|
|
1367 |
ret = KErrNotReady;
|
|
1368 |
}
|
|
1369 |
}
|
|
1370 |
|
|
1371 |
if ( KErrNone == ret )
|
|
1372 |
{
|
|
1373 |
//Create package
|
|
1374 |
CCallDataPackage package;
|
|
1375 |
//Set call id and call mode
|
|
1376 |
package.SetCallIdAndMode( aCallId, iSymbianCallMode );
|
|
1377 |
//Send request to the Domestic OS layer.
|
|
1378 |
ret = iMessageManager->HandleRequestL( EMobileCallHold, &package );
|
|
1379 |
}
|
|
1380 |
|
|
1381 |
return ret;
|
|
1382 |
}
|
|
1383 |
|
|
1384 |
// ---------------------------------------------------------------------------
|
|
1385 |
// CMmCallGsmWcdmaExt::ResumeL
|
|
1386 |
// This method can be used to resume a held call.
|
|
1387 |
// (other items were commented in a header).
|
|
1388 |
// ---------------------------------------------------------------------------
|
|
1389 |
//
|
|
1390 |
TInt CMmCallGsmWcdmaExt::ResumeL(
|
|
1391 |
TInt aCallId )
|
|
1392 |
{
|
|
1393 |
TInt ret( KErrNone );
|
|
1394 |
|
|
1395 |
CMmConferenceCallTsy* mmConference =
|
|
1396 |
iMmCallTsy->Phone()->ConferenceCall();
|
|
1397 |
|
|
1398 |
if ( NULL != mmConference )
|
|
1399 |
{
|
|
1400 |
|
|
1401 |
if ( RMobileConferenceCall::EConferenceIdle !=
|
|
1402 |
mmConference->Status() )
|
|
1403 |
{
|
|
1404 |
ret = KErrNotReady;
|
|
1405 |
}
|
|
1406 |
}
|
|
1407 |
|
|
1408 |
if ( KErrNone == ret )
|
|
1409 |
{
|
|
1410 |
//Create package
|
|
1411 |
CCallDataPackage package;
|
|
1412 |
//Set call id and call mode
|
|
1413 |
package.SetCallIdAndMode( aCallId, iSymbianCallMode );
|
|
1414 |
//Send request to the Domestic OS layer.
|
|
1415 |
ret = iMessageManager->HandleRequestL( EMobileCallResume, &package );
|
|
1416 |
}
|
|
1417 |
|
|
1418 |
return ret;
|
|
1419 |
}
|
|
1420 |
|
|
1421 |
// ---------------------------------------------------------------------------
|
|
1422 |
// CMmCallGsmWcdmaExt::SwapL
|
|
1423 |
// This method can be used to swap between active and held calls.
|
|
1424 |
// (other items were commented in a header).
|
|
1425 |
// ---------------------------------------------------------------------------
|
|
1426 |
//
|
|
1427 |
#ifndef USING_CTSY_DISPATCHER
|
|
1428 |
TInt CMmCallGsmWcdmaExt::SwapL(
|
|
1429 |
TInt aCallId )
|
|
1430 |
{
|
|
1431 |
TInt ret( KErrNone );
|
|
1432 |
|
|
1433 |
//Create package
|
|
1434 |
CCallDataPackage package;
|
|
1435 |
//Set call id and call mode
|
|
1436 |
package.SetCallIdAndMode( aCallId, iSymbianCallMode );
|
|
1437 |
//Send request to the Domestic OS layer.
|
|
1438 |
ret = iMessageManager->HandleRequestL( EMobileCallSwap, &package );
|
|
1439 |
|
|
1440 |
return ret;
|
|
1441 |
}
|
|
1442 |
#endif //USING_CTSY_DISPATCHER
|
|
1443 |
|
|
1444 |
// ---------------------------------------------------------------------------
|
|
1445 |
// CMmCallGsmWcdmaExt::GoOneToOneL
|
|
1446 |
// This method requests a private communication to the remote party of one
|
|
1447 |
// call within a conference call.
|
|
1448 |
// (other items were commented in a header).
|
|
1449 |
// ---------------------------------------------------------------------------
|
|
1450 |
//
|
|
1451 |
TInt CMmCallGsmWcdmaExt::GoOneToOneL(
|
|
1452 |
TInt aCallId )
|
|
1453 |
{
|
|
1454 |
TInt ret( KErrNotSupported );
|
|
1455 |
|
|
1456 |
CMmConferenceCallTsy* mmConference =
|
|
1457 |
iMmCallTsy->Phone()->ConferenceCall();
|
|
1458 |
|
|
1459 |
if ( mmConference )
|
|
1460 |
{
|
|
1461 |
//Check if GoOneToOne is supported
|
|
1462 |
TBool isSupported = mmConference->IsGoOneToOneSupported( aCallId );
|
|
1463 |
|
|
1464 |
//if GoOneToOne is possible
|
|
1465 |
if ( isSupported )
|
|
1466 |
{
|
|
1467 |
//Create package
|
|
1468 |
CCallDataPackage package;
|
|
1469 |
//Set call id and call mode
|
|
1470 |
package.SetCallIdAndMode( aCallId, iSymbianCallMode );
|
|
1471 |
//Send request to the Domestic OS layer.
|
|
1472 |
ret = iMessageManager->HandleRequestL(
|
|
1473 |
EMobileCallGoOneToOne, &package );
|
|
1474 |
|
|
1475 |
// Inform the Conference Call GSM extension about pending
|
|
1476 |
// GoOneToOne operation
|
|
1477 |
if ( KErrNone == ret )
|
|
1478 |
{
|
|
1479 |
CMmConferenceCallExtInterface* confCallExt =
|
|
1480 |
mmConference->GetActiveConferenceCallExtension();
|
|
1481 |
if ( confCallExt )
|
|
1482 |
{
|
|
1483 |
// This cast is safe: As we are here in GSM/WCDMA Call
|
|
1484 |
// extension, we know that the active Conference Call
|
|
1485 |
// extension is also GSM/WCDMA
|
|
1486 |
static_cast<CMmConferenceCallGsmWcdmaExt*>( confCallExt )->
|
|
1487 |
SetGoOneToOneHandlingStarted( ETrue, aCallId );
|
|
1488 |
}
|
|
1489 |
}
|
|
1490 |
}
|
|
1491 |
}
|
|
1492 |
|
|
1493 |
return ret;
|
|
1494 |
}
|
|
1495 |
|
|
1496 |
// ---------------------------------------------------------------------------
|
|
1497 |
// CMmCallGsmWcdmaExt::DeflectL
|
|
1498 |
// This method deflects incoming call to another destination.
|
|
1499 |
// (other items were commented in a header).
|
|
1500 |
// ---------------------------------------------------------------------------
|
|
1501 |
//
|
|
1502 |
TInt CMmCallGsmWcdmaExt::DeflectL(
|
|
1503 |
const TDataPackage& aData )
|
|
1504 |
{
|
|
1505 |
TInt ret( KErrNone );
|
|
1506 |
|
|
1507 |
RMobileCall::TMobileCallDeflect* deflectType =
|
|
1508 |
reinterpret_cast<RMobileCall::TMobileCallDeflect*>( aData.Ptr1() );
|
|
1509 |
RMobilePhone::TMobileAddress* destination =
|
|
1510 |
reinterpret_cast<RMobilePhone::TMobileAddress*>( aData.Ptr2() );
|
|
1511 |
|
|
1512 |
if ( ( ( RMobileCall::EDeflectUnspecified == *deflectType ) ||
|
|
1513 |
( RMobileCall::EDeflectSuppliedNumber == *deflectType ) ) &&
|
|
1514 |
( 0 < destination->iTelNumber.Length() ) )
|
|
1515 |
// Type EDeflectUnspecified is accepted if destination number is
|
|
1516 |
// supplied
|
|
1517 |
{
|
|
1518 |
//Create package
|
|
1519 |
CCallDataPackage package;
|
|
1520 |
//Set call id and call mode
|
|
1521 |
package.SetCallIdAndMode( iMmCallTsy->CallId(), iSymbianCallMode );
|
|
1522 |
//Send request to the Domestic OS layer.
|
|
1523 |
ret = iMessageManager->HandleRequestL( EMobileCallDeflect, &package );
|
|
1524 |
}
|
|
1525 |
else
|
|
1526 |
{
|
|
1527 |
// other deflect types (EDeflectRegisteredNumber and EDeflectVoicemail)
|
|
1528 |
// are not supported
|
|
1529 |
ret = KErrNotSupported;
|
|
1530 |
}
|
|
1531 |
|
|
1532 |
return ret;
|
|
1533 |
}
|
|
1534 |
|
|
1535 |
// ---------------------------------------------------------------------------
|
|
1536 |
// CMmCallGsmWcdmaExt::TransferL
|
|
1537 |
// This method transfers call to another destination.
|
|
1538 |
// (other items were commented in a header).
|
|
1539 |
// ---------------------------------------------------------------------------
|
|
1540 |
//
|
|
1541 |
#ifndef USING_CTSY_DISPATCHER
|
|
1542 |
TInt CMmCallGsmWcdmaExt::TransferL()
|
|
1543 |
{
|
|
1544 |
TInt ret( KErrNone );
|
|
1545 |
|
|
1546 |
// Retrieve possible held call
|
|
1547 |
CMmCallTsy* mmCall = iMmCallTsy->Phone()->CallList()->GetMmCallByStatus(
|
|
1548 |
RMobileCall::EStatusHold );
|
|
1549 |
|
|
1550 |
if ( mmCall )
|
|
1551 |
{
|
|
1552 |
// Held call Id
|
|
1553 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::Transfer, CallId: %d", \
|
|
1554 |
mmCall->CallId() );
|
|
1555 |
|
|
1556 |
//Create package
|
|
1557 |
CCallDataPackage package;
|
|
1558 |
//Set call id and call mode
|
|
1559 |
package.SetCallIdAndMode( mmCall->CallId(), iSymbianCallMode );
|
|
1560 |
//Send request to the Domestic OS layer.
|
|
1561 |
ret = iMessageManager->HandleRequestL(
|
|
1562 |
EMobileCallTransfer, &package );
|
|
1563 |
}
|
|
1564 |
else
|
|
1565 |
{
|
|
1566 |
ret = KErrNotReady;
|
|
1567 |
}
|
|
1568 |
|
|
1569 |
return ret;
|
|
1570 |
}
|
|
1571 |
#endif //USING_CTSY_DISPATCHER
|
|
1572 |
|
|
1573 |
// ---------------------------------------------------------------------------
|
|
1574 |
// CMmCallGsmWcdmaExt::FillMobileCallInfo
|
|
1575 |
// Fills the GSM specific Mobile Call Information in the
|
|
1576 |
// RMobileCall::TMobileCallInfoV1 given as parameter.
|
|
1577 |
// (other items were commented in a header).
|
|
1578 |
// ---------------------------------------------------------------------------
|
|
1579 |
//
|
|
1580 |
TInt CMmCallGsmWcdmaExt::FillMobileCallInfo(
|
|
1581 |
RMobileCall::TMobileCallInfoV1* aInfoV1)
|
|
1582 |
{
|
|
1583 |
aInfoV1->iAlternatingCall = iMobileCallInfo.iAlternatingCall;
|
|
1584 |
aInfoV1->iRemoteParty = iMobileCallInfo.iRemoteParty;
|
|
1585 |
aInfoV1->iForwarded = iMobileCallInfo.iForwarded;
|
|
1586 |
aInfoV1->iDialledParty = iMobileCallInfo.iDialledParty;
|
|
1587 |
aInfoV1->iService = iMobileCallInfo.iService;
|
|
1588 |
aInfoV1->iValid |= iMobileCallInfo.iValid;
|
|
1589 |
|
|
1590 |
return KErrNone;
|
|
1591 |
}
|
|
1592 |
|
|
1593 |
// ---------------------------------------------------------------------------
|
|
1594 |
// CMmCallGsmWcdmaExt::FillMobileCallInfoV3
|
|
1595 |
// Fills the GSM specific Mobile Call Information in the
|
|
1596 |
// RMobileCall::TMobileCallInfoV3 given as parameter.
|
|
1597 |
// (other items were commented in a header).
|
|
1598 |
// ---------------------------------------------------------------------------
|
|
1599 |
//
|
|
1600 |
TInt CMmCallGsmWcdmaExt::FillMobileCallInfoV3(
|
|
1601 |
RMobileCall::TMobileCallInfoV3* aInfoV3 )
|
|
1602 |
{
|
|
1603 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::FillMobileCallInfoV3 - extensionid=%d", aInfoV3->ExtensionId() );
|
|
1604 |
|
|
1605 |
// V3 info parameters
|
|
1606 |
aInfoV3->iSecurity = iMobileCallInfo.iSecurity;
|
|
1607 |
|
|
1608 |
return KErrNone;
|
|
1609 |
}
|
|
1610 |
// ---------------------------------------------------------------------------
|
|
1611 |
// CMmCallGsmWcdmaExt::FillMobileCallInfoV7
|
|
1612 |
// Fills the GSM specific Mobile Call Information in the
|
|
1613 |
// RMobileCall::TMobileCallInfoV7 given as parameter.
|
|
1614 |
// (other items were commented in a header).
|
|
1615 |
// ---------------------------------------------------------------------------
|
|
1616 |
//
|
|
1617 |
TInt CMmCallGsmWcdmaExt::FillMobileCallInfoV7(
|
|
1618 |
RMobileCall::TMobileCallInfoV7* aInfoV7 )
|
|
1619 |
{
|
|
1620 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::FillMobileCallInfoV7 - extensionid=%d", aInfoV7->ExtensionId() );
|
|
1621 |
|
|
1622 |
// V7 info parameters
|
|
1623 |
// TCallParamOrigin iCallParamOrigin;
|
|
1624 |
aInfoV7->iCallParamOrigin = iMobileCallInfo.iCallParamOrigin;
|
|
1625 |
// TIconId iIconId;
|
|
1626 |
aInfoV7->iIconId.iIdentifier = iMobileCallInfo.iIconId.iIdentifier;
|
|
1627 |
aInfoV7->iIconId.iQualifier = iMobileCallInfo.iIconId.iQualifier;
|
|
1628 |
// TAlphaIdBuf iAlphaId;
|
|
1629 |
aInfoV7->iAlphaId = iMobileCallInfo.iAlphaId;
|
|
1630 |
// TBool iParamsCallControlModified;
|
|
1631 |
aInfoV7->iParamsCallControlModified = iMobileCallInfo.iParamsCallControlModified;
|
|
1632 |
|
|
1633 |
return KErrNone;
|
|
1634 |
}
|
|
1635 |
|
|
1636 |
// ---------------------------------------------------------------------------
|
|
1637 |
// CMmCallGsmWcdmaExt::FillMobileCallInfoV8
|
|
1638 |
// Fills the GSM specific Mobile Call Information in the
|
|
1639 |
// RMobileCall::TMobileCallInfoV8 given as parameter.
|
|
1640 |
// (other items were commented in a header).
|
|
1641 |
// ---------------------------------------------------------------------------
|
|
1642 |
//
|
|
1643 |
TInt CMmCallGsmWcdmaExt::FillMobileCallInfoV8(
|
|
1644 |
RMobileCall::TMobileCallInfoV8* aInfoV8 )
|
|
1645 |
{
|
|
1646 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::FillMobileCallInfoV8 - extensionid=%d", aInfoV8->ExtensionId() );
|
|
1647 |
|
|
1648 |
// V8 info parameters
|
|
1649 |
aInfoV8->iSubAddress = iMobileCallInfo.iSubAddress;
|
|
1650 |
aInfoV8->iBearerCap1 = iMobileCallInfo.iBearerCap1;
|
|
1651 |
aInfoV8->iBearerCap2 = iMobileCallInfo.iBearerCap2;
|
|
1652 |
aInfoV8->iBCRepeatIndicator = iMobileCallInfo.iBCRepeatIndicator;
|
|
1653 |
|
|
1654 |
return KErrNone;
|
|
1655 |
}
|
|
1656 |
|
|
1657 |
|
|
1658 |
|
|
1659 |
// ---------------------------------------------------------------------------
|
|
1660 |
// CMmCallGsmWcdmaExt::GetRemotePartyInfo
|
|
1661 |
// Gets remote party information
|
|
1662 |
// (other items were commented in a header).
|
|
1663 |
// ---------------------------------------------------------------------------
|
|
1664 |
//
|
|
1665 |
TInt CMmCallGsmWcdmaExt::GetRemotePartyInfo(
|
|
1666 |
RMobileCall::TMobileCallRemotePartyInfoV1Pckg* aInfoV1Pckg )
|
|
1667 |
{
|
|
1668 |
RMobileCall::TMobileCallRemotePartyInfoV1Pckg* infoPckgV1 =
|
|
1669 |
reinterpret_cast<RMobileCall::TMobileCallRemotePartyInfoV1Pckg*>( aInfoV1Pckg );
|
|
1670 |
RMobileCall::TMobileCallRemotePartyInfoV1& infoV1 = ( *infoPckgV1 )();
|
|
1671 |
|
|
1672 |
infoV1 = iMobileCallInfo.iRemoteParty;
|
|
1673 |
|
|
1674 |
return KErrNone;
|
|
1675 |
}
|
|
1676 |
|
|
1677 |
// ---------------------------------------------------------------------------
|
|
1678 |
// CMmCallGsmWcdmaExt::SetRfState
|
|
1679 |
// This method sets RF state
|
|
1680 |
// (other items were commented in a header).
|
|
1681 |
// ---------------------------------------------------------------------------
|
|
1682 |
//
|
|
1683 |
void CMmCallGsmWcdmaExt::SetRfState(
|
|
1684 |
TRfStateInfo aMtcState,
|
|
1685 |
MCtsySsmPluginCallback* aSsmPluginCallback,
|
|
1686 |
TCtsySsmCallbackData& aCallbackData )
|
|
1687 |
{
|
|
1688 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::SetRfState - state=%d", aMtcState );
|
|
1689 |
|
|
1690 |
TInt err ( KErrNotSupported );
|
|
1691 |
if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KEmergencyCallsEnabledInOfflineMode ) == KFeatureSupported) )
|
|
1692 |
{
|
|
1693 |
if (!iSystemStatePluginHandler)
|
|
1694 |
{
|
|
1695 |
TRAP(err, iSystemStatePluginHandler = CCtsySystemStatePluginHandler::NewL());
|
|
1696 |
if(KErrNone != err)
|
|
1697 |
{
|
|
1698 |
// pass this error to callback
|
|
1699 |
SsmPluginCallback(err, aCallbackData);
|
|
1700 |
return;
|
|
1701 |
}
|
|
1702 |
}
|
|
1703 |
|
|
1704 |
if ( ERfsStateInfoNormal == aMtcState )
|
|
1705 |
{
|
|
1706 |
iSystemStatePluginHandler->ActivateRfForEmergencyCall(aSsmPluginCallback, aCallbackData);
|
|
1707 |
}
|
|
1708 |
else if ( ERfsStateInfoInactive == aMtcState )
|
|
1709 |
{
|
|
1710 |
iSystemStatePluginHandler->DeactivateRfAfterEmergencyCall();
|
|
1711 |
}
|
|
1712 |
else
|
|
1713 |
{
|
|
1714 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::SetRfState - bad state");
|
|
1715 |
// pass this error to callback
|
|
1716 |
SsmPluginCallback (KErrArgument, aCallbackData);
|
|
1717 |
}
|
|
1718 |
}
|
|
1719 |
else
|
|
1720 |
{
|
|
1721 |
SsmPluginCallback (KErrNotSupported, aCallbackData);
|
|
1722 |
}
|
|
1723 |
}
|
|
1724 |
|
|
1725 |
// ---------------------------------------------------------------------------
|
|
1726 |
// CMmCallGsmWcdmaExt::SetMobileCallData
|
|
1727 |
// This method sets GSM specific mobile call information
|
|
1728 |
// (other items were commented in a header).
|
|
1729 |
// ---------------------------------------------------------------------------
|
|
1730 |
//
|
|
1731 |
void CMmCallGsmWcdmaExt::SetMobileCallData(
|
|
1732 |
CMmDataPackage* aDataPackage,
|
|
1733 |
RMobileCall::TMobileCallDirection aCallDirection )
|
|
1734 |
{
|
|
1735 |
RMobileCall::TMobileCallInfoV1* mobileCallInfo;
|
|
1736 |
aDataPackage->UnPackData( &mobileCallInfo );
|
|
1737 |
|
|
1738 |
// get extensionid from the recieved data
|
|
1739 |
TInt extensionId( mobileCallInfo->ExtensionId() );
|
|
1740 |
|
|
1741 |
//Set call direction info
|
|
1742 |
iMobileCallInfo.iRemoteParty.iDirection = aCallDirection;
|
|
1743 |
|
|
1744 |
//call mode should be always available
|
|
1745 |
iMobileCallInfo.iService = mobileCallInfo->iService;
|
|
1746 |
|
|
1747 |
//is this an emergency call
|
|
1748 |
if ( RMobileCall::KCallEmergency & mobileCallInfo->iValid )
|
|
1749 |
{
|
|
1750 |
iMobileCallInfo.iEmergency = mobileCallInfo->iEmergency;
|
|
1751 |
}
|
|
1752 |
|
|
1753 |
if ( 0 < mobileCallInfo->iRemoteParty.iRemoteNumber.iTelNumber.Length() &&
|
|
1754 |
( RMobilePhone::KMaxMobileTelNumberSize >=
|
|
1755 |
mobileCallInfo->iRemoteParty.iRemoteNumber.iTelNumber.Length() ) )
|
|
1756 |
{
|
|
1757 |
iMobileCallInfo.iRemoteParty.iRemoteNumber.iTelNumber.Zero();
|
|
1758 |
iMobileCallInfo.iRemoteParty.iRemoteNumber.iTelNumber.Copy(
|
|
1759 |
mobileCallInfo->iRemoteParty.iRemoteNumber.iTelNumber );
|
|
1760 |
|
|
1761 |
iMobileCallInfo.iRemoteParty.iRemoteNumber.iNumberPlan =
|
|
1762 |
mobileCallInfo->iRemoteParty.iRemoteNumber.iNumberPlan;
|
|
1763 |
iMobileCallInfo.iRemoteParty.iRemoteNumber.iTypeOfNumber =
|
|
1764 |
mobileCallInfo->iRemoteParty.iRemoteNumber.iTypeOfNumber;
|
|
1765 |
|
|
1766 |
iMobileCallInfo.iRemoteParty.iRemoteIdStatus =
|
|
1767 |
mobileCallInfo->iRemoteParty.iRemoteIdStatus;
|
|
1768 |
}
|
|
1769 |
|
|
1770 |
if ( RMobileCall::KCallRemoteParty & mobileCallInfo->iValid )
|
|
1771 |
{
|
|
1772 |
iMobileCallInfo.iRemoteParty.iRemoteIdStatus =
|
|
1773 |
mobileCallInfo->iRemoteParty.iRemoteIdStatus;
|
|
1774 |
}
|
|
1775 |
|
|
1776 |
if ( 0 < mobileCallInfo->iRemoteParty.iCallingName.Length() &&
|
|
1777 |
( RMobileCall::KCallingNameSize >=
|
|
1778 |
mobileCallInfo->iRemoteParty.iCallingName.Length() ) )
|
|
1779 |
{
|
|
1780 |
iMobileCallInfo.iRemoteParty.iCallingName.Zero();
|
|
1781 |
iMobileCallInfo.iRemoteParty.iCallingName.Copy(
|
|
1782 |
mobileCallInfo->iRemoteParty.iCallingName );
|
|
1783 |
|
|
1784 |
iMobileCallInfo.iRemoteParty.iRemoteIdStatus =
|
|
1785 |
mobileCallInfo->iRemoteParty.iRemoteIdStatus;
|
|
1786 |
}
|
|
1787 |
|
|
1788 |
if ( 0 < mobileCallInfo->iDialledParty.iTelNumber.Length() &&
|
|
1789 |
( RMobilePhone::KMaxMobileTelNumberSize >=
|
|
1790 |
mobileCallInfo->iDialledParty.iTelNumber.Length() ) )
|
|
1791 |
{
|
|
1792 |
iMobileCallInfo.iDialledParty.iTelNumber.Zero();
|
|
1793 |
iMobileCallInfo.iDialledParty.iTelNumber.Copy(
|
|
1794 |
mobileCallInfo->iDialledParty.iTelNumber );
|
|
1795 |
|
|
1796 |
iMobileCallInfo.iDialledParty.iNumberPlan =
|
|
1797 |
mobileCallInfo->iDialledParty.iNumberPlan;
|
|
1798 |
iMobileCallInfo.iDialledParty.iTypeOfNumber =
|
|
1799 |
mobileCallInfo->iDialledParty.iTypeOfNumber;
|
|
1800 |
}
|
|
1801 |
|
|
1802 |
if ( RMobileCall::KCallForwarded & mobileCallInfo->iValid )
|
|
1803 |
{
|
|
1804 |
iMobileCallInfo.iForwarded = mobileCallInfo->iForwarded;
|
|
1805 |
}
|
|
1806 |
|
|
1807 |
if ( RMobileCall::KCallAlternating & mobileCallInfo->iValid )
|
|
1808 |
{
|
|
1809 |
iMobileCallInfo.iAlternatingCall = mobileCallInfo->iAlternatingCall;
|
|
1810 |
}
|
|
1811 |
|
|
1812 |
|
|
1813 |
// TMobileCallInfoV3
|
|
1814 |
if ( (KETelExtMultimodeV3 == extensionId) ||
|
|
1815 |
(KEtelExtMultimodeV7 == extensionId) ||
|
|
1816 |
(KEtelExtMultimodeV8 == extensionId))
|
|
1817 |
{
|
|
1818 |
|
|
1819 |
RMobileCall::TMobileCallInfoV3* mobileCallInfoV3 = static_cast<RMobileCall::TMobileCallInfoV3*>(mobileCallInfo);
|
|
1820 |
|
|
1821 |
if(RMobileCall::KCallSecurity & mobileCallInfo->iValid)
|
|
1822 |
{
|
|
1823 |
// V3 parameters
|
|
1824 |
iMobileCallInfo.iSecurity = mobileCallInfoV3->iSecurity;
|
|
1825 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::SetMobileCallData V3 params copied");
|
|
1826 |
}
|
|
1827 |
}
|
|
1828 |
|
|
1829 |
// TMobileCallInfoV7
|
|
1830 |
if ( (KEtelExtMultimodeV7 == extensionId) || (KEtelExtMultimodeV8 == extensionId))
|
|
1831 |
{
|
|
1832 |
|
|
1833 |
// TMobileCallInfoV7 params
|
|
1834 |
|
|
1835 |
RMobileCall::TMobileCallInfoV7* mobileCallInfoV7 = static_cast<RMobileCall::TMobileCallInfoV7*>(mobileCallInfo);
|
|
1836 |
|
|
1837 |
if(RMobileCall::KCallParamOrigin & mobileCallInfo->iValid)
|
|
1838 |
{
|
|
1839 |
// TCallParamOrigin iCallParamOrigin;
|
|
1840 |
iMobileCallInfo.iCallParamOrigin = mobileCallInfoV7->iCallParamOrigin;
|
|
1841 |
}
|
|
1842 |
|
|
1843 |
if(RMobileCall::KCallIconId & mobileCallInfo->iValid)
|
|
1844 |
{
|
|
1845 |
// TIconId iIconId;
|
|
1846 |
iMobileCallInfo.iIconId.iIdentifier = mobileCallInfoV7->iIconId.iIdentifier;
|
|
1847 |
iMobileCallInfo.iIconId.iQualifier = mobileCallInfoV7->iIconId.iQualifier;
|
|
1848 |
}
|
|
1849 |
|
|
1850 |
if(RMobileCall::KCallAlphaId & mobileCallInfo->iValid)
|
|
1851 |
{
|
|
1852 |
// TAlphaIdBuf iAlphaId;
|
|
1853 |
iMobileCallInfo.iAlphaId.Zero();
|
|
1854 |
iMobileCallInfo.iAlphaId.Copy( mobileCallInfoV7->iAlphaId );
|
|
1855 |
}
|
|
1856 |
|
|
1857 |
if(RMobileCall::KCallParamsCallControlModified & mobileCallInfo->iValid)
|
|
1858 |
{
|
|
1859 |
// TBool iParamsCallControlModified;
|
|
1860 |
iMobileCallInfo.iParamsCallControlModified = mobileCallInfoV7->iParamsCallControlModified;
|
|
1861 |
}
|
|
1862 |
|
|
1863 |
|
|
1864 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::SetMobileCallData V7 params copied");
|
|
1865 |
}
|
|
1866 |
|
|
1867 |
// TMobileCallInfoV8
|
|
1868 |
if ( KEtelExtMultimodeV8 == extensionId )
|
|
1869 |
{
|
|
1870 |
// TMobileCallInfoV8 params
|
|
1871 |
|
|
1872 |
RMobileCall::TMobileCallInfoV8* mobileCallInfoV8 = static_cast<RMobileCall::TMobileCallInfoV8*>(mobileCallInfo);
|
|
1873 |
|
|
1874 |
|
|
1875 |
if(RMobileCall::KCallSubAddress & mobileCallInfo->iValid)
|
|
1876 |
{
|
|
1877 |
iMobileCallInfo.iSubAddress = mobileCallInfoV8->iSubAddress;
|
|
1878 |
}
|
|
1879 |
|
|
1880 |
if(RMobileCall::KCallBearerCap1 & mobileCallInfo->iValid)
|
|
1881 |
{
|
|
1882 |
iMobileCallInfo.iBearerCap1 = mobileCallInfoV8->iBearerCap1;
|
|
1883 |
}
|
|
1884 |
|
|
1885 |
if(RMobileCall::KCallBearerCap2 & mobileCallInfo->iValid)
|
|
1886 |
{
|
|
1887 |
iMobileCallInfo.iBearerCap2 = mobileCallInfoV8->iBearerCap2;
|
|
1888 |
}
|
|
1889 |
|
|
1890 |
if(RMobileCall::KCallBCRepeatIndicator & mobileCallInfo->iValid)
|
|
1891 |
{
|
|
1892 |
iMobileCallInfo.iBCRepeatIndicator = mobileCallInfoV8->iBCRepeatIndicator;
|
|
1893 |
}
|
|
1894 |
|
|
1895 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::SetMobileCallData V8 params copied");
|
|
1896 |
}
|
|
1897 |
|
|
1898 |
//update validity flags
|
|
1899 |
iMobileCallInfo.iValid |= mobileCallInfo->iValid;
|
|
1900 |
|
|
1901 |
}
|
|
1902 |
|
|
1903 |
// CSD related methods
|
|
1904 |
|
|
1905 |
// ---------------------------------------------------------------------------
|
|
1906 |
// CMmCallGsmWcdmaExt::GetMobileDataCallCapsV1
|
|
1907 |
// Return GSM specific data call capabilities (V1).
|
|
1908 |
// (other items were commented in a header).
|
|
1909 |
// ---------------------------------------------------------------------------
|
|
1910 |
//
|
|
1911 |
void CMmCallGsmWcdmaExt::GetMobileDataCallCapsV1(
|
|
1912 |
RMobileCall::TMobileCallDataCapsV1& aCallDataCapsV1 )
|
|
1913 |
{
|
|
1914 |
aCallDataCapsV1 = *iDataCallCaps;
|
|
1915 |
}
|
|
1916 |
|
|
1917 |
// ---------------------------------------------------------------------------
|
|
1918 |
// CMmCallGsmWcdmaExt::ReceivedMobileDataCallCaps
|
|
1919 |
// Received GSM specific data call capabilities.
|
|
1920 |
// (other items were commented in a header).
|
|
1921 |
// ---------------------------------------------------------------------------
|
|
1922 |
//
|
|
1923 |
void CMmCallGsmWcdmaExt::ReceivedMobileDataCallCaps(
|
|
1924 |
RMobileCall::TMobileCallDataCapsV1* aCaps )
|
|
1925 |
{
|
|
1926 |
*iDataCallCaps = *aCaps;
|
|
1927 |
}
|
|
1928 |
|
|
1929 |
// ---------------------------------------------------------------------------
|
|
1930 |
// CMmCallGsmWcdmaExt::GetBearerServiceInfo
|
|
1931 |
// Return GSM specific bearer service info.
|
|
1932 |
// (other items were commented in a header).
|
|
1933 |
// ---------------------------------------------------------------------------
|
|
1934 |
//
|
|
1935 |
TInt CMmCallGsmWcdmaExt::GetBearerServiceInfo(
|
|
1936 |
RCall::TBearerService* aBearerService )
|
|
1937 |
{
|
|
1938 |
*aBearerService = iBearerService;
|
|
1939 |
|
|
1940 |
return KErrNone;
|
|
1941 |
}
|
|
1942 |
|
|
1943 |
// ---------------------------------------------------------------------------
|
|
1944 |
// CMmCallGsmWcdmaExt::ReceivedBearerServiceInfo
|
|
1945 |
// Copy received bearer service info.
|
|
1946 |
// (other items were commented in a header).
|
|
1947 |
// ---------------------------------------------------------------------------
|
|
1948 |
//
|
|
1949 |
void CMmCallGsmWcdmaExt::ReceivedBearerServiceInfo(
|
|
1950 |
RCall::TBearerService aBearerService )
|
|
1951 |
{
|
|
1952 |
iBearerService = aBearerService;
|
|
1953 |
}
|
|
1954 |
|
|
1955 |
// ---------------------------------------------------------------------------
|
|
1956 |
// CMmCallGsmWcdmaExt::SetDynamicHscsdParamsL
|
|
1957 |
// Sets GSM specific HSCSD parameters into extension.
|
|
1958 |
// (other items were commented in a header).
|
|
1959 |
// ---------------------------------------------------------------------------
|
|
1960 |
//
|
|
1961 |
TInt CMmCallGsmWcdmaExt::SetDynamicHscsdParamsL(
|
|
1962 |
RMobileCall::TMobileCallAiur* aAiur,
|
|
1963 |
TInt* aRxTimeslots )
|
|
1964 |
{
|
|
1965 |
TInt ret( KErrNone );
|
|
1966 |
|
|
1967 |
// Check if the HSCSD call is ok
|
|
1968 |
if ( iHSCSDParams )
|
|
1969 |
{
|
|
1970 |
iHSCSDParams->iWantedAiur = *aAiur;
|
|
1971 |
iHSCSDParams->iWantedRxTimeSlots = *aRxTimeslots;
|
|
1972 |
|
|
1973 |
//Create package
|
|
1974 |
CCallDataPackage package;
|
|
1975 |
//Set call id and call mode
|
|
1976 |
package.SetCallIdAndMode(
|
|
1977 |
iMmCallTsy->CallId(), iSymbianCallMode );
|
|
1978 |
//Pack call parameters and mobile call info
|
|
1979 |
package.PackData( iHSCSDParams );
|
|
1980 |
//Send request to the Domestic OS layer.
|
|
1981 |
ret = iMessageManager->HandleRequestL(
|
|
1982 |
EMobileCallSetDynamicHscsdParams, &package );
|
|
1983 |
|
|
1984 |
iInformationReceived = EFalse;
|
|
1985 |
}
|
|
1986 |
else
|
|
1987 |
{
|
|
1988 |
ret = KErrNotFound;
|
|
1989 |
}
|
|
1990 |
|
|
1991 |
return ret;
|
|
1992 |
}
|
|
1993 |
|
|
1994 |
// ---------------------------------------------------------------------------
|
|
1995 |
// CMmCallGsmWcdmaExt::GetCurrentHscsdInfo
|
|
1996 |
// Return GSM specific current HSCSD info.
|
|
1997 |
// (other items were commented in a header).
|
|
1998 |
// ---------------------------------------------------------------------------
|
|
1999 |
//
|
|
2000 |
TInt CMmCallGsmWcdmaExt::GetCurrentHscsdInfo(
|
|
2001 |
TDes8* aHSCSDInfo )
|
|
2002 |
{
|
|
2003 |
TInt ret( KErrNone );
|
|
2004 |
|
|
2005 |
if ( iInformationReceived )
|
|
2006 |
{
|
|
2007 |
// Check if current HSCSD info is valid!
|
|
2008 |
if ( EDataCallModeHscsd == iDataCallMode &&
|
|
2009 |
iCurrentHSCSDInfo != NULL )
|
|
2010 |
{
|
|
2011 |
// Check if aHSCSDInfo parameter descriptor size is valid
|
|
2012 |
if ( sizeof(RMobilePhone::TMultimodeTypePckg) <= aHSCSDInfo->Length() )
|
|
2013 |
{
|
|
2014 |
// using base class to solve correct info version
|
|
2015 |
RMobilePhone::TMultimodeTypePckg* infoParamsPckg =
|
|
2016 |
reinterpret_cast<RMobilePhone::TMultimodeTypePckg*>(
|
|
2017 |
aHSCSDInfo );
|
|
2018 |
|
|
2019 |
RMobilePhone::TMultimodeType& infoParams = ( *infoParamsPckg )();
|
|
2020 |
|
|
2021 |
// get extensionid from the recieved data
|
|
2022 |
TInt extensionId( infoParams.ExtensionId() );
|
|
2023 |
|
|
2024 |
if (KETelExtMultimodeV1 == extensionId )
|
|
2025 |
{
|
|
2026 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::GetCurrentHscsdInfo - KETelMobileHscsdCallParamsV1");
|
|
2027 |
RMobileCall::TMobileCallHscsdInfoV1Pckg* hscsdInfoPckg =
|
|
2028 |
REINTERPRET_CAST( RMobileCall::TMobileCallHscsdInfoV1Pckg*,
|
|
2029 |
aHSCSDInfo );
|
|
2030 |
RMobileCall::TMobileCallHscsdInfoV1& hscsdInfo =
|
|
2031 |
( *hscsdInfoPckg )();
|
|
2032 |
|
|
2033 |
// Fill V1 information
|
|
2034 |
hscsdInfo.iAiur = iCurrentHSCSDInfo->iAiur;
|
|
2035 |
hscsdInfo.iCodings = iCurrentHSCSDInfo->iCodings;
|
|
2036 |
hscsdInfo.iRxTimeSlots = iCurrentHSCSDInfo->iRxTimeSlots;
|
|
2037 |
hscsdInfo.iTxTimeSlots = iCurrentHSCSDInfo->iTxTimeSlots;
|
|
2038 |
}
|
|
2039 |
|
|
2040 |
else if (KEtelExtMultimodeV7 == extensionId )
|
|
2041 |
{
|
|
2042 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::GetCurrentHscsdInfo - KETelMobileHscsdCallParamsV7");
|
|
2043 |
RMobileCall::TMobileCallHscsdInfoV7Pckg* hscsdInfoPckg7 =
|
|
2044 |
( RMobileCall::TMobileCallHscsdInfoV7Pckg* )aHSCSDInfo;
|
|
2045 |
RMobileCall::TMobileCallHscsdInfoV7& hscsdInfoV7 =
|
|
2046 |
( *hscsdInfoPckg7 )();
|
|
2047 |
|
|
2048 |
// Fill V1 information
|
|
2049 |
hscsdInfoV7.iAiur = iCurrentHSCSDInfo->iAiur;
|
|
2050 |
hscsdInfoV7.iCodings = iCurrentHSCSDInfo->iCodings;
|
|
2051 |
hscsdInfoV7.iRxTimeSlots = iCurrentHSCSDInfo->iRxTimeSlots;
|
|
2052 |
hscsdInfoV7.iTxTimeSlots = iCurrentHSCSDInfo->iTxTimeSlots;
|
|
2053 |
|
|
2054 |
// Fill V7 information
|
|
2055 |
hscsdInfoV7.iAlphaId = iCurrentHSCSDInfo->iAlphaId;
|
|
2056 |
hscsdInfoV7.iCallParamOrigin = iCurrentHSCSDInfo->iCallParamOrigin;
|
|
2057 |
hscsdInfoV7.iIconId.iIdentifier =
|
|
2058 |
iCurrentHSCSDInfo->iIconId.iIdentifier;
|
|
2059 |
hscsdInfoV7.iIconId.iQualifier =
|
|
2060 |
iCurrentHSCSDInfo->iIconId.iQualifier;
|
|
2061 |
hscsdInfoV7.iParamsCallControlModified =
|
|
2062 |
iCurrentHSCSDInfo->iParamsCallControlModified;
|
|
2063 |
}
|
|
2064 |
|
|
2065 |
else if (KEtelExtMultimodeV8 == extensionId )
|
|
2066 |
{
|
|
2067 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::GetCurrentHscsdInfo - KETelMobileHscsdCallParamsV8");
|
|
2068 |
RMobileCall::TMobileCallHscsdInfoV8Pckg* hscsdInfoPckg8 =
|
|
2069 |
( RMobileCall::TMobileCallHscsdInfoV8Pckg* )aHSCSDInfo;
|
|
2070 |
RMobileCall::TMobileCallHscsdInfoV8& hscsdInfoV8 =
|
|
2071 |
( *hscsdInfoPckg8 )();
|
|
2072 |
|
|
2073 |
// Fill V1 information
|
|
2074 |
hscsdInfoV8.iAiur = iCurrentHSCSDInfo->iAiur;
|
|
2075 |
hscsdInfoV8.iCodings = iCurrentHSCSDInfo->iCodings;
|
|
2076 |
hscsdInfoV8.iRxTimeSlots = iCurrentHSCSDInfo->iRxTimeSlots;
|
|
2077 |
hscsdInfoV8.iTxTimeSlots = iCurrentHSCSDInfo->iTxTimeSlots;
|
|
2078 |
|
|
2079 |
// Fill V7 information
|
|
2080 |
hscsdInfoV8.iAlphaId = iCurrentHSCSDInfo->iAlphaId;
|
|
2081 |
hscsdInfoV8.iCallParamOrigin = iCurrentHSCSDInfo->iCallParamOrigin;
|
|
2082 |
hscsdInfoV8.iIconId.iIdentifier =
|
|
2083 |
iCurrentHSCSDInfo->iIconId.iIdentifier;
|
|
2084 |
hscsdInfoV8.iIconId.iQualifier =
|
|
2085 |
iCurrentHSCSDInfo->iIconId.iQualifier;
|
|
2086 |
hscsdInfoV8.iParamsCallControlModified =
|
|
2087 |
iCurrentHSCSDInfo->iParamsCallControlModified;
|
|
2088 |
|
|
2089 |
// Fill V8 information
|
|
2090 |
hscsdInfoV8.iBCRepeatIndicator = iCurrentHSCSDInfo->iBCRepeatIndicator;
|
|
2091 |
hscsdInfoV8.iBearerCap1 = iCurrentHSCSDInfo->iBearerCap1;
|
|
2092 |
hscsdInfoV8.iBearerCap2 = iCurrentHSCSDInfo->iBearerCap2;
|
|
2093 |
hscsdInfoV8.iSubAddress = iCurrentHSCSDInfo->iSubAddress;
|
|
2094 |
}
|
|
2095 |
else
|
|
2096 |
{
|
|
2097 |
ret = KErrArgument;
|
|
2098 |
}
|
|
2099 |
}
|
|
2100 |
else
|
|
2101 |
{
|
|
2102 |
ret = KErrArgument;
|
|
2103 |
}
|
|
2104 |
}
|
|
2105 |
|
|
2106 |
// Not found, return error!
|
|
2107 |
else
|
|
2108 |
{
|
|
2109 |
ret = KErrEtelCallNotActive;
|
|
2110 |
}
|
|
2111 |
}
|
|
2112 |
else
|
|
2113 |
{
|
|
2114 |
ret = KErrNotReady;
|
|
2115 |
}
|
|
2116 |
|
|
2117 |
return ret;
|
|
2118 |
}
|
|
2119 |
|
|
2120 |
// ---------------------------------------------------------------------------
|
|
2121 |
// CMmCallGsmWcdmaExt::DialDataCallL
|
|
2122 |
// Dial method for data calls!
|
|
2123 |
// (other items were commented in a header).
|
|
2124 |
// ---------------------------------------------------------------------------
|
|
2125 |
//
|
|
2126 |
TInt CMmCallGsmWcdmaExt::DialDataCallL(
|
|
2127 |
RMobilePhone::TMobileService aCallMode,
|
|
2128 |
const TDesC8* aCallParams,
|
|
2129 |
const TDesC* aTelNumber )
|
|
2130 |
{
|
|
2131 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialDataCallL");
|
|
2132 |
TFLOGSTRING2("TSY: CMmCallGsmWcdmaExt::DialDataCallL aCallMode: %d", aCallMode);
|
|
2133 |
|
|
2134 |
iMobileCallInfo.iDialledParty.iTelNumber.Copy( *aTelNumber );
|
|
2135 |
iMobileCallInfo.iDialledParty.iNumberPlan =
|
|
2136 |
RMobilePhone::EUnknownNumberingPlan;
|
|
2137 |
iMobileCallInfo.iDialledParty.iTypeOfNumber =
|
|
2138 |
RMobilePhone::EUnknownNumber;
|
|
2139 |
iMobileCallInfo.iService = aCallMode;
|
|
2140 |
iMobileCallInfo.iValid |= RMobileCall::KCallDialledParty;
|
|
2141 |
iMobileCallInfo.iValid |= RMobileCall::KCallAlternating;
|
|
2142 |
iMobileCallInfo.iAlternatingCall = RMobilePhone::EAlternatingModeUnspecified;
|
|
2143 |
TBool defaultParams(false);
|
|
2144 |
if(aCallParams->Length() != 0)
|
|
2145 |
{
|
|
2146 |
RCall::TCallParamsPckg* paramsPckg =
|
|
2147 |
reinterpret_cast<RCall::TCallParamsPckg*>(
|
|
2148 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2149 |
|
|
2150 |
RCall::TCallParams& dataParams = (*paramsPckg)();
|
|
2151 |
|
|
2152 |
if ( ( RMobileCall::KETelMobileDataCallParamsV1 ==
|
|
2153 |
dataParams.ExtensionId() ) ||
|
|
2154 |
( RMobileCall::KETelMobileDataCallParamsV2 ==
|
|
2155 |
dataParams.ExtensionId() ) ||
|
|
2156 |
( RMobileCall::KETelMobileDataCallParamsV8 ==
|
|
2157 |
dataParams.ExtensionId() ) ||
|
|
2158 |
( RMobileCall::KETelMobileHscsdCallParamsV1 ==
|
|
2159 |
dataParams.ExtensionId() ) ||
|
|
2160 |
( RMobileCall::KETelMobileHscsdCallParamsV2 ==
|
|
2161 |
dataParams.ExtensionId() ) ||
|
|
2162 |
( RMobileCall::KETelMobileHscsdCallParamsV7 ==
|
|
2163 |
dataParams.ExtensionId() )||
|
|
2164 |
( RMobileCall::KETelMobileHscsdCallParamsV8 ==
|
|
2165 |
dataParams.ExtensionId()))
|
|
2166 |
{
|
|
2167 |
// Normal data call
|
|
2168 |
iDataCallMode = EDataCallModeNormal;
|
|
2169 |
RMobileCall::TMobileDataCallParamsV1Pckg* paramsPckgV1 =
|
|
2170 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV1Pckg*>(
|
|
2171 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2172 |
|
|
2173 |
RMobileCall::TMobileDataCallParamsV1& dataParamsV1 = (*paramsPckgV1)();
|
|
2174 |
//Parameter of base class TMobileCallParamsV1
|
|
2175 |
iCSDParams->iIdRestrict = dataParamsV1.iIdRestrict;
|
|
2176 |
iCSDParams->iCug = dataParamsV1.iCug;
|
|
2177 |
iCSDParams->iAutoRedial = dataParamsV1.iAutoRedial;
|
|
2178 |
|
|
2179 |
CopyMobileDataCallParams( *iCSDParams, dataParamsV1 );
|
|
2180 |
// Set iHscsdSupport initially to EFalse.
|
|
2181 |
// Normal CSD does not support HSCSD features.
|
|
2182 |
iDataCallCaps->iHscsdSupport = EFalse;
|
|
2183 |
}
|
|
2184 |
else
|
|
2185 |
{
|
|
2186 |
defaultParams = true;
|
|
2187 |
//default unknown values
|
|
2188 |
iCSDParams->iIdRestrict = RMobileCall::EIdRestrictDefault;
|
|
2189 |
iCSDParams->iCug.iExplicitInvoke = EFalse;
|
|
2190 |
iCSDParams->iCug.iCugIndex = 0xFFFF;
|
|
2191 |
iCSDParams->iCug.iSuppressPrefCug = EFalse;
|
|
2192 |
iCSDParams->iCug.iSuppressOA = EFalse;
|
|
2193 |
iCSDParams->iAutoRedial = EFalse;
|
|
2194 |
|
|
2195 |
// Normal data call
|
|
2196 |
iDataCallMode = EDataCallModeNormal;
|
|
2197 |
|
|
2198 |
// Set iHscsdSupport initially to EFalse.
|
|
2199 |
// Normal CSD does not support HSCSD features.
|
|
2200 |
iDataCallCaps->iHscsdSupport = EFalse;
|
|
2201 |
}
|
|
2202 |
|
|
2203 |
if ( RMobileCall::KETelMobileDataCallParamsV2 ==
|
|
2204 |
dataParams.ExtensionId()||
|
|
2205 |
RMobileCall::KETelMobileDataCallParamsV8 ==
|
|
2206 |
dataParams.ExtensionId())
|
|
2207 |
{
|
|
2208 |
|
|
2209 |
RMobileCall::TMobileDataCallParamsV2Pckg* paramsPckgV2 =
|
|
2210 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV2Pckg*>(
|
|
2211 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2212 |
|
|
2213 |
RMobileCall::TMobileDataCallParamsV2& dataParams2 = (*paramsPckgV2)();
|
|
2214 |
|
|
2215 |
RMobileCall::TMobileDataCallParamsV2* dataCallParamsV2 = static_cast<RMobileCall::TMobileDataCallParamsV2*>(iCSDParams);
|
|
2216 |
|
|
2217 |
|
|
2218 |
dataCallParamsV2->iBearerMode = dataParams2.iBearerMode;
|
|
2219 |
}
|
|
2220 |
|
|
2221 |
if ( RMobileCall::KETelMobileDataCallParamsV8 == dataParams.ExtensionId())
|
|
2222 |
{
|
|
2223 |
|
|
2224 |
RMobileCall::TMobileDataCallParamsV8Pckg* paramsPckgV8 =
|
|
2225 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV8Pckg*>(
|
|
2226 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2227 |
|
|
2228 |
RMobileCall::TMobileDataCallParamsV8& dataParams8 = (*paramsPckgV8)();
|
|
2229 |
|
|
2230 |
RMobileCall::TMobileDataCallParamsV8* dataCallParamsV8 = static_cast<RMobileCall::TMobileDataCallParamsV8*>(iCSDParams);
|
|
2231 |
|
|
2232 |
|
|
2233 |
dataCallParamsV8->iCallParamOrigin = dataParams8.iCallParamOrigin;
|
|
2234 |
dataCallParamsV8->iSubAddress = dataParams8.iSubAddress;
|
|
2235 |
dataCallParamsV8->iBearerCap1 = dataParams8.iBearerCap1;
|
|
2236 |
dataCallParamsV8->iBearerCap2 = dataParams8.iBearerCap2;
|
|
2237 |
dataCallParamsV8->iBCRepeatIndicator = dataParams8.iBCRepeatIndicator;
|
|
2238 |
dataCallParamsV8->iIconId.iQualifier = dataParams8.iIconId.iQualifier;
|
|
2239 |
dataCallParamsV8->iIconId.iIdentifier = dataParams8.iIconId.iIdentifier;
|
|
2240 |
dataCallParamsV8->iAlphaId = dataParams8.iAlphaId;
|
|
2241 |
|
|
2242 |
if ( dataParams8.iAlphaId.Length() > 0 )
|
|
2243 |
{
|
|
2244 |
iMobileCallInfo.iAlphaId.Copy(dataParams8.iAlphaId);
|
|
2245 |
iMobileCallInfo.iValid |= RMobileCall::KCallAlphaId;
|
|
2246 |
}
|
|
2247 |
|
|
2248 |
if ( dataParams8.iIconId.iQualifier != RMobileCall::EIconQualifierNotSet )
|
|
2249 |
{
|
|
2250 |
iMobileCallInfo.iIconId.iIdentifier = dataParams8.iIconId.iIdentifier;
|
|
2251 |
iMobileCallInfo.iIconId.iQualifier = dataParams8.iIconId.iQualifier;
|
|
2252 |
iMobileCallInfo.iValid |= RMobileCall::KCallIconId;
|
|
2253 |
}
|
|
2254 |
|
|
2255 |
if ( dataParams8.iCallParamOrigin != RMobileCall::EOriginatorUnknown)
|
|
2256 |
{
|
|
2257 |
iMobileCallInfo.iCallParamOrigin = dataParams8.iCallParamOrigin;
|
|
2258 |
iMobileCallInfo.iValid |= RMobileCall::KCallParamOrigin;
|
|
2259 |
}
|
|
2260 |
|
|
2261 |
}
|
|
2262 |
|
|
2263 |
if ( RMobileCall::KETelMobileHscsdCallParamsV1 == dataParams.ExtensionId() ||
|
|
2264 |
RMobileCall::KETelMobileHscsdCallParamsV2 == dataParams.ExtensionId() ||
|
|
2265 |
RMobileCall::KETelMobileHscsdCallParamsV7 == dataParams.ExtensionId() ||
|
|
2266 |
RMobileCall::KETelMobileHscsdCallParamsV8 == dataParams.ExtensionId())
|
|
2267 |
{
|
|
2268 |
// HSCSD data call
|
|
2269 |
iDataCallMode = EDataCallModeHscsd;
|
|
2270 |
RMobileCall::TMobileHscsdCallParamsV1Pckg* paramsPckgV1 =
|
|
2271 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV1Pckg*>(
|
|
2272 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2273 |
RMobileCall::TMobileHscsdCallParamsV1& hscsdParams =
|
|
2274 |
(*paramsPckgV1)();
|
|
2275 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV1*>(iHSCSDParams)) = hscsdParams;
|
|
2276 |
// Set iHscsdSupport to ETrue.
|
|
2277 |
// This call is HSCSD call and features are supported.
|
|
2278 |
iDataCallCaps->iHscsdSupport = ETrue;
|
|
2279 |
}
|
|
2280 |
|
|
2281 |
if ( RMobileCall::KETelMobileHscsdCallParamsV2 == dataParams.ExtensionId() ||
|
|
2282 |
RMobileCall::KETelMobileHscsdCallParamsV7 == dataParams.ExtensionId() ||
|
|
2283 |
RMobileCall::KETelMobileHscsdCallParamsV8 == dataParams.ExtensionId())
|
|
2284 |
{
|
|
2285 |
|
|
2286 |
RMobileCall::TMobileHscsdCallParamsV2Pckg* paramsPckgV2 =
|
|
2287 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV2Pckg*>(
|
|
2288 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2289 |
RMobileCall::TMobileHscsdCallParamsV2& hscsdParams2 =
|
|
2290 |
(*paramsPckgV2)();
|
|
2291 |
RMobileCall::TMobileHscsdCallParamsV2* hscsdCallParamsV2 = static_cast<RMobileCall::TMobileHscsdCallParamsV2*>(iHSCSDParams);
|
|
2292 |
|
|
2293 |
hscsdCallParamsV2->iBearerMode = hscsdParams2.iBearerMode;
|
|
2294 |
|
|
2295 |
}
|
|
2296 |
|
|
2297 |
if ( RMobileCall::KETelMobileHscsdCallParamsV7 == dataParams.ExtensionId() ||
|
|
2298 |
RMobileCall::KETelMobileHscsdCallParamsV8 == dataParams.ExtensionId())
|
|
2299 |
{
|
|
2300 |
|
|
2301 |
RMobileCall::TMobileHscsdCallParamsV7Pckg* paramsPckgV7 =
|
|
2302 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV7Pckg*>(
|
|
2303 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2304 |
RMobileCall::TMobileHscsdCallParamsV7& hscsdParams7 =
|
|
2305 |
(*paramsPckgV7)();
|
|
2306 |
|
|
2307 |
RMobileCall::TMobileHscsdCallParamsV7* hscsdCallParamsV7 = static_cast<RMobileCall::TMobileHscsdCallParamsV7*>(iHSCSDParams);
|
|
2308 |
|
|
2309 |
hscsdCallParamsV7->iCallParamOrigin = hscsdParams7.iCallParamOrigin;
|
|
2310 |
hscsdCallParamsV7->iIconId.iIdentifier = hscsdParams7.iIconId.iIdentifier;
|
|
2311 |
hscsdCallParamsV7->iIconId.iQualifier = hscsdParams7.iIconId.iQualifier;
|
|
2312 |
hscsdCallParamsV7->iAlphaId = hscsdParams7.iAlphaId;
|
|
2313 |
|
|
2314 |
if ( hscsdParams7.iAlphaId.Length() > 0 )
|
|
2315 |
{
|
|
2316 |
iMobileCallInfo.iAlphaId.Copy(hscsdParams7.iAlphaId);
|
|
2317 |
iMobileCallInfo.iValid |= RMobileCall::KCallAlphaId;
|
|
2318 |
}
|
|
2319 |
|
|
2320 |
if ( hscsdParams7.iIconId.iQualifier != RMobileCall::EIconQualifierNotSet )
|
|
2321 |
{
|
|
2322 |
iMobileCallInfo.iIconId.iIdentifier = hscsdParams7.iIconId.iIdentifier;
|
|
2323 |
iMobileCallInfo.iIconId.iQualifier = hscsdParams7.iIconId.iQualifier;
|
|
2324 |
iMobileCallInfo.iValid |= RMobileCall::KCallIconId;
|
|
2325 |
}
|
|
2326 |
|
|
2327 |
if ( hscsdParams7.iCallParamOrigin != RMobileCall::EOriginatorUnknown)
|
|
2328 |
{
|
|
2329 |
iMobileCallInfo.iCallParamOrigin = hscsdParams7.iCallParamOrigin;
|
|
2330 |
iMobileCallInfo.iValid |= RMobileCall::KCallParamOrigin;
|
|
2331 |
}
|
|
2332 |
}
|
|
2333 |
if ( RMobileCall::KETelMobileHscsdCallParamsV8 == dataParams.ExtensionId() )
|
|
2334 |
{
|
|
2335 |
|
|
2336 |
RMobileCall::TMobileHscsdCallParamsV8Pckg* paramsPckgV8 =
|
|
2337 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV8Pckg*>(
|
|
2338 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2339 |
RMobileCall::TMobileHscsdCallParamsV8& hscsdParams8 =
|
|
2340 |
(*paramsPckgV8)();
|
|
2341 |
|
|
2342 |
RMobileCall::TMobileHscsdCallParamsV8* hscsdCallParamsV8 = static_cast<RMobileCall::TMobileHscsdCallParamsV8*>(iHSCSDParams);
|
|
2343 |
|
|
2344 |
hscsdCallParamsV8->iSubAddress = hscsdParams8.iSubAddress;
|
|
2345 |
hscsdCallParamsV8->iBearerCap1 = hscsdParams8.iBearerCap1;
|
|
2346 |
hscsdCallParamsV8->iBearerCap2 = hscsdParams8.iBearerCap2;
|
|
2347 |
hscsdCallParamsV8->iBCRepeatIndicator = hscsdParams8.iBCRepeatIndicator;
|
|
2348 |
|
|
2349 |
|
|
2350 |
}
|
|
2351 |
}
|
|
2352 |
SetDataCaps( aCallParams );
|
|
2353 |
|
|
2354 |
//Create package
|
|
2355 |
CCallDataPackage package;
|
|
2356 |
//Set call id and call mode
|
|
2357 |
package.SetCallIdAndMode( iMmCallTsy->CallId(), aCallMode );
|
|
2358 |
if(defaultParams)
|
|
2359 |
{
|
|
2360 |
TPckg<RMobileCall::TMobileDataCallParamsV1> pckgToSend(*iCSDParams);
|
|
2361 |
package.PackData( &pckgToSend , &iMobileCallInfo );
|
|
2362 |
|
|
2363 |
}
|
|
2364 |
else
|
|
2365 |
{
|
|
2366 |
//Pack call parameters and mobile call info
|
|
2367 |
package.PackData( const_cast<TDesC8*>( aCallParams ), &iMobileCallInfo );
|
|
2368 |
}
|
|
2369 |
|
|
2370 |
if( KMultimodeCallTypeIDNoFdnCheck == iMmCallTsy->GetDialTypeId() )
|
|
2371 |
{
|
|
2372 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialDataCallL: EMobileCallDialNoFdnCheck");
|
|
2373 |
//Send request to the Domestic OS layer.
|
|
2374 |
return iMessageManager->HandleRequestL( EMobileCallDialNoFdnCheck, &package );
|
|
2375 |
}
|
|
2376 |
else
|
|
2377 |
{
|
|
2378 |
TFLOGSTRING("TSY: CMmCallGsmWcdmaExt::DialDataCallL: EEtelCallDial");
|
|
2379 |
//Send request to the Domestic OS layer.
|
|
2380 |
return iMessageManager->HandleRequestL( EEtelCallDial, &package );
|
|
2381 |
}
|
|
2382 |
|
|
2383 |
}
|
|
2384 |
|
|
2385 |
// ---------------------------------------------------------------------------
|
|
2386 |
// CMmCallGsmWcdmaExt::AnswerIncomingDataCallL
|
|
2387 |
// Answer incoming data call.
|
|
2388 |
// (other items were commented in a header).
|
|
2389 |
// ---------------------------------------------------------------------------
|
|
2390 |
//
|
|
2391 |
TInt CMmCallGsmWcdmaExt::AnswerIncomingDataCallL(
|
|
2392 |
TInt aCallId )
|
|
2393 |
{
|
|
2394 |
// Set data call caps for incoming call. The caps are unknown at this
|
|
2395 |
// point and they are set when the call is connected!
|
|
2396 |
iDataCallCaps->iServiceCaps = 0x00;
|
|
2397 |
// iDataCallCaps->iProtocolCaps = 0x00;
|
|
2398 |
iDataCallCaps->iQoSCaps = 0x00;
|
|
2399 |
iDataCallCaps->iSpeedCaps = 0x00;
|
|
2400 |
iDataCallCaps->iHscsdSupport = EFalse;
|
|
2401 |
|
|
2402 |
// Initially always normal, will be set later to HSCSD if call is HSCSD
|
|
2403 |
iDataCallMode = EDataCallModeNormal;
|
|
2404 |
|
|
2405 |
//Create package
|
|
2406 |
CCallDataPackage package;
|
|
2407 |
//Set call id and call mode
|
|
2408 |
package.SetCallIdAndMode( aCallId, iSymbianCallMode );
|
|
2409 |
|
|
2410 |
//Send request to the Domestic OS layer.
|
|
2411 |
return iMessageManager->HandleRequestL( EEtelCallAnswer, &package );
|
|
2412 |
}
|
|
2413 |
// ---------------------------------------------------------------------------
|
|
2414 |
// CMmCallGsmWcdmaExt::Connect
|
|
2415 |
// Sets correct data call attributes, depending on parameter extension.
|
|
2416 |
// (other items were commented in a header).
|
|
2417 |
// ---------------------------------------------------------------------------
|
|
2418 |
//
|
|
2419 |
void CMmCallGsmWcdmaExt::Connect(
|
|
2420 |
const TDesC8* aCallParams )
|
|
2421 |
{
|
|
2422 |
RMobileCall::TMobileDataCallParamsV1Pckg* paramsPckgV1 =
|
|
2423 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV1Pckg*>(
|
|
2424 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2425 |
RMobileCall::TMobileDataCallParamsV1& dataParams = ( *paramsPckgV1 )();
|
|
2426 |
|
|
2427 |
if ( ( RMobileCall::KETelMobileDataCallParamsV1 ==
|
|
2428 |
dataParams.ExtensionId() ) ||
|
|
2429 |
( RMobileCall::KETelMobileHscsdCallParamsV1 ==
|
|
2430 |
dataParams.ExtensionId() )||
|
|
2431 |
( RMobileCall::KETelMobileDataCallParamsV2 ==
|
|
2432 |
dataParams.ExtensionId() ) ||
|
|
2433 |
( RMobileCall::KETelMobileHscsdCallParamsV2 ==
|
|
2434 |
dataParams.ExtensionId() ) ||
|
|
2435 |
( RMobileCall::KETelMobileHscsdCallParamsV7 ==
|
|
2436 |
dataParams.ExtensionId() ) ||
|
|
2437 |
( RMobileCall::KETelMobileHscsdCallParamsV8 ==
|
|
2438 |
dataParams.ExtensionId() ) ||
|
|
2439 |
( RMobileCall::KETelMobileDataCallParamsV8 ==
|
|
2440 |
dataParams.ExtensionId() ))
|
|
2441 |
|
|
2442 |
{
|
|
2443 |
// Normal data call
|
|
2444 |
iDataCallMode = EDataCallModeNormal;
|
|
2445 |
CopyMobileDataCallParams( *iCSDParams, dataParams );
|
|
2446 |
// Set iHscsdSupport initially to EFalse.
|
|
2447 |
// Normal CSD does not support HSCSD features.
|
|
2448 |
iDataCallCaps->iHscsdSupport = EFalse;
|
|
2449 |
}
|
|
2450 |
|
|
2451 |
if ((RMobileCall::KETelMobileDataCallParamsV2 == dataParams.ExtensionId())||
|
|
2452 |
(RMobileCall::KETelMobileDataCallParamsV8 == dataParams.ExtensionId()))
|
|
2453 |
{
|
|
2454 |
RMobileCall::TMobileDataCallParamsV2Pckg* dataParamsPckgV2 = (RMobileCall::TMobileDataCallParamsV2Pckg*)aCallParams;
|
|
2455 |
RMobileCall::TMobileDataCallParamsV2& dataParamsV2 = (*dataParamsPckgV2)();
|
|
2456 |
|
|
2457 |
RMobileCall::TMobileDataCallParamsV2* dataCallParamsV2 = static_cast<RMobileCall::TMobileDataCallParamsV2*>(iCSDParams);
|
|
2458 |
|
|
2459 |
dataCallParamsV2->iBearerMode = dataParamsV2.iBearerMode;
|
|
2460 |
}
|
|
2461 |
|
|
2462 |
if (RMobileCall::KETelMobileDataCallParamsV8 == dataParams.ExtensionId())
|
|
2463 |
{
|
|
2464 |
RMobileCall::TMobileDataCallParamsV8Pckg* dataParamsPckgV8 = (RMobileCall::TMobileDataCallParamsV8Pckg*)aCallParams;
|
|
2465 |
RMobileCall::TMobileDataCallParamsV8& dataParamsV8 = (*dataParamsPckgV8)();
|
|
2466 |
|
|
2467 |
RMobileCall::TMobileDataCallParamsV8* dataCallParamsV8 = static_cast<RMobileCall::TMobileDataCallParamsV8*>(iCSDParams);
|
|
2468 |
|
|
2469 |
dataCallParamsV8->iCallParamOrigin = dataParamsV8.iCallParamOrigin;
|
|
2470 |
dataCallParamsV8->iSubAddress = dataParamsV8.iSubAddress;
|
|
2471 |
dataCallParamsV8->iBearerCap1 = dataParamsV8.iBearerCap1;
|
|
2472 |
dataCallParamsV8->iBearerCap2 = dataParamsV8.iBearerCap2;
|
|
2473 |
dataCallParamsV8->iBCRepeatIndicator = dataParamsV8.iBCRepeatIndicator;
|
|
2474 |
dataCallParamsV8->iIconId.iQualifier = dataParamsV8.iIconId.iQualifier;
|
|
2475 |
dataCallParamsV8->iIconId.iIdentifier = dataParamsV8.iIconId.iIdentifier;
|
|
2476 |
dataCallParamsV8->iAlphaId = dataParamsV8.iAlphaId;
|
|
2477 |
|
|
2478 |
|
|
2479 |
}
|
|
2480 |
|
|
2481 |
if ( RMobileCall::KETelMobileHscsdCallParamsV1 ==
|
|
2482 |
dataParams.ExtensionId() )
|
|
2483 |
{
|
|
2484 |
// HSCSD data call
|
|
2485 |
iDataCallMode = EDataCallModeHscsd;
|
|
2486 |
RMobileCall::TMobileHscsdCallParamsV1Pckg* hscsdParamsPckgV1 =
|
|
2487 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV1Pckg*>(
|
|
2488 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2489 |
RMobileCall::TMobileHscsdCallParamsV1& hscsDataParams =
|
|
2490 |
( *hscsdParamsPckgV1 )();
|
|
2491 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV1*>(iHSCSDParams)) = hscsDataParams;
|
|
2492 |
// Set iHscsdSupport to ETrue.
|
|
2493 |
// This call is HSCSD call and features are supported.
|
|
2494 |
iDataCallCaps->iHscsdSupport = ETrue;
|
|
2495 |
}
|
|
2496 |
|
|
2497 |
if ( RMobileCall::KETelMobileHscsdCallParamsV2 ==
|
|
2498 |
dataParams.ExtensionId() )
|
|
2499 |
{
|
|
2500 |
// HSCSD data call
|
|
2501 |
iDataCallMode = EDataCallModeHscsd;
|
|
2502 |
RMobileCall::TMobileHscsdCallParamsV2Pckg* hscsdParamsPckgV2 =
|
|
2503 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV2Pckg*>(
|
|
2504 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2505 |
RMobileCall::TMobileHscsdCallParamsV2& hscsDataParams2 =
|
|
2506 |
( *hscsdParamsPckgV2 )();
|
|
2507 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV2*>(iHSCSDParams)) = hscsDataParams2;
|
|
2508 |
// Set iHscsdSupport to ETrue.
|
|
2509 |
// This call is HSCSD call and features are supported.
|
|
2510 |
iDataCallCaps->iHscsdSupport = ETrue;
|
|
2511 |
}
|
|
2512 |
|
|
2513 |
if ( RMobileCall::KETelMobileHscsdCallParamsV7 ==
|
|
2514 |
dataParams.ExtensionId() )
|
|
2515 |
{
|
|
2516 |
// HSCSD data call
|
|
2517 |
iDataCallMode = EDataCallModeHscsd;
|
|
2518 |
RMobileCall::TMobileHscsdCallParamsV7Pckg* hscsdParamsPckgV7 =
|
|
2519 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV7Pckg*>(
|
|
2520 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2521 |
RMobileCall::TMobileHscsdCallParamsV7& hscsDataParams7 =
|
|
2522 |
( *hscsdParamsPckgV7)();
|
|
2523 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV7*>(iHSCSDParams)) = hscsDataParams7;
|
|
2524 |
// Set iHscsdSupport to ETrue.
|
|
2525 |
// This call is HSCSD call and features are supported.
|
|
2526 |
iDataCallCaps->iHscsdSupport = ETrue;
|
|
2527 |
}
|
|
2528 |
|
|
2529 |
if ( RMobileCall::KETelMobileHscsdCallParamsV8 ==
|
|
2530 |
dataParams.ExtensionId() )
|
|
2531 |
{
|
|
2532 |
// HSCSD data call
|
|
2533 |
iDataCallMode = EDataCallModeHscsd;
|
|
2534 |
RMobileCall::TMobileHscsdCallParamsV8Pckg* hscsdParamsPckgV8 =
|
|
2535 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV8Pckg*>(
|
|
2536 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2537 |
RMobileCall::TMobileHscsdCallParamsV8& hscsDataParams8 =
|
|
2538 |
( *hscsdParamsPckgV8 )();
|
|
2539 |
*iHSCSDParams = hscsDataParams8;
|
|
2540 |
// Set iHscsdSupport to ETrue.
|
|
2541 |
// This call is HSCSD call and features are supported.
|
|
2542 |
iDataCallCaps->iHscsdSupport = ETrue;
|
|
2543 |
}
|
|
2544 |
}
|
|
2545 |
|
|
2546 |
// ---------------------------------------------------------------------------
|
|
2547 |
// CMmCallGsmWcdmaExt::ReceivedCallParams
|
|
2548 |
// Stores new CALL/CSD parameters.
|
|
2549 |
// (other items were commented in a header).
|
|
2550 |
// ---------------------------------------------------------------------------
|
|
2551 |
//
|
|
2552 |
void CMmCallGsmWcdmaExt::ReceivedCallParams(
|
|
2553 |
const CMmDataPackage* aDataPackage )
|
|
2554 |
{
|
|
2555 |
TDesC8* callParamsDes = NULL;
|
|
2556 |
|
|
2557 |
aDataPackage->UnPackData( &callParamsDes );
|
|
2558 |
|
|
2559 |
RCall::TCallParamsPckg* callParamsPckg =
|
|
2560 |
reinterpret_cast<RCall::TCallParamsPckg*>( callParamsDes );
|
|
2561 |
RCall::TCallParams& callParams = ( *callParamsPckg )();
|
|
2562 |
|
|
2563 |
TInt extensionId( callParams.ExtensionId() );
|
|
2564 |
|
|
2565 |
if ( iCSDParams &&
|
|
2566 |
(( RMobileCall::KETelMobileDataCallParamsV1 == extensionId) ||
|
|
2567 |
( RMobileCall::KETelMobileHscsdCallParamsV1 == extensionId )))
|
|
2568 |
{
|
|
2569 |
RMobileCall::TMobileDataCallParamsV1Pckg* paramsPckgV1 =
|
|
2570 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV1Pckg*>(
|
|
2571 |
callParamsDes );
|
|
2572 |
RMobileCall::TMobileDataCallParamsV1& dataParams = ( *paramsPckgV1 )();
|
|
2573 |
|
|
2574 |
// Save all the CSD parameters here
|
|
2575 |
*(static_cast<RMobileCall::TMobileDataCallParamsV1*>(iCSDParams)) = dataParams;
|
|
2576 |
// Update data call caps
|
|
2577 |
SetDataCaps( callParamsDes );
|
|
2578 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2579 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2580 |
}
|
|
2581 |
|
|
2582 |
if ( iCSDParams && ( RMobileCall::KETelMobileDataCallParamsV2 == extensionId))
|
|
2583 |
{
|
|
2584 |
RMobileCall::TMobileDataCallParamsV2Pckg* paramsPckgV2 =
|
|
2585 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV2Pckg*>(
|
|
2586 |
callParamsDes );
|
|
2587 |
RMobileCall::TMobileDataCallParamsV2& dataParams2 = ( *paramsPckgV2 )();
|
|
2588 |
|
|
2589 |
// Save all the CSD parameters here
|
|
2590 |
*(static_cast<RMobileCall::TMobileDataCallParamsV2*>(iCSDParams)) = dataParams2;
|
|
2591 |
// Update data call caps
|
|
2592 |
SetDataCaps( callParamsDes );
|
|
2593 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2594 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2595 |
}
|
|
2596 |
|
|
2597 |
if ( iCSDParams &&( RMobileCall::KETelMobileDataCallParamsV8 == extensionId))
|
|
2598 |
{
|
|
2599 |
RMobileCall::TMobileDataCallParamsV8Pckg* paramsPckgV8 =
|
|
2600 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV8Pckg*>(
|
|
2601 |
callParamsDes );
|
|
2602 |
RMobileCall::TMobileDataCallParamsV8& dataParams8 = ( *paramsPckgV8)();
|
|
2603 |
|
|
2604 |
// Save all the CSD parameters here
|
|
2605 |
*iCSDParams = dataParams8;
|
|
2606 |
// Update data call caps
|
|
2607 |
SetDataCaps( callParamsDes );
|
|
2608 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2609 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2610 |
}
|
|
2611 |
|
|
2612 |
if ( iHSCSDParams && (RMobileCall::KETelMobileHscsdCallParamsV1 == extensionId ) )
|
|
2613 |
{
|
|
2614 |
RMobileCall::TMobileHscsdCallParamsV1Pckg* hscsdParamsPckgV1 =
|
|
2615 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV1Pckg*>(
|
|
2616 |
callParamsDes );
|
|
2617 |
RMobileCall::TMobileHscsdCallParamsV1& hscsdDataParams = ( *hscsdParamsPckgV1 )();
|
|
2618 |
|
|
2619 |
// Save all the CSD parameters here
|
|
2620 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV1*>(iHSCSDParams)) = hscsdDataParams;
|
|
2621 |
// Update data call caps
|
|
2622 |
SetDataCaps( callParamsDes );
|
|
2623 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2624 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2625 |
}
|
|
2626 |
|
|
2627 |
if ( iHSCSDParams && (RMobileCall::KETelMobileHscsdCallParamsV2 == extensionId ) )
|
|
2628 |
{
|
|
2629 |
RMobileCall::TMobileHscsdCallParamsV2Pckg* hscsdParamsPckgV2 =
|
|
2630 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV2Pckg*>(
|
|
2631 |
callParamsDes );
|
|
2632 |
RMobileCall::TMobileHscsdCallParamsV2& hscsdDataParams2 = ( *hscsdParamsPckgV2 )();
|
|
2633 |
|
|
2634 |
// Save all the CSD parameters here
|
|
2635 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV2*>(iHSCSDParams)) = hscsdDataParams2;
|
|
2636 |
// Update data call caps
|
|
2637 |
SetDataCaps( callParamsDes );
|
|
2638 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2639 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2640 |
}
|
|
2641 |
|
|
2642 |
if ( iHSCSDParams && (RMobileCall::KETelMobileHscsdCallParamsV7 == extensionId ) )
|
|
2643 |
{
|
|
2644 |
RMobileCall::TMobileHscsdCallParamsV7Pckg* hscsdParamsPckgV7 =
|
|
2645 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV7Pckg*>(
|
|
2646 |
callParamsDes );
|
|
2647 |
RMobileCall::TMobileHscsdCallParamsV7& hscsdDataParams7 = ( *hscsdParamsPckgV7 )();
|
|
2648 |
|
|
2649 |
// Save all the CSD parameters here
|
|
2650 |
*(static_cast<RMobileCall::TMobileHscsdCallParamsV7*>(iHSCSDParams)) = hscsdDataParams7;
|
|
2651 |
// Update data call caps
|
|
2652 |
SetDataCaps( callParamsDes );
|
|
2653 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2654 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2655 |
}
|
|
2656 |
|
|
2657 |
if ( iHSCSDParams && (RMobileCall::KETelMobileHscsdCallParamsV8 == extensionId ) )
|
|
2658 |
{
|
|
2659 |
RMobileCall::TMobileHscsdCallParamsV8Pckg* hscsdParamsPckgV8 =
|
|
2660 |
reinterpret_cast<RMobileCall::TMobileHscsdCallParamsV8Pckg*>(
|
|
2661 |
callParamsDes );
|
|
2662 |
RMobileCall::TMobileHscsdCallParamsV8& hscsdDataParams8 = ( *hscsdParamsPckgV8 )();
|
|
2663 |
|
|
2664 |
// Save all the CSD parameters here
|
|
2665 |
*iHSCSDParams = hscsdDataParams8;
|
|
2666 |
// Update data call caps
|
|
2667 |
SetDataCaps( callParamsDes );
|
|
2668 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2669 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2670 |
}
|
|
2671 |
|
|
2672 |
}
|
|
2673 |
|
|
2674 |
// ---------------------------------------------------------------------------
|
|
2675 |
// CMmCallGsmWcdmaExt::SetDataCaps
|
|
2676 |
// Sets data call service, protocol and QoS caps.
|
|
2677 |
// (other items were commented in a header).
|
|
2678 |
// ---------------------------------------------------------------------------
|
|
2679 |
//
|
|
2680 |
void CMmCallGsmWcdmaExt::SetDataCaps(
|
|
2681 |
const TDesC8* aCallParams )
|
|
2682 |
{
|
|
2683 |
iDataCallCaps->iSpeedCaps = 0x00;
|
|
2684 |
iDataCallCaps->iProtocolCaps = 0x00;
|
|
2685 |
iDataCallCaps->iQoSCaps = 0x00;
|
|
2686 |
iDataCallCaps->iServiceCaps = 0x00;
|
|
2687 |
if(aCallParams->Length() < sizeof(RMobileCall::TMobileDataCallParamsV1) )
|
|
2688 |
{
|
|
2689 |
return;
|
|
2690 |
}
|
|
2691 |
RMobileCall::TMobileDataCallParamsV1Pckg* paramsPckgV1 =
|
|
2692 |
reinterpret_cast<RMobileCall::TMobileDataCallParamsV1Pckg*>(
|
|
2693 |
const_cast<TDesC8*>( aCallParams ) );
|
|
2694 |
RMobileCall::TMobileDataCallParamsV1& dataParams = ( *paramsPckgV1 )();
|
|
2695 |
|
|
2696 |
// NOTE: Service and QoS values are set to only supported value in
|
|
2697 |
// ResetInternalAttributes. If there will be more supported caps in for
|
|
2698 |
// example continuation projects, then do Service and QoS here the same
|
|
2699 |
// way as Speed and Protocol are done.
|
|
2700 |
|
|
2701 |
// Change the speed caps
|
|
2702 |
switch ( dataParams.iSpeed )
|
|
2703 |
{
|
|
2704 |
case RMobileCall::ESpeedAutobauding:
|
|
2705 |
iDataCallCaps->iSpeedCaps =
|
|
2706 |
RMobileCall::KCapsSpeedAutobauding;
|
|
2707 |
break;
|
|
2708 |
case RMobileCall::ESpeed9600:
|
|
2709 |
iDataCallCaps->iSpeedCaps =
|
|
2710 |
RMobileCall::KCapsSpeed9600;
|
|
2711 |
break;
|
|
2712 |
case RMobileCall::ESpeed14400:
|
|
2713 |
iDataCallCaps->iSpeedCaps =
|
|
2714 |
RMobileCall::KCapsSpeed14400;
|
|
2715 |
break;
|
|
2716 |
case RMobileCall::ESpeed19200:
|
|
2717 |
iDataCallCaps->iSpeedCaps =
|
|
2718 |
RMobileCall::KCapsSpeed19200;
|
|
2719 |
break;
|
|
2720 |
case RMobileCall::ESpeed28800:
|
|
2721 |
iDataCallCaps->iSpeedCaps =
|
|
2722 |
RMobileCall::KCapsSpeed28800;
|
|
2723 |
break;
|
|
2724 |
case RMobileCall::ESpeed38400:
|
|
2725 |
iDataCallCaps->iSpeedCaps =
|
|
2726 |
RMobileCall::KCapsSpeed38400;
|
|
2727 |
break;
|
|
2728 |
case RMobileCall::ESpeed43200:
|
|
2729 |
iDataCallCaps->iSpeedCaps =
|
|
2730 |
RMobileCall::KCapsSpeed43200;
|
|
2731 |
break;
|
|
2732 |
// For Multimedia call
|
|
2733 |
case RMobileCall::ESpeed64000:
|
|
2734 |
if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KCsVideoTelephony ) == KFeatureSupported) )
|
|
2735 |
{
|
|
2736 |
iDataCallCaps->iSpeedCaps =
|
|
2737 |
RMobileCall::KCapsSpeed64000;
|
|
2738 |
}
|
|
2739 |
break;
|
|
2740 |
case RMobileCall::ESpeed2400:
|
|
2741 |
case RMobileCall::ESpeed4800:
|
|
2742 |
case RMobileCall::ESpeed32000:
|
|
2743 |
case RMobileCall::ESpeed33600:
|
|
2744 |
case RMobileCall::ESpeed48000:
|
|
2745 |
case RMobileCall::ESpeed56000:
|
|
2746 |
case RMobileCall::ESpeed57600:
|
|
2747 |
case RMobileCall::ESpeedUnspecified:
|
|
2748 |
default:
|
|
2749 |
// already set iDataCallCaps->iSpeedCaps = 0x00;
|
|
2750 |
break;
|
|
2751 |
}
|
|
2752 |
|
|
2753 |
// Change the protocol caps
|
|
2754 |
switch ( dataParams.iProtocol )
|
|
2755 |
{
|
|
2756 |
case RMobileCall::EProtocolV32:
|
|
2757 |
iDataCallCaps->iProtocolCaps =
|
|
2758 |
RMobileCall::KCapsProtocolV32;
|
|
2759 |
break;
|
|
2760 |
case RMobileCall::EProtocolV34:
|
|
2761 |
iDataCallCaps->iProtocolCaps =
|
|
2762 |
RMobileCall::KCapsProtocolV34;
|
|
2763 |
break;
|
|
2764 |
case RMobileCall::EProtocolV110:
|
|
2765 |
iDataCallCaps->iProtocolCaps =
|
|
2766 |
RMobileCall::KCapsProtocolV110;
|
|
2767 |
break;
|
|
2768 |
case RMobileCall::EProtocolV120:
|
|
2769 |
iDataCallCaps->iProtocolCaps =
|
|
2770 |
RMobileCall::KCapsProtocolV120;
|
|
2771 |
break;
|
|
2772 |
// For Multimedia call
|
|
2773 |
case RMobileCall::EProtocolPstnMultimedia:
|
|
2774 |
if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KCsVideoTelephony ) == KFeatureSupported) )
|
|
2775 |
{
|
|
2776 |
iDataCallCaps->iProtocolCaps =
|
|
2777 |
RMobileCall::KCapsPstnMultimedia;
|
|
2778 |
}
|
|
2779 |
break;
|
|
2780 |
case RMobileCall::EProtocolIsdnMultimedia:
|
|
2781 |
if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KCsVideoTelephony ) == KFeatureSupported) )
|
|
2782 |
{
|
|
2783 |
iDataCallCaps->iProtocolCaps =
|
|
2784 |
RMobileCall::KCapsIsdnMultimedia;
|
|
2785 |
}
|
|
2786 |
break;
|
|
2787 |
case RMobileCall::EProtocolUnspecified:
|
|
2788 |
case RMobileCall::EProtocolV22bis:
|
|
2789 |
case RMobileCall::EProtocolX31FlagStuffing:
|
|
2790 |
case RMobileCall::EProtocolPIAFS:
|
|
2791 |
case RMobileCall::EProtocolBitTransparent:
|
|
2792 |
case RMobileCall::EProtocolPstnMultimediaVoiceFallback:
|
|
2793 |
default:
|
|
2794 |
// aldready set iDataCallCaps->iProtocolCaps = 0x00;
|
|
2795 |
break;
|
|
2796 |
}
|
|
2797 |
|
|
2798 |
// Change the QoS caps
|
|
2799 |
switch ( dataParams.iQoS )
|
|
2800 |
{
|
|
2801 |
case RMobileCall::EQoSTransparent:
|
|
2802 |
iDataCallCaps->iQoSCaps =
|
|
2803 |
RMobileCall::KCapsTransparent;
|
|
2804 |
break;
|
|
2805 |
case RMobileCall::EQoSNonTransparent:
|
|
2806 |
iDataCallCaps->iQoSCaps =
|
|
2807 |
RMobileCall::KCapsNonTransparent;
|
|
2808 |
break;
|
|
2809 |
case RMobileCall::EQosTransparentPreferred:
|
|
2810 |
iDataCallCaps->iQoSCaps =
|
|
2811 |
RMobileCall::KCapsTransparentPreferred;
|
|
2812 |
break;
|
|
2813 |
case RMobileCall::EQosNonTransparentPreferred:
|
|
2814 |
iDataCallCaps->iQoSCaps =
|
|
2815 |
RMobileCall::KCapsNonTransparentPreferred;
|
|
2816 |
break;
|
|
2817 |
case RMobileCall::EQoSUnspecified:
|
|
2818 |
default:
|
|
2819 |
// aldready set iDataCallCaps->iQoSCaps = 0x00;
|
|
2820 |
break;
|
|
2821 |
}
|
|
2822 |
|
|
2823 |
// Change the service caps
|
|
2824 |
switch ( dataParams.iService )
|
|
2825 |
{
|
|
2826 |
case RMobileCall::EServiceDataCircuitAsync:
|
|
2827 |
iDataCallCaps->iServiceCaps =
|
|
2828 |
RMobileCall::KCapsDataCircuitAsynchronous;
|
|
2829 |
break;
|
|
2830 |
case RMobileCall::EServiceDataCircuitAsyncRdi:
|
|
2831 |
iDataCallCaps->iServiceCaps =
|
|
2832 |
RMobileCall::KCapsDataCircuitAsynchronousRDI;
|
|
2833 |
break;
|
|
2834 |
case RMobileCall::EServiceDataCircuitSync:
|
|
2835 |
iDataCallCaps->iServiceCaps =
|
|
2836 |
RMobileCall::KCapsDataCircuitSynchronous;
|
|
2837 |
break;
|
|
2838 |
case RMobileCall::EServiceDataCircuitSyncRdi:
|
|
2839 |
iDataCallCaps->iServiceCaps =
|
|
2840 |
RMobileCall::KCapsDataCircuitSynchronousRDI;
|
|
2841 |
break;
|
|
2842 |
case RMobileCall::EServicePADAsyncUDI:
|
|
2843 |
iDataCallCaps->iServiceCaps =
|
|
2844 |
RMobileCall::KCapsPADAsyncUDI;
|
|
2845 |
break;
|
|
2846 |
case RMobileCall::EServicePADAsyncRDI:
|
|
2847 |
iDataCallCaps->iServiceCaps =
|
|
2848 |
RMobileCall::KCapsPADAsyncRDI;
|
|
2849 |
break;
|
|
2850 |
case RMobileCall::EServicePacketAccessSyncUDI:
|
|
2851 |
iDataCallCaps->iServiceCaps =
|
|
2852 |
RMobileCall::KCapsPacketAccessSyncUDI;
|
|
2853 |
break;
|
|
2854 |
case RMobileCall::EServicePacketAccessSyncRDI:
|
|
2855 |
iDataCallCaps->iServiceCaps =
|
|
2856 |
RMobileCall::KCapsPacketAccessSyncRDI;
|
|
2857 |
break;
|
|
2858 |
case RMobileCall::EServiceUnspecified:
|
|
2859 |
default :
|
|
2860 |
// aldready set iDataCallCaps->iServiceCaps = 0x00;
|
|
2861 |
break;
|
|
2862 |
}
|
|
2863 |
}
|
|
2864 |
|
|
2865 |
// ---------------------------------------------------------------------------
|
|
2866 |
// CMmCallGsmWcdmaExt::CopyMobileDataCallParams
|
|
2867 |
// Copies data call parameters to another variable without extension id.
|
|
2868 |
// (other items were commented in a header).
|
|
2869 |
// ---------------------------------------------------------------------------
|
|
2870 |
//
|
|
2871 |
void CMmCallGsmWcdmaExt::CopyMobileDataCallParams(
|
|
2872 |
RMobileCall::TMobileDataCallParamsV1& aDestination,
|
|
2873 |
const RMobileCall::TMobileDataCallParamsV1& aSource ) const
|
|
2874 |
{
|
|
2875 |
aDestination.iService = aSource.iService;
|
|
2876 |
aDestination.iSpeed = aSource.iSpeed;
|
|
2877 |
aDestination.iProtocol = aSource.iProtocol;
|
|
2878 |
aDestination.iQoS = aSource.iQoS;
|
|
2879 |
aDestination.iRLPVersion = aSource.iRLPVersion;
|
|
2880 |
aDestination.iModemToMSWindowSize = aSource.iModemToMSWindowSize;
|
|
2881 |
aDestination.iMSToModemWindowSize = aSource.iMSToModemWindowSize;
|
|
2882 |
aDestination.iAckTimer = aSource.iAckTimer;
|
|
2883 |
aDestination.iRetransmissionAttempts = aSource.iRetransmissionAttempts;
|
|
2884 |
aDestination.iResequencingPeriod = aSource.iResequencingPeriod;
|
|
2885 |
aDestination.iV42bisReq = aSource.iV42bisReq;
|
|
2886 |
aDestination.iV42bisCodewordsNum = aSource.iV42bisCodewordsNum;
|
|
2887 |
aDestination.iV42bisMaxStringLength = aSource.iV42bisMaxStringLength;
|
|
2888 |
aDestination.iUseEdge = aSource.iUseEdge;
|
|
2889 |
}
|
|
2890 |
|
|
2891 |
// ---------------------------------------------------------------------------
|
|
2892 |
// CMmCallGsmWcdmaExt::HscsdInfoReceived
|
|
2893 |
// Set extension specific HSCSD info.
|
|
2894 |
// (other items were commented in a header).
|
|
2895 |
// ---------------------------------------------------------------------------
|
|
2896 |
//
|
|
2897 |
void CMmCallGsmWcdmaExt::ReceivedHscsdInfo(
|
|
2898 |
CMmDataPackage* aDataPackage )
|
|
2899 |
{
|
|
2900 |
RMobileCall::TMobileCallHscsdInfoV8* newHscsdInfo;
|
|
2901 |
RMobileCall::TMobileCallDataCapsV1* newDataCallCaps;
|
|
2902 |
|
|
2903 |
aDataPackage->UnPackData( &newHscsdInfo, &newDataCallCaps );
|
|
2904 |
|
|
2905 |
iInformationReceived = ETrue;
|
|
2906 |
|
|
2907 |
if ( newDataCallCaps->iHscsdSupport )
|
|
2908 |
{
|
|
2909 |
iDataCallMode = EDataCallModeHscsd;
|
|
2910 |
}
|
|
2911 |
else
|
|
2912 |
{
|
|
2913 |
iDataCallMode = EDataCallModeNormal;
|
|
2914 |
}
|
|
2915 |
|
|
2916 |
if ( newHscsdInfo->iCodings != iCurrentHSCSDInfo->iCodings ||
|
|
2917 |
newHscsdInfo->iAiur != iCurrentHSCSDInfo->iAiur ||
|
|
2918 |
newHscsdInfo->iTxTimeSlots != iCurrentHSCSDInfo->iTxTimeSlots ||
|
|
2919 |
newHscsdInfo->iRxTimeSlots != iCurrentHSCSDInfo->iRxTimeSlots ||
|
|
2920 |
newHscsdInfo->iCallParamOrigin != iCurrentHSCSDInfo->iCallParamOrigin ||
|
|
2921 |
newHscsdInfo->iIconId.iIdentifier != iCurrentHSCSDInfo->iIconId.iIdentifier ||
|
|
2922 |
newHscsdInfo->iIconId.iQualifier != iCurrentHSCSDInfo->iIconId.iQualifier ||
|
|
2923 |
newHscsdInfo->iParamsCallControlModified != iCurrentHSCSDInfo->iParamsCallControlModified ||
|
|
2924 |
newHscsdInfo->iSubAddress != iCurrentHSCSDInfo->iSubAddress ||
|
|
2925 |
newHscsdInfo->iBearerCap1 != iCurrentHSCSDInfo->iBearerCap1 ||
|
|
2926 |
newHscsdInfo->iBearerCap2 != iCurrentHSCSDInfo->iBearerCap2 ||
|
|
2927 |
newHscsdInfo->iBCRepeatIndicator != iCurrentHSCSDInfo->iBCRepeatIndicator)
|
|
2928 |
{
|
|
2929 |
|
|
2930 |
|
|
2931 |
*iCurrentHSCSDInfo = *newHscsdInfo;
|
|
2932 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2933 |
CompleteNotifyHscsdInfoChange();
|
|
2934 |
}
|
|
2935 |
|
|
2936 |
if ( newDataCallCaps->iMaxRxTimeSlots != iDataCallCaps->iMaxRxTimeSlots ||
|
|
2937 |
newDataCallCaps->iMaxTxTimeSlots != iDataCallCaps->iMaxTxTimeSlots ||
|
|
2938 |
newDataCallCaps->iHscsdSupport != iDataCallCaps->iHscsdSupport ||
|
|
2939 |
newDataCallCaps->iSpeedCaps != iDataCallCaps->iSpeedCaps )
|
|
2940 |
{
|
|
2941 |
//Update the caps for speed
|
|
2942 |
iDataCallCaps->iSpeedCaps = newDataCallCaps->iSpeedCaps;
|
|
2943 |
iDataCallCaps->iHscsdSupport = newDataCallCaps->iHscsdSupport;
|
|
2944 |
iDataCallCaps->iMaxRxTimeSlots = newDataCallCaps->iMaxRxTimeSlots;
|
|
2945 |
iDataCallCaps->iMaxTxTimeSlots = newDataCallCaps->iMaxTxTimeSlots;
|
|
2946 |
|
|
2947 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2948 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2949 |
}
|
|
2950 |
}
|
|
2951 |
|
|
2952 |
// ---------------------------------------------------------------------------
|
|
2953 |
// CMmCallGsmWcdmaExt::ReceivedMobileDataCallCaps
|
|
2954 |
// Set extension specific data call capabilities.
|
|
2955 |
// (other items were commented in a header).
|
|
2956 |
// ---------------------------------------------------------------------------
|
|
2957 |
//
|
|
2958 |
void CMmCallGsmWcdmaExt::ReceivedMobileDataCallCaps(
|
|
2959 |
CMmDataPackage* aDataPackage )
|
|
2960 |
{
|
|
2961 |
RMobileCall::TMobileCallDataCapsV1* newDataCallCaps;
|
|
2962 |
|
|
2963 |
aDataPackage->UnPackData( &newDataCallCaps );
|
|
2964 |
|
|
2965 |
*iDataCallCaps = *newDataCallCaps;
|
|
2966 |
|
|
2967 |
reinterpret_cast<CMmDataCallTsy*>( iMmCallTsy )->
|
|
2968 |
CompleteNotifyMobileDataCallCapsChange();
|
|
2969 |
}
|
|
2970 |
|
|
2971 |
|
|
2972 |
// ---------------------------------------------------------------------------
|
|
2973 |
// CMmCallGsmWcdmaExt::SsmPluginCallback
|
|
2974 |
// This is callback
|
|
2975 |
// This method is called from System State Manager (or from CMmCallGsmWcdmaExt, if there
|
|
2976 |
// is no reason to change RF state), after RF state changing
|
|
2977 |
// ---------------------------------------------------------------------------
|
|
2978 |
//
|
|
2979 |
void CMmCallGsmWcdmaExt::SsmPluginCallback(TInt aResult, TCtsySsmCallbackData& aCallbackData)
|
|
2980 |
{
|
|
2981 |
TInt result (aResult);
|
|
2982 |
|
|
2983 |
if ( KErrNone == aResult )
|
|
2984 |
{
|
|
2985 |
TFLOGSTRING ("TSY:CMmCallGsmWcdmaExt::SsmPluginCallback: Dialing...");
|
|
2986 |
|
|
2987 |
//at this point the RF should be enabled in all cases
|
|
2988 |
TRAPD(err, result = iMessageManager->HandleRequestL(
|
|
2989 |
EMobileCallDialEmergencyCall, &aCallbackData.iNumberPackage ));
|
|
2990 |
if (KErrNone != err)
|
|
2991 |
{
|
|
2992 |
result = err;
|
|
2993 |
}
|
|
2994 |
|
|
2995 |
//if the RF state was inactive prior dialing the emergency call
|
|
2996 |
//change the status of the RF in phone to EEmergencyCallMade
|
|
2997 |
//this will enable that RF is set back to off when emergency call
|
|
2998 |
//is finished
|
|
2999 |
TRfStateInfo stateInfo = iMmCallTsy->Phone()->GetRfStateInfo();
|
|
3000 |
if ( result == KErrNone && stateInfo != ERfsStateInfoNormal )
|
|
3001 |
{
|
|
3002 |
iMmCallTsy->Phone()->SetRfStatus( EEmergencyCallMade );
|
|
3003 |
}
|
|
3004 |
|
|
3005 |
}
|
|
3006 |
|
|
3007 |
//pass answer from SSM further to CMmVoiceCallTsy::SsmPluginCallback()
|
|
3008 |
((CMmVoiceCallTsy*)iMmCallTsy)->SsmPluginCallback(result, aCallbackData);
|
|
3009 |
|
|
3010 |
}
|
|
3011 |
|
|
3012 |
// End of File
|