|
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 CSIMCALLBarring_H__ |
|
23 #define CSIMCALLBarring_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 CRetrieveMobilePhoneCBList; |
|
34 class CListReadAllAttempt; |
|
35 |
|
36 class CSimCallBarring : public CBase |
|
37 /** |
|
38 * Implements the RMobilePhone based functions that constitute the callBarring orientated |
|
39 * functionality provided by the SIM TSY. |
|
40 */ |
|
41 { |
|
42 public: |
|
43 static CSimCallBarring* NewL(CSimPhone* aPhone); |
|
44 CSimCallBarring(CSimPhone* aPhone); |
|
45 ~CSimCallBarring(); |
|
46 |
|
47 TInt ExtFunc(const TTsyReqHandle aReqHandle,const TInt aIpc, const TDataPackage& aPckg); |
|
48 TInt CancelService(const TInt aIpc, const TTsyReqHandle aReqHandle); |
|
49 TInt SetCallBarringStatus(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhoneCBCondition* aCB, RMobilePhone::TMobilePhoneCBChangeV1* aInfo); |
|
50 TInt SetCallBarringStatusCancel(const TTsyReqHandle aReqHandle); |
|
51 TInt SetCallBarringPassword(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhonePasswordChangeV1* aInfo); |
|
52 TInt SetCallBarringPasswordCancel(const TTsyReqHandle aReqHandle); |
|
53 TInt NotifyCallBarringStatusChange(const TTsyReqHandle aReqHandle, RMobilePhone::TMobilePhoneCBCondition* aCB); |
|
54 TInt NotifyCallBarringStatusChangeCancel(const TTsyReqHandle aReqHandle); |
|
55 |
|
56 TInt GetCallBarringStatusPhase1(const TTsyReqHandle aTsyReqHandle, CRetrieveMobilePhoneCBList::TGetCallBarringRequest* aReqData,TInt* aBufSize); |
|
57 TInt ProcessGetCallBarringStatusPhase1L(const TTsyReqHandle aTsyReqHandle,CRetrieveMobilePhoneCBList::TGetCallBarringRequest* aReqData,TInt* aBufSize); |
|
58 TInt GetCallBarringStatusPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf); |
|
59 TInt GetCallBarringStatusCancel(const TTsyReqHandle aTsyReqHandle); |
|
60 |
|
61 void UpdateCBListL(RMobilePhone::TMobilePhoneCBCondition* aCB, RMobilePhone::TMobilePhoneCBChangeV1* aCBInfo ); |
|
62 void CBActivateAllOutgingL(TDesC* codeString); |
|
63 void CBDeactivateAllOutgingL(TDesC* codeString); |
|
64 void FindAndCreateCBListL(); |
|
65 |
|
66 const CTestConfigSection* CfgFile(); |
|
67 |
|
68 private: |
|
69 void ConstructL(); |
|
70 |
|
71 |
|
72 private: |
|
73 CSimPhone* iPhone; // < Pointer to the parent phone class. |
|
74 |
|
75 struct TCBNotification |
|
76 { |
|
77 TBool iCBChangeInfoNotificationPending; |
|
78 TTsyReqHandle iCBChangeInfoReqHandle; |
|
79 RMobilePhone::TMobilePhoneCBCondition* iCurrentCBCondition; |
|
80 }; |
|
81 |
|
82 TCBNotification iCBNotification; |
|
83 |
|
84 RMobilePhone::TMobilePassword iPassword; |
|
85 |
|
86 CArrayPtrFlat<CListReadAllAttempt>* iGetCBStatus; |
|
87 CMobilePhoneCBList* iCBList; //The list for call barring. |
|
88 |
|
89 }; |
|
90 |
|
91 #endif |