|
1 /* |
|
2 * Copyright (c) 2003 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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 * @file ts_ipsec_crypto.h header file for main test code for IPsec |
|
21 */ |
|
22 |
|
23 #if (!defined __TEF_IPSEC_LOADPOLICYBDD_H__) |
|
24 #define __TEF_IPSEC_LOADPOLICYBDD_H_ |
|
25 |
|
26 //local includes here |
|
27 #include "ipsecpolapi.h" |
|
28 #include "te_ipsec_load_policy_base.h" |
|
29 |
|
30 //forward declaration |
|
31 class CT_SelectorConflict; |
|
32 |
|
33 class CT_LoadPolicyBDD : public CT_IPSec_Load_Policy_Base |
|
34 { |
|
35 public: |
|
36 CT_LoadPolicyBDD(); |
|
37 ~CT_LoadPolicyBDD(); |
|
38 |
|
39 static CT_LoadPolicyBDD* NewL(); |
|
40 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
41 virtual TCleanupOperation CleanupOperation() |
|
42 { |
|
43 return CleanupOperation; |
|
44 } |
|
45 |
|
46 protected: |
|
47 void ConstructL(); |
|
48 |
|
49 private: |
|
50 static void CleanupOperation(TAny* aAny) |
|
51 { |
|
52 TInt* number = static_cast<TInt*>(aAny); |
|
53 delete number; |
|
54 } |
|
55 |
|
56 inline void DoCmdNewL(const TDesC& aEntry); |
|
57 void DoLoadDropModePolicy(const TDesC& aSection); |
|
58 void DoCmdClose(const TDesC& /*aSection*/); |
|
59 void DoLoadBypassModePolicy(const TDesC& /*aSection*/); |
|
60 void DoLoadNewDropModePolicy(const TDesC& /*aSection*/); |
|
61 void DoUnloadBypassPolicy(const TDesC& /*aSection*/); |
|
62 void DoUnloadDropPolicy(const TDesC& /*aSection*/); |
|
63 void DoUnloadNewDropModePolicy(const TDesC& /*aSection*/); |
|
64 protected: |
|
65 |
|
66 TZoneInfoSet iMyZoneInfoSet; |
|
67 RIpsecPolicyServ iDrpPolicyServer; |
|
68 TPolicyHandlePckg iDrpPolicyHandle; |
|
69 RIpsecPolicyServ iBypsPolicyServer; |
|
70 TPolicyHandlePckg iBypsPolicyHandle; |
|
71 TPolicyHandlePckg iNewDrpPolicyHandle; |
|
72 }; |
|
73 |
|
74 #endif // __TEF_IPSEC_LOADPOLICYBDD_H_ |