|
1 /* |
|
2 * Copyright (c) 2000 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: Implementation of policymanagement components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _COMMSDAT_ENFORCEMENT_HEADER__ |
|
20 #define _COMMSDAT_ENFORCEMENT_HEADER__ |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include "SettingEnforcementManager.h" |
|
25 |
|
26 #include "CentRepToolClient.h" |
|
27 #include "DMUtilClient.h" |
|
28 #include <e32base.h> |
|
29 #include <SettingEnforcementInfo.h> |
|
30 #include <commdb.h> |
|
31 |
|
32 |
|
33 |
|
34 class CCommsDatEnforcement : public CEnforcementBase |
|
35 { |
|
36 public: |
|
37 //construction |
|
38 CCommsDatEnforcement(); |
|
39 virtual ~CCommsDatEnforcement(); |
|
40 static CCommsDatEnforcement* NewL( const TDesC8& aEnforcementId ); |
|
41 void ConstructL(); |
|
42 |
|
43 //from MEnforcementBase |
|
44 void InitEnforcementL( TRequestStatus& aRequestStatus); |
|
45 void DoEnforcementL( TRequestStatus& aRequestStatus); |
|
46 TBool InitReady(); |
|
47 TBool EnforcementReady(); |
|
48 void FinishEnforcementL( TBool aFlushSettings); |
|
49 void ResetEnforcementL(); |
|
50 |
|
51 |
|
52 void AccessRightList( RAccessControlList& aAccessControlList); |
|
53 |
|
54 static TBool ValidEnforcementElement( const TDesC8& aEnforcementId); |
|
55 |
|
56 void LockWLANAccessPointsL( TBool aLockValue ); |
|
57 |
|
58 TInt CheckTableL( const TDesC& aTableName ); |
|
59 |
|
60 |
|
61 TUint32 CCommsDatEnforcement::GetRecordIdL( const TDesC& aTableName ); |
|
62 |
|
63 private: |
|
64 //active state |
|
65 TInt iInitState; |
|
66 TInt iEnforcementState; |
|
67 TBool iRestore; |
|
68 |
|
69 //mask value for setting |
|
70 RArray<TUint32> iMaskList; |
|
71 RArray<TPtrC> iTableList; |
|
72 |
|
73 //editor list |
|
74 RAccessControlList* iAccessControlList; |
|
75 |
|
76 //CentRep tool |
|
77 RCentRepTool iCentRepServer; |
|
78 |
|
79 RSettingManagement iCommsDatEnforcement; |
|
80 //ACL editing |
|
81 RDMUtil iDMUtil; |
|
82 |
|
83 KSettingEnforcements iSettingType; |
|
84 |
|
85 //@var session - Owned |
|
86 CMDBSession* iSession; |
|
87 }; |
|
88 |
|
89 |
|
90 #endif |