|
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_LOADPOLICY_UMA_H__) |
|
24 #define __TEF_IPSEC_LOADPOLICY_UMA_H__ |
|
25 |
|
26 //local includes here |
|
27 #include "te_IPSec_Load_Policy_Base.h" |
|
28 #include "ipsecpolapi.h" |
|
29 |
|
30 //forward declaration |
|
31 class CT_SelectorConflict; |
|
32 class RIpsecPolicyServ; |
|
33 |
|
34 |
|
35 /** |
|
36 * This class is to test the policy loading in the order of Bypasss policy,Drop Policy, Drop Policy |
|
37 * |
|
38 */ |
|
39 |
|
40 class CT_LoadPolicyUMA : public CT_IPSec_Load_Policy_Base |
|
41 { |
|
42 public: |
|
43 CT_LoadPolicyUMA(); |
|
44 ~CT_LoadPolicyUMA(); |
|
45 |
|
46 static CT_LoadPolicyUMA* NewL(); |
|
47 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
48 virtual TCleanupOperation CleanupOperation() |
|
49 { |
|
50 return CleanupOperation; |
|
51 } |
|
52 |
|
53 protected: |
|
54 void ConstructL(); |
|
55 |
|
56 private: |
|
57 static void CleanupOperation(TAny* aAny) |
|
58 { |
|
59 TInt* number = static_cast<TInt*>(aAny); |
|
60 delete number; |
|
61 } |
|
62 |
|
63 inline void DoCmdNewL(const TDesC& aEntry); |
|
64 void DoLoadUMAPolicy(const TDesC& aSection); |
|
65 void DoCmdClose(const TDesC& /*aSection*/); |
|
66 void DoUnloadBypassPolicy(const TDesC& /*aSection*/); |
|
67 void DoUnloadDropPolicy(const TDesC& /*aSection*/); |
|
68 void DoLoadDropModePolicy(const TDesC& /*aSection*/); |
|
69 void DoLoadBypassModePolicy(const TDesC& /*aSection*/); |
|
70 void DoUnloadUMAPolicy(const TDesC& /*aSection*/); |
|
71 |
|
72 protected: |
|
73 TZoneInfoSet iMyZoneInfoSet; |
|
74 RIpsecPolicyServ iDrpPolicyServer; |
|
75 TPolicyHandlePckg iDrpPolicyHandle; |
|
76 RIpsecPolicyServ iBypsPolicyServer; |
|
77 TPolicyHandlePckg iBypsPolicyHandle; |
|
78 TPolicyHandlePckg iUMAPolicyHandle; |
|
79 }; |
|
80 |
|
81 #endif //__TEF_IPSEC_LOADPOLICY_UMA_H__ |