diff -r 000000000000 -r b497e44ab2fc policymanagement/policyengine/policyengineserver/inc/IMEnforcement.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/policymanagement/policyengine/policyengineserver/inc/IMEnforcement.h Thu Dec 17 09:07:52 2009 +0200 @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of policymanagement components +* +*/ + + +#ifndef __IM_ENFORCEMENT_HEADER__ +#define __IM_ENFORCEMENT_HEADER__ + +// INCLUDES + +#include "SettingEnforcementManager.h" + +#include "CentRepToolClient.h" +#include "DMUtilClient.h" +#include +#include + + +class CImEnforcement : public CEnforcementBase +{ + public: + //construction + CImEnforcement(); + virtual ~CImEnforcement(); + static CImEnforcement* NewL( const TDesC8& aEnforcementId ); + + //from MEnforcementBase + void InitEnforcementL( TRequestStatus& aRequestStatus); + void DoEnforcementL( TRequestStatus& aRequestStatus); + TBool InitReady(); + TBool EnforcementReady(); + void FinishEnforcementL( TBool aFlushSettings); + void ResetEnforcementL(); + + void AccessRightList( RAccessControlList& aAccessControlList); + + static TBool ValidEnforcementElement( const TDesC8& aEnforcementId); + private: + //active state + TInt iInitState; + TInt iEnforcementState; + + //editor list + RAccessControlList* iAccessControlList; + + //CentRep tool + RCentRepTool iCentRepServer; + + //ACL editing + RDMUtil iDMUtil; + + RSettingManagement iIMEnforcement; + +}; + + +#endif \ No newline at end of file