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 |
|
|
19 |
#ifndef T_RMOBILECALL_DATA_H
|
|
20 |
#define T_RMOBILECALL_DATA_H
|
|
21 |
|
|
22 |
#include "DataWrapperBase.h"
|
|
23 |
// For ETel API.
|
|
24 |
#include <etel.h>
|
|
25 |
// For ETel API.
|
|
26 |
#include <etelmm.h>
|
|
27 |
|
|
28 |
/**
|
|
29 |
* Test Active Notification class
|
|
30 |
*
|
|
31 |
*/
|
|
32 |
class CT_RMobileCallData : public CDataWrapperBase
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
~CT_RMobileCallData();
|
|
36 |
static CT_RMobileCallData* NewL();
|
|
37 |
|
|
38 |
virtual TAny* GetObject();
|
|
39 |
virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
|
|
40 |
|
|
41 |
protected:
|
|
42 |
CT_RMobileCallData();
|
|
43 |
void ConstructL();
|
|
44 |
void InitialiseL();
|
|
45 |
private:
|
|
46 |
void RunL(CActive* aActive, TInt aIndex);
|
|
47 |
|
|
48 |
void DoCmdHangUp(const TTEFFunction& aSection, const TInt aAsyncErrorIndex);
|
|
49 |
void DoCmdGetCallDuration(const TTEFFunction& aSection);
|
|
50 |
void DoCmdClose(const TTEFFunction& aSection);
|
|
51 |
void DoCmdOpenNewCall(const TTEFFunction& aSection );
|
|
52 |
void DoCmdOpenExistingCall(const TTEFFunction& aSection );
|
|
53 |
void DoCmdDial(const TTEFFunction& aSection, const TInt aAsyncErrorIndex);
|
|
54 |
void DoCmdAnswerIncomingCall(const TTEFFunction& aSection, const TInt aAsyncErrorIndex );
|
|
55 |
void DoCmdAnswerIncomingCallPost(const TTEFFunction& aSection, const TInt aAsyncErrorIndex );
|
|
56 |
void DoCmdDialCancel(const TTEFFunction& aSection);
|
|
57 |
void DoCmdHold(const TTEFFunction& aSection,const TInt aAsyncErrorIndex);
|
|
58 |
void DoCmdResume(const TTEFFunction& aSection,const TInt aAsyncErrorIndex);
|
|
59 |
void DoCmdSwap(const TTEFFunction& aSection,const TInt aAsyncErrorIndex);
|
|
60 |
void DoCmdTransfer(const TTEFFunction& aSection,const TInt aAsyncErrorIndex);
|
|
61 |
void DoCmdUtilityCheckCapability(const TTEFFunction& aSection);
|
|
62 |
void DoCmdGetCaps(const TTEFFunction& aSection);
|
|
63 |
void DoCmdGetStatus();
|
|
64 |
|
|
65 |
RMobileCall* GetMobileCallL(TInt aCall);
|
|
66 |
public:
|
|
67 |
TPtrC iPhoneNumber;
|
|
68 |
private:
|
|
69 |
CActiveCallback* iActiveCallback;
|
|
70 |
RMobileCall *iMobileCall;
|
|
71 |
RMobileCall::TCaps iCallCaps;
|
|
72 |
TInt iMaxPhoneCalls;
|
|
73 |
/**
|
|
74 |
* Array to RMobileCall handles
|
|
75 |
*/
|
|
76 |
RPointerArray< RMobileCall > iMobileCalls;
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Stores the status of the MO call before it was cancelled due to a timeout
|
|
80 |
*/
|
|
81 |
RCall::TStatus iTimeoutedMOCallStatus;
|
|
82 |
|
|
83 |
};
|
|
84 |
|
|
85 |
#endif // T_RMOBILECALL_DATA_H
|