|
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 _EMAIL_ENFORCEMENT_HEADER__ |
|
20 #define _EMAIL_ENFORCEMENT_HEADER__ |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include "SettingEnforcementManager.h" |
|
25 |
|
26 #include "CentRepToolClient.h" |
|
27 #include "DMUtilClient.h" |
|
28 #include <e32base.h> |
|
29 |
|
30 |
|
31 class CEmailEnforcement : public CEnforcementBase |
|
32 { |
|
33 public: |
|
34 //construction |
|
35 CEmailEnforcement(); |
|
36 ~CEmailEnforcement(); |
|
37 static CEmailEnforcement* NewL( const TDesC8& aEnforcementId); |
|
38 |
|
39 //from MEnforcementBase |
|
40 void InitEnforcementL( TRequestStatus& aRequestStatus); |
|
41 void DoEnforcementL( TRequestStatus& aRequestStatus); |
|
42 TBool InitReady(); |
|
43 TBool EnforcementReady(); |
|
44 void FinishEnforcementL( TBool aFlushSettings); |
|
45 void ResetEnforcementL(); |
|
46 |
|
47 void AccessRightList( RAccessControlList& aAccessControlList); |
|
48 static TBool ValidEnforcementElement( const TDesC8& aEnforcementId); |
|
49 private: |
|
50 //active state |
|
51 TInt iInitState; |
|
52 TInt iEnforcementState; |
|
53 |
|
54 //editor list |
|
55 RAccessControlList* iAccessControlList; |
|
56 |
|
57 //ACL editing |
|
58 RDMUtil iDMUtil; |
|
59 |
|
60 //CentRep tool |
|
61 RCentRepTool iCentRepServer; |
|
62 |
|
63 RSettingManagement iEMailPOPEnforcement; |
|
64 RSettingManagement iEMailSMTPEnforcement; |
|
65 RSettingManagement iEMailIMAPEnforcement; |
|
66 |
|
67 }; |
|
68 |
|
69 |
|
70 #endif |