diff -r abbed5a4b42a -r 8d540f55e491 networksecurity/ipsec/te_ipsec_selector_confilict/inc/te_loadpolicy_bdd.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/networksecurity/ipsec/te_ipsec_selector_confilict/inc/te_loadpolicy_bdd.h Wed Sep 01 12:33:58 2010 +0100 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Symbian Foundation License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +/** + * @file ts_ipsec_crypto.h header file for main test code for IPsec + */ + +#if (!defined __TEF_IPSEC_LOADPOLICYBDD_H__) +#define __TEF_IPSEC_LOADPOLICYBDD_H_ + +//local includes here +#include "ipsecpolapi.h" +#include "te_ipsec_load_policy_base.h" + +//forward declaration +class CT_SelectorConflict; + +class CT_LoadPolicyBDD : public CT_IPSec_Load_Policy_Base + { +public: + CT_LoadPolicyBDD(); + ~CT_LoadPolicyBDD(); + + static CT_LoadPolicyBDD* NewL(); + virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); + virtual TCleanupOperation CleanupOperation() + { + return CleanupOperation; + } + +protected: + void ConstructL(); + +private: + static void CleanupOperation(TAny* aAny) + { + TInt* number = static_cast(aAny); + delete number; + } + + inline void DoCmdNewL(const TDesC& aEntry); + void DoLoadDropModePolicy(const TDesC& aSection); + void DoCmdClose(const TDesC& /*aSection*/); + void DoLoadBypassModePolicy(const TDesC& /*aSection*/); + void DoLoadNewDropModePolicy(const TDesC& /*aSection*/); + void DoUnloadBypassPolicy(const TDesC& /*aSection*/); + void DoUnloadDropPolicy(const TDesC& /*aSection*/); + void DoUnloadNewDropModePolicy(const TDesC& /*aSection*/); +protected: + + TZoneInfoSet iMyZoneInfoSet; + RIpsecPolicyServ iDrpPolicyServer; + TPolicyHandlePckg iDrpPolicyHandle; + RIpsecPolicyServ iBypsPolicyServer; + TPolicyHandlePckg iBypsPolicyHandle; + TPolicyHandlePckg iNewDrpPolicyHandle; + }; + +#endif // __TEF_IPSEC_LOADPOLICYBDD_H_