24
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "T_RMobileCallData.h"
|
|
19 |
#include "T_RMobileLineData.h"
|
|
20 |
//System includes
|
|
21 |
#include <e32property.h>
|
|
22 |
|
|
23 |
|
|
24 |
_LIT( KCallName, "Call");
|
|
25 |
_LIT( KCapabilities, "Capabilities" );
|
|
26 |
_LIT( KPhoneNumber, "PhoneNumber" );
|
|
27 |
_LIT( KDefaultSection, "Default" );
|
|
28 |
_LIT( KMaxPhoneCalls, "MaxPhoneCalls");
|
|
29 |
|
|
30 |
// Call capabilities RMobileCall::GetCaps())
|
|
31 |
_LIT( KCapsVoiceCall, "VoiceCall" );
|
|
32 |
_LIT( KCapsHold, "Hold" );
|
|
33 |
_LIT( KCapsResume, "Resume" );
|
|
34 |
_LIT( KCapsSwap, "Swap" );
|
|
35 |
_LIT( KCapsDeflect, "Deflect" );
|
|
36 |
_LIT( KCapsTransfer, "Transfer" );
|
|
37 |
_LIT( KCapsJoin, "Join" ); // Conference
|
|
38 |
_LIT( KCapsOneToOne, "OneToOne" ); // Conference
|
|
39 |
|
|
40 |
_LIT(KMobileLineKey, "RMobileLine");
|
|
41 |
/*@}*/
|
|
42 |
// ini file Keys
|
|
43 |
|
|
44 |
|
|
45 |
//Voice Call
|
|
46 |
_LIT(KCmdAnswerIncomingCall, "AnswerIncomingCall");
|
|
47 |
_LIT(KCmdAnswerIncomingCallPost, "AnswerIncomingCallPost");
|
|
48 |
_LIT(KCmdGetCaps, "GetCaps");
|
|
49 |
_LIT(KCmdGetCallDuration, "GetCallDuration");
|
|
50 |
_LIT(KCmdHangUp, "HangUp");
|
|
51 |
_LIT(KCmdClose, "Close");
|
|
52 |
_LIT(KCmdOpenNewCall, "OpenNewCall");
|
|
53 |
_LIT(KCmdOpenExistingCall, "OpenExistingCall");
|
|
54 |
_LIT(KCmdDial, "Dial");
|
|
55 |
_LIT(KCmdDialCancel, "DialCancel");
|
|
56 |
_LIT(KCmdGetStatus, "GetStatus");
|
|
57 |
_LIT(KCmdHold, "Hold");
|
|
58 |
_LIT(KCmdResume, "Resume");
|
|
59 |
_LIT(KCmdSwap, "Swap");
|
|
60 |
_LIT(KCmdTransfer, "Transfer");
|
|
61 |
_LIT(KCmdCheckCaps, "CheckCaps");
|
|
62 |
/**
|
|
63 |
* Two phase constructor
|
|
64 |
*
|
|
65 |
* @leave system wide error
|
|
66 |
*/
|
|
67 |
CT_RMobileCallData* CT_RMobileCallData::NewL()
|
|
68 |
{
|
|
69 |
CT_RMobileCallData* ret=new (ELeave) CT_RMobileCallData();
|
|
70 |
CleanupStack::PushL (ret);
|
|
71 |
ret->ConstructL ();
|
|
72 |
CleanupStack::Pop (ret);
|
|
73 |
return ret;
|
|
74 |
}
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Protected constructor. First phase construction
|
|
78 |
*/
|
|
79 |
CT_RMobileCallData::CT_RMobileCallData()
|
|
80 |
: iActiveCallback(NULL)
|
|
81 |
{
|
|
82 |
}
|
|
83 |
|
|
84 |
/**
|
|
85 |
* Second phase construction
|
|
86 |
*
|
|
87 |
* @internalComponent
|
|
88 |
*
|
|
89 |
* @return N/A
|
|
90 |
*
|
|
91 |
* @pre None
|
|
92 |
* @post None
|
|
93 |
*
|
|
94 |
* @leave system wide error
|
|
95 |
*/
|
|
96 |
void CT_RMobileCallData::ConstructL()
|
|
97 |
{
|
|
98 |
iActiveCallback = CActiveCallback::NewL (*this);
|
|
99 |
}
|
|
100 |
|
|
101 |
/**
|
|
102 |
* Third phase construction
|
|
103 |
*
|
|
104 |
* @internalComponent
|
|
105 |
*
|
|
106 |
* @return N/A
|
|
107 |
*
|
|
108 |
* @pre None
|
|
109 |
* @post None
|
|
110 |
*
|
|
111 |
* @leave system wide error
|
|
112 |
*/
|
|
113 |
void CT_RMobileCallData::InitialiseL()
|
|
114 |
{
|
|
115 |
CDataWrapperBase::InitialiseL();
|
|
116 |
if ( !GetIntFromConfig(KDefaultSection, KMaxPhoneCalls, iMaxPhoneCalls ))
|
|
117 |
{
|
|
118 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KMaxPhoneCalls);
|
|
119 |
SetBlockResult(EFail);
|
|
120 |
}
|
|
121 |
|
|
122 |
else
|
|
123 |
{
|
|
124 |
RMobileCall* mobileCall= NULL;
|
|
125 |
for (TInt i = 0; i < iMaxPhoneCalls; ++i)
|
|
126 |
{
|
|
127 |
// RMobileCalls
|
|
128 |
mobileCall = new (ELeave) RMobileCall(); // We need a bunch of RMobileCall handles
|
|
129 |
CleanupStack::PushL (mobileCall);
|
|
130 |
iMobileCalls.AppendL (mobileCall);
|
|
131 |
CleanupStack::Pop (mobileCall);
|
|
132 |
}
|
|
133 |
}
|
|
134 |
}
|
|
135 |
|
|
136 |
/**
|
|
137 |
* Public destructor
|
|
138 |
*/
|
|
139 |
CT_RMobileCallData::~CT_RMobileCallData()
|
|
140 |
{
|
|
141 |
delete iActiveCallback;
|
|
142 |
iActiveCallback=NULL;
|
|
143 |
|
|
144 |
// Empty arrays and also delete objects whose pointers are contained within
|
|
145 |
iMobileCalls.ResetAndDestroy ();
|
|
146 |
}
|
|
147 |
|
|
148 |
/**
|
|
149 |
* Return a pointer to the object that the data wraps
|
|
150 |
*
|
|
151 |
* @return pointer to the object that the data wraps
|
|
152 |
*/
|
|
153 |
TAny* CT_RMobileCallData::GetObject()
|
|
154 |
{
|
|
155 |
return &iMobileCall;
|
|
156 |
}
|
|
157 |
|
|
158 |
/**
|
|
159 |
* Process a command read from the ini file
|
|
160 |
*
|
|
161 |
* @param aCommand The command to process
|
|
162 |
* @param aSection The section in the ini containing data for the command
|
|
163 |
* @param aAsyncErrorIndex Command index for async calls to return errors to
|
|
164 |
*
|
|
165 |
* @return ETrue if the command is processed
|
|
166 |
*
|
|
167 |
* @leave System wide error
|
|
168 |
*/
|
|
169 |
TBool CT_RMobileCallData::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex)
|
|
170 |
{
|
|
171 |
|
|
172 |
TBool ret = ETrue;
|
|
173 |
|
|
174 |
if ( aCommand==KCmdGetCaps)
|
|
175 |
{
|
|
176 |
DoCmdGetCaps (aSection);
|
|
177 |
}
|
|
178 |
else if ( aCommand==KCmdCheckCaps)
|
|
179 |
{
|
|
180 |
UtilityCheckCapability(aSection);
|
|
181 |
}
|
|
182 |
else if ( aCommand==KCmdGetCallDuration)
|
|
183 |
{
|
|
184 |
DoCmdGetCallDuration (aSection);
|
|
185 |
}
|
|
186 |
else if ( aCommand==KCmdHangUp)
|
|
187 |
{
|
|
188 |
DoCmdHangUp (aSection, aAsyncErrorIndex);
|
|
189 |
}
|
|
190 |
else if ( aCommand==KCmdClose)
|
|
191 |
{
|
|
192 |
DoCmdClose (aSection);
|
|
193 |
}
|
|
194 |
else if ( aCommand==KCmdOpenNewCall)
|
|
195 |
{
|
|
196 |
DoCmdOpenNewCall (aSection);
|
|
197 |
}
|
|
198 |
else if ( aCommand==KCmdOpenExistingCall)
|
|
199 |
{
|
|
200 |
DoCmdOpenExistingCall (aSection);
|
|
201 |
}
|
|
202 |
else if ( aCommand==KCmdDial)
|
|
203 |
{
|
|
204 |
DoCmdDial (aSection, aAsyncErrorIndex);
|
|
205 |
}
|
|
206 |
else if ( aCommand==KCmdDialCancel)
|
|
207 |
{
|
|
208 |
DoCmdDialCancel (aSection);
|
|
209 |
}
|
|
210 |
else if ( aCommand==KCmdAnswerIncomingCall)
|
|
211 |
{
|
|
212 |
DoCmdAnswerIncomingCall (aSection, aAsyncErrorIndex);
|
|
213 |
}
|
|
214 |
else if ( aCommand==KCmdAnswerIncomingCallPost)
|
|
215 |
{
|
|
216 |
DoCmdAnswerIncomingCallPost ( aSection, aAsyncErrorIndex);
|
|
217 |
}
|
|
218 |
else if ( aCommand==KCmdGetStatus)
|
|
219 |
{
|
|
220 |
DoCmdGetStatus ();
|
|
221 |
}
|
|
222 |
else if ( aCommand == KCmdHold)
|
|
223 |
{
|
|
224 |
DoCmdHold (aSection, aAsyncErrorIndex);
|
|
225 |
}
|
|
226 |
else if ( aCommand == KCmdSwap)
|
|
227 |
{
|
|
228 |
DoCmdSwap (aSection, aAsyncErrorIndex);
|
|
229 |
}
|
|
230 |
else if ( aCommand == KCmdResume)
|
|
231 |
{
|
|
232 |
DoCmdResume (aSection, aAsyncErrorIndex);
|
|
233 |
}
|
|
234 |
else if ( aCommand == KCmdTransfer)
|
|
235 |
{
|
|
236 |
DoCmdTransfer (aSection, aAsyncErrorIndex);
|
|
237 |
}
|
|
238 |
else
|
|
239 |
{
|
|
240 |
ERR_PRINTF1(_L("Unknown command"));
|
|
241 |
ret = EFalse;
|
|
242 |
}
|
|
243 |
|
|
244 |
return ret;
|
|
245 |
}
|
|
246 |
|
|
247 |
void CT_RMobileCallData::DoCmdGetCaps(const TTEFFunction& aSection)
|
|
248 |
{
|
|
249 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdGetCaps"));
|
|
250 |
TInt callNameParameter;
|
|
251 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
252 |
{
|
|
253 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
254 |
SetBlockResult(EFail);
|
|
255 |
}
|
|
256 |
else
|
|
257 |
{
|
|
258 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
259 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
260 |
if(error != KErrNone)
|
|
261 |
{
|
|
262 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
263 |
SetBlockResult(EFail);
|
|
264 |
}
|
|
265 |
else
|
|
266 |
{
|
|
267 |
INFO_PRINTF1(_L("Getting call capabilities"));
|
|
268 |
TRAP( error, iMobileCall->GetCaps(iCallCaps) );
|
|
269 |
if ( error != KErrNone)
|
|
270 |
{
|
|
271 |
ERR_PRINTF2(_L("Failed to get mobile call capabilities with error %d"), error);
|
|
272 |
SetError(error);
|
|
273 |
}
|
|
274 |
}
|
|
275 |
}
|
|
276 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdGetCaps"));
|
|
277 |
}
|
|
278 |
|
|
279 |
void CT_RMobileCallData::DoCmdGetCallDuration(const TTEFFunction& aSection)
|
|
280 |
{
|
|
281 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdGetCallDuration"));
|
|
282 |
TInt callNameParameter;
|
|
283 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
284 |
{
|
|
285 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
286 |
SetBlockResult(EFail);
|
|
287 |
}
|
|
288 |
else
|
|
289 |
{
|
|
290 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
291 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
292 |
if(error != KErrNone)
|
|
293 |
{
|
|
294 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
295 |
SetBlockResult(EFail);
|
|
296 |
}
|
|
297 |
else
|
|
298 |
{
|
|
299 |
TTimeIntervalSeconds duration = 0;
|
|
300 |
error = iMobileCall->GetCallDuration(duration);
|
|
301 |
if(error != KErrNone)
|
|
302 |
{
|
|
303 |
ERR_PRINTF2(_L("Failed to get call duration with error %d"), error);
|
|
304 |
SetError(error);
|
|
305 |
}
|
|
306 |
else
|
|
307 |
{
|
|
308 |
INFO_PRINTF3(_L("Call %d duration was %d seconds"), callNameParameter, duration.Int());
|
|
309 |
}
|
|
310 |
}
|
|
311 |
}
|
|
312 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdGetCallDuration"));
|
|
313 |
}
|
|
314 |
|
|
315 |
void CT_RMobileCallData::DoCmdHangUp(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
316 |
{
|
|
317 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdHangUp"));
|
|
318 |
TInt callNameParameter;
|
|
319 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
320 |
{
|
|
321 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
322 |
SetBlockResult(EFail);
|
|
323 |
}
|
|
324 |
else
|
|
325 |
{
|
|
326 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
327 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
328 |
if(error != KErrNone)
|
|
329 |
{
|
|
330 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
331 |
SetBlockResult(EFail);
|
|
332 |
}
|
|
333 |
else
|
|
334 |
{
|
|
335 |
iMobileCall->HangUp(iActiveCallback->iStatus);
|
|
336 |
iActiveCallback->Activate (aAsyncErrorIndex);
|
|
337 |
IncOutstanding ();
|
|
338 |
}
|
|
339 |
}
|
|
340 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdHangUp"));
|
|
341 |
}
|
|
342 |
|
|
343 |
void CT_RMobileCallData::DoCmdClose(const TTEFFunction& aSection)
|
|
344 |
{
|
|
345 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdCloseCall"));
|
|
346 |
TInt callNameParameter;
|
|
347 |
if ( !GetIntFromConfig( aSection, KCallName, callNameParameter ))
|
|
348 |
{
|
|
349 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
350 |
SetBlockResult(EFail);
|
|
351 |
}
|
|
352 |
else
|
|
353 |
{
|
|
354 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
355 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
356 |
if(error != KErrNone)
|
|
357 |
{
|
|
358 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
359 |
SetBlockResult(EFail);
|
|
360 |
}
|
|
361 |
else
|
|
362 |
{
|
|
363 |
INFO_PRINTF1(_L("Close handle to RMobileCall"));
|
|
364 |
iMobileCall->Close ();
|
|
365 |
}
|
|
366 |
}
|
|
367 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::CloseCallL"));
|
|
368 |
}
|
|
369 |
|
|
370 |
void CT_RMobileCallData::RunL(CActive* aActive, TInt aIndex)
|
|
371 |
{
|
|
372 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::RunL"));
|
|
373 |
DecOutstanding (); // One of the async calls has completed
|
|
374 |
TInt err = aActive->iStatus.Int();
|
|
375 |
if ( err != KErrNone)
|
|
376 |
{
|
|
377 |
ERR_PRINTF2(_L("RunL Error %d"), err);
|
|
378 |
SetAsyncError ( aIndex, err);
|
|
379 |
}
|
|
380 |
else
|
|
381 |
{
|
|
382 |
INFO_PRINTF1(_L("RunL completed successfully"));
|
|
383 |
}
|
|
384 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::RunL"));
|
|
385 |
}
|
|
386 |
|
|
387 |
void CT_RMobileCallData::DoCmdOpenNewCall(const TTEFFunction& aSection)
|
|
388 |
{
|
|
389 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdOpenNewCall"));
|
|
390 |
|
|
391 |
TInt callNameParameter;
|
|
392 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
393 |
{
|
|
394 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
395 |
SetBlockResult(EFail);
|
|
396 |
}
|
|
397 |
else
|
|
398 |
{
|
|
399 |
TPtrC mobileLineName;
|
|
400 |
if ( !GetStringFromConfig (aSection, KMobileLineKey (), mobileLineName))
|
|
401 |
{
|
|
402 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KMobileLineKey );
|
|
403 |
SetBlockResult(EFail);
|
|
404 |
}
|
|
405 |
else
|
|
406 |
{
|
|
407 |
CT_RMobileLineData* mobileLineWrapper = static_cast<CT_RMobileLineData*>(GetDataWrapperL(mobileLineName));
|
|
408 |
TName* callName;
|
|
409 |
TRAPD( error, callName = mobileLineWrapper->GetCallNameL (callNameParameter) );
|
|
410 |
if(error != KErrNone)
|
|
411 |
{
|
|
412 |
ERR_PRINTF2(_L("Left while getting call name with error %d"), error);
|
|
413 |
SetError(error);
|
|
414 |
}
|
|
415 |
else
|
|
416 |
{
|
|
417 |
INFO_PRINTF1(_L("Open handle to RMobileCall which can be used to receive incoming or dial outgoing call."));
|
|
418 |
RMobileLine* mobileLineObject = static_cast<RMobileLine*>(GetDataObjectL(mobileLineName));
|
|
419 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
420 |
TRAP(error, iMobileCall = GetMobileCallL(callNameParameter));
|
|
421 |
if(error != KErrNone)
|
|
422 |
{
|
|
423 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
424 |
SetBlockResult(EFail);
|
|
425 |
}
|
|
426 |
else
|
|
427 |
{
|
|
428 |
INFO_PRINTF1(_L("Opening new call"));
|
|
429 |
error = iMobileCall->OpenNewCall(*mobileLineObject, *callName);
|
|
430 |
if ( error != KErrNone)
|
|
431 |
{
|
|
432 |
ERR_PRINTF3(_L("OpenNewCall named: %S, failed with error [%d]"), &callName, error);
|
|
433 |
SetError (error);
|
|
434 |
}
|
|
435 |
else
|
|
436 |
{
|
|
437 |
INFO_PRINTF1(_L("Open new call succeeded"));
|
|
438 |
}
|
|
439 |
}
|
|
440 |
}
|
|
441 |
}
|
|
442 |
}
|
|
443 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdOpenNewCall"));
|
|
444 |
}
|
|
445 |
|
|
446 |
void CT_RMobileCallData::DoCmdOpenExistingCall(const TTEFFunction& aSection)
|
|
447 |
{
|
|
448 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdOpenExistingCall"));
|
|
449 |
TInt callNameParameter;
|
|
450 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
451 |
{
|
|
452 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
453 |
SetBlockResult(EFail);
|
|
454 |
}
|
|
455 |
else
|
|
456 |
{
|
|
457 |
// Open call that already exists at the server (incoming call)
|
|
458 |
TPtrC mobileLineName;
|
|
459 |
if ( !GetStringFromConfig (aSection, KMobileLineKey (), mobileLineName))
|
|
460 |
{
|
|
461 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KMobileLineKey );
|
|
462 |
SetBlockResult(EFail);
|
|
463 |
}
|
|
464 |
else
|
|
465 |
{
|
|
466 |
CT_RMobileLineData* mobileLineWrapper = static_cast<CT_RMobileLineData*>(GetDataWrapperL(mobileLineName));
|
|
467 |
const TName* callName = NULL;
|
|
468 |
TRAPD( error, callName = mobileLineWrapper->GetCallNameL (callNameParameter) );
|
|
469 |
if(error != KErrNone)
|
|
470 |
{
|
|
471 |
ERR_PRINTF2(_L("Left while getting call name with error %d"), error);
|
|
472 |
SetError(error);
|
|
473 |
}
|
|
474 |
else
|
|
475 |
{
|
|
476 |
INFO_PRINTF1(_L("Open handle to RMobileCall which can be used to receive incoming or dial outgoing call."));
|
|
477 |
RMobileLine* mobileLineObject = static_cast<RMobileLine*>(GetDataObjectL(mobileLineName));
|
|
478 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
479 |
TRAP( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
480 |
if(error != KErrNone)
|
|
481 |
{
|
|
482 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
483 |
SetBlockResult(EFail);
|
|
484 |
}
|
|
485 |
else
|
|
486 |
{
|
|
487 |
INFO_PRINTF1(_L("Opening existing call"));
|
|
488 |
error = iMobileCall->OpenExistingCall(*mobileLineObject, *callName);
|
|
489 |
if ( error != KErrNone)
|
|
490 |
{
|
|
491 |
ERR_PRINTF2(_L("OpenExistingCall failed with error [%d]"), error);
|
|
492 |
SetError (error);
|
|
493 |
}
|
|
494 |
else
|
|
495 |
{
|
|
496 |
INFO_PRINTF1(_L("OpenExistingCall succeeded"));
|
|
497 |
}
|
|
498 |
}
|
|
499 |
}
|
|
500 |
}
|
|
501 |
}
|
|
502 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdOpenExistingCall"));
|
|
503 |
}
|
|
504 |
|
|
505 |
/**
|
|
506 |
Dial out to given phone number using previously opened RMobileCall
|
|
507 |
@param aSection
|
|
508 |
@param KCallName
|
|
509 |
@param KPhoneNumber
|
|
510 |
@param KCallTimeout
|
|
511 |
@return error - Symbian error code. KErrNone if successful
|
|
512 |
*/
|
|
513 |
void CT_RMobileCallData::DoCmdDial(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
514 |
{
|
|
515 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdDial"));
|
|
516 |
|
|
517 |
if ( !GetStringFromConfig( aSection, KPhoneNumber, iPhoneNumber ))
|
|
518 |
{
|
|
519 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KPhoneNumber);
|
|
520 |
SetBlockResult(EFail);
|
|
521 |
}
|
|
522 |
else
|
|
523 |
{
|
|
524 |
TInt callNameParameter;
|
|
525 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
526 |
{
|
|
527 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
528 |
SetBlockResult(EFail);
|
|
529 |
}
|
|
530 |
else
|
|
531 |
{
|
|
532 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
533 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
534 |
if(error != KErrNone)
|
|
535 |
{
|
|
536 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
537 |
SetBlockResult(EFail);
|
|
538 |
}
|
|
539 |
else
|
|
540 |
{
|
|
541 |
INFO_PRINTF2(_L("Dialing \"%S\""), &iPhoneNumber);
|
|
542 |
iMobileCall->Dial (iActiveCallback->iStatus, iPhoneNumber);
|
|
543 |
iActiveCallback->Activate(aAsyncErrorIndex);
|
|
544 |
IncOutstanding ();
|
|
545 |
}
|
|
546 |
}
|
|
547 |
}
|
|
548 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdDial"));
|
|
549 |
}
|
|
550 |
|
|
551 |
void CT_RMobileCallData::DoCmdAnswerIncomingCall(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
552 |
{
|
|
553 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdAnswerIncomingCallAsync"));
|
|
554 |
|
|
555 |
TInt callNameParameter;
|
|
556 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter))
|
|
557 |
{
|
|
558 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
559 |
SetBlockResult(EFail);
|
|
560 |
}
|
|
561 |
else
|
|
562 |
{
|
|
563 |
TRequestStatus status;
|
|
564 |
// Call status is read to a RCall:TStatus variable.
|
|
565 |
RCall::TStatus callStatus;
|
|
566 |
TBool callReady = EFalse;
|
|
567 |
|
|
568 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
569 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
570 |
if(error != KErrNone)
|
|
571 |
{
|
|
572 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
573 |
SetBlockResult(EFail);
|
|
574 |
}
|
|
575 |
else
|
|
576 |
{
|
|
577 |
while (callReady == EFalse)
|
|
578 |
{
|
|
579 |
INFO_PRINTF1(_L("Getting call status..."));
|
|
580 |
error = iMobileCall->GetStatus (callStatus);
|
|
581 |
if ( error != KErrNone)
|
|
582 |
{
|
|
583 |
ERR_PRINTF2(_L("Failed to read call status [%d]"), error);
|
|
584 |
SetError(error);
|
|
585 |
}
|
|
586 |
else
|
|
587 |
{
|
|
588 |
switch(callStatus)
|
|
589 |
{
|
|
590 |
case RCall::EStatusRinging:
|
|
591 |
// Mobile call is ringing, we can answer it now.
|
|
592 |
INFO_PRINTF1(_L("Mobile call is ringing"));
|
|
593 |
callReady = ETrue;
|
|
594 |
break;
|
|
595 |
case RCall::EStatusIdle:
|
|
596 |
// Mobile call was terminated before we could answer it.
|
|
597 |
INFO_PRINTF1(_L("Mobile call was terminated before it could be answered"));
|
|
598 |
SetBlockResult(EFail);
|
|
599 |
break;
|
|
600 |
default:
|
|
601 |
INFO_PRINTF1(_L("Mobile call is still waiting ring"));
|
|
602 |
INFO_PRINTF1(_L("Waiting for the phone status change..."));
|
|
603 |
TRequestStatus status;
|
|
604 |
iMobileCall->NotifyStatusChange(status, callStatus);
|
|
605 |
User::WaitForRequest(status);
|
|
606 |
break;
|
|
607 |
}
|
|
608 |
}
|
|
609 |
}
|
|
610 |
// Answer the incoming phone call now.
|
|
611 |
INFO_PRINTF1(_L("Mobile call is ready, answering"));
|
|
612 |
iMobileCall->AnswerIncomingCall (iActiveCallback->iStatus);
|
|
613 |
iActiveCallback->Activate (aAsyncErrorIndex);
|
|
614 |
IncOutstanding ();
|
|
615 |
}
|
|
616 |
}
|
|
617 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdAnswerIncomingCallAsync"));
|
|
618 |
}
|
|
619 |
|
|
620 |
void CT_RMobileCallData::DoCmdAnswerIncomingCallPost(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
621 |
{
|
|
622 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdAnswerIncomingCallPost"));
|
|
623 |
|
|
624 |
TInt callNameParameter;
|
|
625 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter))
|
|
626 |
{
|
|
627 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
628 |
SetBlockResult(EFail);
|
|
629 |
}
|
|
630 |
else
|
|
631 |
{
|
|
632 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
633 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
634 |
if(error != KErrNone)
|
|
635 |
{
|
|
636 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
637 |
SetBlockResult(EFail);
|
|
638 |
}
|
|
639 |
else
|
|
640 |
{
|
|
641 |
INFO_PRINTF1(_L("Read call status to check if the other party hanged up."));
|
|
642 |
RCall::TStatus callStatus;
|
|
643 |
error = iMobileCall->GetStatus(callStatus);
|
|
644 |
if ( error != KErrNone)
|
|
645 |
{
|
|
646 |
ERR_PRINTF2(_L("Failed to read mobile call's status [%d]"), error);
|
|
647 |
SetError(error);
|
|
648 |
}
|
|
649 |
else
|
|
650 |
{
|
|
651 |
// Normal status of the connection is EStatusConnected.
|
|
652 |
if ( callStatus == RCall::EStatusConnected)
|
|
653 |
{
|
|
654 |
INFO_PRINTF1(_L("Mobile call is connected."));
|
|
655 |
}
|
|
656 |
else
|
|
657 |
{
|
|
658 |
INFO_PRINTF1(_L("Mobile call was disconnected, hanging up."));
|
|
659 |
iMobileCall->HangUp (iActiveCallback->iStatus);
|
|
660 |
iActiveCallback->Activate (aAsyncErrorIndex);
|
|
661 |
IncOutstanding ();
|
|
662 |
}
|
|
663 |
}
|
|
664 |
}
|
|
665 |
}
|
|
666 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdAnswerIncomingCallPost"));
|
|
667 |
}
|
|
668 |
|
|
669 |
|
|
670 |
void CT_RMobileCallData::DoCmdGetStatus()
|
|
671 |
{
|
|
672 |
INFO_PRINTF1(_L( "*START*CT_RMobileCallData::DoCmdCheckStatusWasConnecting" ));
|
|
673 |
|
|
674 |
TRAPD( error, iMobileCall->GetStatus(iTimeoutedMOCallStatus) );
|
|
675 |
if( error != KErrNone )
|
|
676 |
{
|
|
677 |
ERR_PRINTF2(_L("Failed to get call status with error %d"), error);
|
|
678 |
SetError(error);
|
|
679 |
}
|
|
680 |
else
|
|
681 |
{
|
|
682 |
switch(iTimeoutedMOCallStatus)
|
|
683 |
{
|
|
684 |
case RCall::EStatusUnknown:
|
|
685 |
INFO_PRINTF1(_L("The recieving device was in unknown status when the call was cancelled."));
|
|
686 |
break;
|
|
687 |
case RCall::EStatusIdle:
|
|
688 |
INFO_PRINTF1(_L("The recieving device was idle when the call was cancelled."));
|
|
689 |
break;
|
|
690 |
case RCall::EStatusDialling:
|
|
691 |
INFO_PRINTF1(_L("The recieving device was dialing when the call was cancelled."));
|
|
692 |
break;
|
|
693 |
case RCall::EStatusRinging:
|
|
694 |
INFO_PRINTF1(_L("The recieving device was ringing when the call was cancelled."));
|
|
695 |
break;
|
|
696 |
case RCall::EStatusAnswering:
|
|
697 |
INFO_PRINTF1(_L("The recieving device was answering when the call was cancelled."));
|
|
698 |
break;
|
|
699 |
case RCall::EStatusConnecting:
|
|
700 |
INFO_PRINTF1(_L("The recieving device was connecting when the call was cancelled."));
|
|
701 |
break;
|
|
702 |
case RCall::EStatusConnected:
|
|
703 |
INFO_PRINTF1(_L("The recieving device was connected when the call was cancelled."));
|
|
704 |
break;
|
|
705 |
case RCall::EStatusHangingUp:
|
|
706 |
INFO_PRINTF1(_L("The recieving device was hanging up when the call was cancelled."));
|
|
707 |
break;
|
|
708 |
}
|
|
709 |
}
|
|
710 |
INFO_PRINTF1(_L( "*END*CT_RMobileCallData::DoCmdCheckStatusWasConnecting" ));
|
|
711 |
}
|
|
712 |
|
|
713 |
void CT_RMobileCallData::DoCmdDialCancel(const TTEFFunction& aSection)
|
|
714 |
{
|
|
715 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdDialCancel"));
|
|
716 |
|
|
717 |
TInt callNameParameter;
|
|
718 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
719 |
{
|
|
720 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
721 |
SetBlockResult(EFail);
|
|
722 |
}
|
|
723 |
else
|
|
724 |
{
|
|
725 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
726 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
727 |
if(error != KErrNone)
|
|
728 |
{
|
|
729 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
730 |
SetBlockResult(EFail);
|
|
731 |
}
|
|
732 |
else
|
|
733 |
{
|
|
734 |
INFO_PRINTF1(_L("Cancelling dial..."));
|
|
735 |
iMobileCall->DialCancel();
|
|
736 |
}
|
|
737 |
}
|
|
738 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdDialCancel"));
|
|
739 |
}
|
|
740 |
|
|
741 |
void CT_RMobileCallData::DoCmdHold(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
742 |
{
|
|
743 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdHold"));
|
|
744 |
|
|
745 |
TInt callNameParameter;
|
|
746 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
747 |
{
|
|
748 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
749 |
SetBlockResult(EFail);
|
|
750 |
}
|
|
751 |
else
|
|
752 |
{
|
|
753 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
754 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
755 |
if(error != KErrNone)
|
|
756 |
{
|
|
757 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
758 |
SetBlockResult(EFail);
|
|
759 |
}
|
|
760 |
else
|
|
761 |
{
|
|
762 |
INFO_PRINTF1(_L("Holding call..."));
|
|
763 |
iMobileCall->Hold(iActiveCallback->iStatus);
|
|
764 |
iActiveCallback->Activate (aAsyncErrorIndex);
|
|
765 |
IncOutstanding();
|
|
766 |
}
|
|
767 |
}
|
|
768 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdHold"));
|
|
769 |
}
|
|
770 |
|
|
771 |
void CT_RMobileCallData::DoCmdResume(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
772 |
{
|
|
773 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdResume"));
|
|
774 |
|
|
775 |
TInt callNameParameter;
|
|
776 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
777 |
{
|
|
778 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
779 |
SetBlockResult(EFail);
|
|
780 |
}
|
|
781 |
else
|
|
782 |
{
|
|
783 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
784 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
785 |
if(error != KErrNone)
|
|
786 |
{
|
|
787 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
788 |
SetBlockResult(EFail);
|
|
789 |
}
|
|
790 |
else
|
|
791 |
{
|
|
792 |
INFO_PRINTF1(_L("Resuming call..."));
|
|
793 |
iMobileCall->Resume (iActiveCallback->iStatus);
|
|
794 |
iActiveCallback->Activate (aAsyncErrorIndex);
|
|
795 |
IncOutstanding ();
|
|
796 |
}
|
|
797 |
}
|
|
798 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdResume"));
|
|
799 |
}
|
|
800 |
|
|
801 |
void CT_RMobileCallData::DoCmdSwap(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
802 |
{
|
|
803 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdSwap"));
|
|
804 |
|
|
805 |
TInt callNameParameter;
|
|
806 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
807 |
{
|
|
808 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
809 |
SetBlockResult(EFail);
|
|
810 |
}
|
|
811 |
else
|
|
812 |
{
|
|
813 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
814 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
815 |
if(error != KErrNone)
|
|
816 |
{
|
|
817 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
818 |
SetBlockResult(EFail);
|
|
819 |
}
|
|
820 |
else
|
|
821 |
{
|
|
822 |
INFO_PRINTF1(_L("Swapping call..."));
|
|
823 |
iMobileCall->Swap(iActiveCallback->iStatus);
|
|
824 |
iActiveCallback->Activate(aAsyncErrorIndex);
|
|
825 |
IncOutstanding ();
|
|
826 |
}
|
|
827 |
}
|
|
828 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdSwap"));
|
|
829 |
}
|
|
830 |
|
|
831 |
void CT_RMobileCallData::DoCmdTransfer(const TTEFFunction& aSection, const TInt aAsyncErrorIndex)
|
|
832 |
{
|
|
833 |
INFO_PRINTF1(_L("*START*CT_RMobileCallData::DoCmdTransfer"));
|
|
834 |
|
|
835 |
TInt callNameParameter;
|
|
836 |
if ( !GetIntFromConfig(aSection, KCallName, callNameParameter ))
|
|
837 |
{
|
|
838 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCallName);
|
|
839 |
SetBlockResult(EFail);
|
|
840 |
}
|
|
841 |
else
|
|
842 |
{
|
|
843 |
INFO_PRINTF1(_L("Getting mobile call"));
|
|
844 |
TRAPD( error, iMobileCall = GetMobileCallL(callNameParameter) );
|
|
845 |
if(error != KErrNone)
|
|
846 |
{
|
|
847 |
ERR_PRINTF2(_L("GetMobileCallL left when trying to obtain the MobileCall with error %d"), error);
|
|
848 |
SetBlockResult(EFail);
|
|
849 |
}
|
|
850 |
else
|
|
851 |
{
|
|
852 |
INFO_PRINTF1(_L("Transferring call..."));
|
|
853 |
iMobileCall->Transfer(iActiveCallback->iStatus);
|
|
854 |
iActiveCallback->Activate(aAsyncErrorIndex);
|
|
855 |
IncOutstanding ();
|
|
856 |
}
|
|
857 |
}
|
|
858 |
INFO_PRINTF1(_L("*END*CT_RMobileCallData::DoCmdTransfer"));
|
|
859 |
}
|
|
860 |
|
|
861 |
RMobileCall* CT_RMobileCallData::GetMobileCallL(TInt aCall)
|
|
862 |
{
|
|
863 |
INFO_PRINTF1(_L("*START* CT_RMobileCallData::GetMobileCallL"));
|
|
864 |
|
|
865 |
INFO_PRINTF2(_L("Get RMobileCall: %d"), aCall);
|
|
866 |
|
|
867 |
// Check that over/under flow does not occur
|
|
868 |
if ( aCall < 0 || aCall >= iMobileCalls.Count ())
|
|
869 |
{
|
|
870 |
INFO_PRINTF2(_L("There is no such call as (%d)"), aCall);
|
|
871 |
User::Leave (KErrArgument);
|
|
872 |
}
|
|
873 |
INFO_PRINTF1(_L("*END* CT_RMobileCallData::GetMobileCallL"));
|
|
874 |
return iMobileCalls[aCall];
|
|
875 |
}
|
|
876 |
|
|
877 |
|
|
878 |
void CT_RMobileCallData::UtilityCheckCapability(const TTEFFunction& aSection)
|
|
879 |
{
|
|
880 |
INFO_PRINTF1(_L("*START* CT_RMobileCallData::UtilityCheckCapability"));
|
|
881 |
|
|
882 |
TPtrC capability;
|
|
883 |
if ( !GetStringFromConfig( aSection, KCapabilities, capability ))
|
|
884 |
{
|
|
885 |
ERR_PRINTF2(_L("Error in getting parameter %S from INI file"), &KCapabilities);
|
|
886 |
SetBlockResult(EFail);
|
|
887 |
}
|
|
888 |
else
|
|
889 |
{
|
|
890 |
if (!(iCallCaps.iFlags))
|
|
891 |
{
|
|
892 |
ERR_PRINTF1(_L("Call capabilities are not supported."));
|
|
893 |
SetBlockResult(EFail);
|
|
894 |
}
|
|
895 |
else
|
|
896 |
{
|
|
897 |
if (capability == KCapsVoiceCall)
|
|
898 |
{
|
|
899 |
INFO_PRINTF1(_L("Checking if Call has no voice call capabilities."));
|
|
900 |
if (!(RMobileCall::KCapsVoice))
|
|
901 |
{
|
|
902 |
SetBlockResult(EFail);
|
|
903 |
}
|
|
904 |
}
|
|
905 |
else if (capability == KCapsHold)
|
|
906 |
{
|
|
907 |
INFO_PRINTF1(_L("Checking if Call has no hold capabilities."));
|
|
908 |
if (!(RMobileCall::KCapsHold))
|
|
909 |
{
|
|
910 |
SetBlockResult(EFail);
|
|
911 |
}
|
|
912 |
}
|
|
913 |
else if (capability == KCapsResume)
|
|
914 |
{
|
|
915 |
INFO_PRINTF1(_L("Checking if Call has no resume capabilities."));
|
|
916 |
if (!(RMobileCall::KCapsResume))
|
|
917 |
{
|
|
918 |
SetBlockResult(EFail);
|
|
919 |
}
|
|
920 |
}
|
|
921 |
else if (capability == KCapsSwap)
|
|
922 |
{
|
|
923 |
INFO_PRINTF1(_L("Checking if Call has no swap capabilities."));
|
|
924 |
if (!(RMobileCall::KCapsSwap))
|
|
925 |
{
|
|
926 |
SetBlockResult(EFail);
|
|
927 |
}
|
|
928 |
}
|
|
929 |
else if (capability == KCapsDeflect)
|
|
930 |
{
|
|
931 |
INFO_PRINTF1(_L("Checking if Call has no deflect capabilities."));
|
|
932 |
if (!(RMobileCall::KCapsDeflect))
|
|
933 |
{
|
|
934 |
SetBlockResult(EFail);
|
|
935 |
}
|
|
936 |
}
|
|
937 |
else if (capability == KCapsTransfer)
|
|
938 |
{
|
|
939 |
INFO_PRINTF1(_L("Checking if Call has no transfer capabilities."));
|
|
940 |
if (!(RMobileCall::KCapsTransfer))
|
|
941 |
{
|
|
942 |
SetBlockResult(EFail);
|
|
943 |
}
|
|
944 |
}
|
|
945 |
else if (capability == KCapsJoin)
|
|
946 |
{
|
|
947 |
INFO_PRINTF1(_L("Checking if Call has no join (conference) capabilities."));
|
|
948 |
if (!(RMobileCall::KCapsJoin))
|
|
949 |
{
|
|
950 |
SetBlockResult(EFail);
|
|
951 |
}
|
|
952 |
}
|
|
953 |
else if (capability == KCapsOneToOne)
|
|
954 |
{
|
|
955 |
INFO_PRINTF1(_L("Checking if Call has no OneToOne (conference) capabilities."));
|
|
956 |
if (!(RMobileCall::KCapsOneToOne))
|
|
957 |
{
|
|
958 |
SetBlockResult(EFail);
|
|
959 |
}
|
|
960 |
}
|
|
961 |
else
|
|
962 |
{
|
|
963 |
ERR_PRINTF1(_L("Unknown capability."));
|
|
964 |
SetBlockResult(EFail);
|
|
965 |
}
|
|
966 |
}
|
|
967 |
}
|
|
968 |
INFO_PRINTF1(_L("*END* CT_RMobileCallData::UtilityCheckCapability"));
|
|
969 |
}
|
|
970 |
|