policymanagement/policyengine/policyengineserver/inc/CommsDatEnforcement.h
branchRCL_3
changeset 76 3cdbd92ee07b
parent 0 b497e44ab2fc
equal deleted inserted replaced
69:a082c848c9a9 76:3cdbd92ee07b
    18 
    18 
    19 #ifndef _COMMSDAT_ENFORCEMENT_HEADER__
    19 #ifndef _COMMSDAT_ENFORCEMENT_HEADER__
    20 #define _COMMSDAT_ENFORCEMENT_HEADER__
    20 #define _COMMSDAT_ENFORCEMENT_HEADER__
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 
    23 #include <cmmanagerdef.h>
    24 #include "SettingEnforcementManager.h"
    24 #include "SettingEnforcementManager.h"
    25 
    25 
    26 #include "CentRepToolClient.h"
    26 #include "CentRepToolClient.h"
    27 #include "DMUtilClient.h"
    27 #include "DMUtilClient.h"
    28 #include <e32base.h>
    28 #include <e32base.h>
    29 #include <SettingEnforcementInfo.h>
    29 #include <SettingEnforcementInfo.h>
    30 #include <commdb.h>
    30 #include <commdb.h>
    31 
    31 
    32 
    32 using namespace CMManager;
       
    33 class RCmDestinationExt;
    33 
    34 
    34 class CCommsDatEnforcement : public CEnforcementBase
    35 class CCommsDatEnforcement : public CEnforcementBase
    35 {
    36     {
    36 	public:
    37 public:
    37 		//construction
    38     //construction
    38 		CCommsDatEnforcement();
    39     CCommsDatEnforcement();
    39 		virtual ~CCommsDatEnforcement();
    40     virtual ~CCommsDatEnforcement();
    40 		static CCommsDatEnforcement* NewL( const TDesC8& aEnforcementId );
    41     static CCommsDatEnforcement* NewL(const TDesC8& aEnforcementId);
    41 		void ConstructL();
    42     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 
    43 
    51 				
    44     //from MEnforcementBase
    52 		void AccessRightList( RAccessControlList& aAccessControlList);		
    45     void InitEnforcementL(TRequestStatus& aRequestStatus);
    53 		
    46     void DoEnforcementL(TRequestStatus& aRequestStatus);
    54 		static TBool ValidEnforcementElement( const TDesC8& aEnforcementId);
    47     TBool InitReady();
    55 		
    48     TBool EnforcementReady();
    56 		void LockWLANAccessPointsL( TBool aLockValue );
    49     void FinishEnforcementL(TBool aFlushSettings);
    57 		
    50     void ResetEnforcementL();
    58 		TInt CheckTableL( const TDesC& aTableName );
    51 
    59 		
    52     void AccessRightList(RAccessControlList& aAccessControlList);
    60 		
    53 
    61 		TUint32 CCommsDatEnforcement::GetRecordIdL( const TDesC& aTableName );
    54     static TBool ValidEnforcementElement(const TDesC8& aEnforcementId);
    62 		
    55     TInt CheckTableL(const TDesC& aTableName);
    63 	private:
    56 
    64 		//active state 
    57     /**Sets Protection level to all the destinations
    65 		TInt iInitState;
    58      * @param aProtLevel Protection level to be set on the destinations
    66 		TInt iEnforcementState;
    59      */
    67 		TBool iRestore;
    60     void SetProtectionL(TProtectionLevel aProtLevel);
    68 		
    61     
    69 		//mask value for setting
    62     /**Sets Protection level to all the Connection Methods in the  destination
    70 		RArray<TUint32> iMaskList;
    63      * @param destination Destination in which the Protection is set on the Connection Methods
    71 		RArray<TPtrC> iTableList;
    64      * @param aProtLevel Protection level to be set on the Connection Methods
    72 		
    65      */
    73 		//editor list
    66     void SetCMProtectionL(RCmDestinationExt& aDestination,
    74 		RAccessControlList* iAccessControlList;
    67             TProtectionLevel aProtLevel);
    75 		
    68 
    76 		//CentRep tool 
    69 private:
    77 		RCentRepTool iCentRepServer;
    70     //active state 
    78 		
    71     TInt iInitState;
    79 		RSettingManagement iCommsDatEnforcement;
    72     TInt iEnforcementState;
    80 		//ACL editing
    73     TBool iRestore;
    81 		RDMUtil iDMUtil;
    74 
    82 				
    75     //editor list
    83 		KSettingEnforcements iSettingType;
    76     RAccessControlList* iAccessControlList;
    84 		
    77 
    85 		//@var session - Owned
    78     //CentRep tool 
    86         CMDBSession* iSession;
    79     RCentRepTool iCentRepServer;
    87 };
    80 
       
    81     //ACL editing
       
    82     RDMUtil iDMUtil;
       
    83 
       
    84     KSettingEnforcements iSettingType;
       
    85 
       
    86     };
    88 
    87 
    89 
    88 
    90 #endif
    89 #endif