|
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 network orientated functionality. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 #ifndef CSIMCALLFORWARDING_H__ |
|
23 #define CSIMCALLFORWARDING_H__ |
|
24 |
|
25 #include <etelmm.h> |
|
26 #include <et_phone.h> |
|
27 #include "csimtimer.h" |
|
28 #include <mmretrieve.h> |
|
29 #include "CSimSmsStore.h"//ugly but needed for listReadAllAttempt |
|
30 |
|
31 class CSimPhone; |
|
32 class CTestConfigSection; |
|
33 class CRetrieveMobilePhoneCFList; |
|
34 class CListReadAllAttempt; |
|
35 |
|
36 /** |
|
37 * Implements the RMobilePhone based functions that constitute the callforwarding orientated |
|
38 * functionality provided by the SIM TSY. |
|
39 */ |
|
40 class CSimCallForwarding : public CBase |
|
41 { |
|
42 public: |
|
43 static CSimCallForwarding* NewL(CSimPhone* aPhone); |
|
44 CSimCallForwarding(CSimPhone* aPhone); |
|
45 ~CSimCallForwarding(); |
|
46 |
|
47 TInt ExtFunc(const TTsyReqHandle aReqHandle,const TInt aIpc, const TDataPackage& aPckg); |
|
48 TInt CancelService(const TInt aIpc, const TTsyReqHandle aReqHandle); |
|
49 TInt SetCallForwardingStatus(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhoneCFCondition* aCF, RMobilePhone::TMobilePhoneCFChangeV1* aInfo); |
|
50 TInt SetCallForwardingStatusCancel(const TTsyReqHandle aReqHandle); |
|
51 TInt NotifyCallForwardingStatusChange(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhoneCFCondition* aCF); |
|
52 TInt NotifyCallForwardingStatusChangeCancel(const TTsyReqHandle aReqHandle); |
|
53 TInt GetIdentityServiceStatus(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhoneIdService* aService, RMobilePhone::TMobilePhoneIdServiceStatus* aStatus); |
|
54 TInt GetIdentityServiceStatusCancel(const TTsyReqHandle aReqHandle); |
|
55 void DoNotifyCallForwardingStatusChanged(TDesC* aString); |
|
56 void DoNotifyCallForwardingStatusChanged(TDesC* configString,TDesC* numberString); |
|
57 TInt GetCallForwardingStatusPhase1(const TTsyReqHandle aTsyReqHandle, |
|
58 CRetrieveMobilePhoneCFList::TGetCallForwardingRequest* aReqData, |
|
59 TInt* aBufSize); |
|
60 TInt ProcessGetCallForwardingStatusPhase1L(const TTsyReqHandle aTsyReqHandle, |
|
61 CRetrieveMobilePhoneCFList::TGetCallForwardingRequest* aReqData, |
|
62 TInt* aBufSize); |
|
63 TInt GetCallForwardingStatusPhase2(const TTsyReqHandle aTsyReqHandle, |
|
64 RMobilePhone::TClientId* aClient, TDes8* aBuf); |
|
65 TInt GetCallForwardingStatusCancel(const TTsyReqHandle aTsyReqHandle); |
|
66 void UpdateCFListL(RMobilePhone::TMobilePhoneCFCondition* aCF, RMobilePhone::TMobilePhoneCFChangeV1* aCFInfo ); |
|
67 void UnregisterAllCFListL(); |
|
68 void UpdateCFDivertAllL(TBool aActivateDivertAll); |
|
69 void UpdateCFDivertAllPhoneNumberL(TDesC* numberString); |
|
70 void RegisterL(RMobilePhone::TMobilePhoneCFCondition* aCF, RMobilePhone::TMobilePhoneCFChangeV1* aCFInfo ); |
|
71 void ActivateL(RMobilePhone::TMobilePhoneCFCondition* aCF, RMobilePhone::TMobilePhoneCFChangeV1* aCFInfo ); |
|
72 void DeactivateL(RMobilePhone::TMobilePhoneCFCondition* aCF, RMobilePhone::TMobilePhoneCFChangeV1* aCFInfo ); |
|
73 void EraseL(RMobilePhone::TMobilePhoneCFCondition* aCF, RMobilePhone::TMobilePhoneCFChangeV1* aCFInfo ); |
|
74 void UpdateCFQuiescentCondition(TBool aActivate, RMobilePhone::TMobilePhoneCFCondition aCF); |
|
75 |
|
76 const CTestConfigSection* CfgFile(); |
|
77 |
|
78 private: |
|
79 void ConstructL(); |
|
80 void FindAndCreateCFListL(); |
|
81 void UnregisterAllCallDiversionsL(); |
|
82 |
|
83 private: |
|
84 CSimPhone* iPhone; // < Pointer to the parent phone class. |
|
85 |
|
86 |
|
87 struct TIdentityServiceStatus |
|
88 { |
|
89 RMobilePhone::TMobilePhoneIdService iService; |
|
90 RMobilePhone::TMobilePhoneIdServiceStatus iStatus; |
|
91 }; |
|
92 TInt iIdentityServiceStatusIndex; |
|
93 |
|
94 CArrayFixFlat<TIdentityServiceStatus>* iIdentityServiceStatus; |
|
95 |
|
96 struct TCFNotification |
|
97 { |
|
98 TBool iCFChangeInfoNotificationPending; |
|
99 TTsyReqHandle iCFChangeInfoReqHandle; |
|
100 RMobilePhone::TMobilePhoneCFChangeV1* iCurrentChangeInfo; |
|
101 RMobilePhone::TMobilePhoneCFCondition* iCurrentCFCondition; |
|
102 }; |
|
103 |
|
104 TCFNotification iCFNotification; |
|
105 CArrayPtrFlat<CListReadAllAttempt>* iGetCFStatus; |
|
106 CMobilePhoneCFList* iCFList; //The list for call forwarding. |
|
107 }; |
|
108 |
|
109 #endif |