|
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 __IM_ENFORCEMENT_HEADER__ |
|
20 #define __IM_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 |
|
31 |
|
32 class CImEnforcement : public CEnforcementBase |
|
33 { |
|
34 public: |
|
35 //construction |
|
36 CImEnforcement(); |
|
37 virtual ~CImEnforcement(); |
|
38 static CImEnforcement* NewL( const TDesC8& aEnforcementId ); |
|
39 |
|
40 //from MEnforcementBase |
|
41 void InitEnforcementL( TRequestStatus& aRequestStatus); |
|
42 void DoEnforcementL( TRequestStatus& aRequestStatus); |
|
43 TBool InitReady(); |
|
44 TBool EnforcementReady(); |
|
45 void FinishEnforcementL( TBool aFlushSettings); |
|
46 void ResetEnforcementL(); |
|
47 |
|
48 void AccessRightList( RAccessControlList& aAccessControlList); |
|
49 |
|
50 static TBool ValidEnforcementElement( const TDesC8& aEnforcementId); |
|
51 private: |
|
52 //active state |
|
53 TInt iInitState; |
|
54 TInt iEnforcementState; |
|
55 |
|
56 //editor list |
|
57 RAccessControlList* iAccessControlList; |
|
58 |
|
59 //CentRep tool |
|
60 RCentRepTool iCentRepServer; |
|
61 |
|
62 //ACL editing |
|
63 RDMUtil iDMUtil; |
|
64 |
|
65 RSettingManagement iIMEnforcement; |
|
66 |
|
67 }; |
|
68 |
|
69 |
|
70 #endif |