24
|
1 |
// Copyright (c) 2001-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 |
// Contains definitions for classes that implement Call waiting functionality.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef CSIMCALLWaiting_H__
|
|
23 |
#define CSIMCALLWaiting_H__
|
|
24 |
|
|
25 |
#include <etelmm.h>
|
|
26 |
#include <et_phone.h>
|
|
27 |
#include <mmretrieve.h>
|
|
28 |
#include "CSimSmsStore.h"//ugly but needed for listReadAllAttempt
|
|
29 |
|
|
30 |
|
|
31 |
class CSimPhone;
|
|
32 |
class CTestConfigSection;
|
|
33 |
class CRetrieveMobilePhoneCWList;
|
|
34 |
class CListReadAllAttempt;
|
|
35 |
|
|
36 |
class CSimCallWaiting : public CBase
|
|
37 |
/**
|
|
38 |
* Implements the RMobilePhone based functions that constitute the callWaiting orientated
|
|
39 |
* functionality provided by the SIM TSY.
|
|
40 |
*/
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
static CSimCallWaiting* NewL(CSimPhone* aPhone);
|
|
44 |
CSimCallWaiting(CSimPhone* aPhone);
|
|
45 |
~CSimCallWaiting();
|
|
46 |
|
|
47 |
TInt ExtFuncL(const TTsyReqHandle aReqHandle,const TInt aIpc, const TDataPackage& aPckg);
|
|
48 |
TInt CancelService(const TInt aIpc, const TTsyReqHandle aReqHandle);
|
|
49 |
TInt SetCallWaitingStatusL(const TTsyReqHandle aReqHandle, RMobilePhone::TMobileService* aServiceGroup, RMobilePhone::TMobilePhoneServiceAction* aAction);
|
|
50 |
TInt SetCallWaitingStatusCancel(const TTsyReqHandle aReqHandle);
|
|
51 |
TInt NotifyCallWaitingStatusChange(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhoneCWInfoEntryV1* aCWStatus);
|
|
52 |
TInt NotifyCallWaitingStatusChangeCancel(const TTsyReqHandle aReqHandle);
|
|
53 |
|
|
54 |
TInt GetCallWaitingStatusPhase1(const TTsyReqHandle aTsyReqHandle, CRetrieveMobilePhoneCWList::TGetCallWaitingRequest* aReqData,TInt* aBufSize);
|
|
55 |
TInt ProcessGetCallWaitingStatusPhase1L(const TTsyReqHandle aTsyReqHandle,CRetrieveMobilePhoneCWList::TGetCallWaitingRequest* aReqData,TInt* aBufSize);
|
|
56 |
TInt GetCallWaitingStatusPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf);
|
|
57 |
TInt GetCallWaitingStatusCancel(const TTsyReqHandle aTsyReqHandle);
|
|
58 |
|
|
59 |
void UpdateCWListL(RMobilePhone::TMobileService* aServiceGroup, RMobilePhone::TMobilePhoneServiceAction* aAction);
|
|
60 |
// void CBActivateAllOutgingL(TDesC* codeString);
|
|
61 |
// void CBDeactivateAllOutgingL(TDesC* codeString);
|
|
62 |
void FindAndCreateCWListL();
|
|
63 |
|
|
64 |
const CTestConfigSection* CfgFile();
|
|
65 |
|
|
66 |
private:
|
|
67 |
void ConstructL();
|
|
68 |
|
|
69 |
|
|
70 |
private:
|
|
71 |
CSimPhone* iPhone; // < Pointer to the parent phone class.
|
|
72 |
|
|
73 |
struct TCWNotification
|
|
74 |
{
|
|
75 |
TBool iCWChangeInfoNotificationPending;
|
|
76 |
TTsyReqHandle iCWChangeInfoReqHandle;
|
|
77 |
RMobilePhone::TMobilePhoneCWInfoEntryV1* iCWInfo;
|
|
78 |
};
|
|
79 |
|
|
80 |
TCWNotification iCWNotification;
|
|
81 |
|
|
82 |
|
|
83 |
CArrayPtrFlat<CListReadAllAttempt>* iGetCWStatus;
|
|
84 |
CMobilePhoneCWList* iCWList; //The list for call waiting.
|
|
85 |
|
|
86 |
};
|
|
87 |
|
|
88 |
#endif
|