networksecurity/ipsec/te_ipsec_selector_confilict/inc/te_ipsec_load_policy_base.h
branchRCL_3
changeset 75 c1029e558ef5
parent 67 bb2423252ea3
child 76 27c54f8619d4
equal deleted inserted replaced
67:bb2423252ea3 75:c1029e558ef5
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Connection Test Step Header
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20 */
       
    21 #ifndef __TEF_IPSEC_LOAD_POLICY_BASE__
       
    22 #define __TEF_IPSEC_LOAD_POLICY_BASE__
       
    23 
       
    24 
       
    25 //system includes here
       
    26 #include<DataWrapper.h>
       
    27 
       
    28 //local includes here
       
    29 //---------------------------------------------------------------------------
       
    30 class CT_IPSec_Load_Policy_Base : public CDataWrapper
       
    31 {
       
    32 public:
       
    33     virtual ~CT_IPSec_Load_Policy_Base() 
       
    34     {    
       
    35     delete iObject;
       
    36     iObject = NULL;
       
    37     }
       
    38     
       
    39     CT_IPSec_Load_Policy_Base(): iObject(NULL)
       
    40     {    
       
    41     
       
    42     }
       
    43     
       
    44     virtual TAny* GetObject() { return iObject; }
       
    45     
       
    46     virtual void SetObjectL(TAny* aObject)
       
    47         {
       
    48         DestroyData();
       
    49         iObject = static_cast<TInt*> (aObject);
       
    50         }
       
    51     
       
    52     virtual void    DisownObjectL()
       
    53         {
       
    54         iObject = NULL;
       
    55         }
       
    56     
       
    57     void DestroyData()
       
    58         {
       
    59         delete iObject;
       
    60         iObject=NULL;
       
    61         }
       
    62 
       
    63 protected:
       
    64 
       
    65 	virtual void DoDelay(const TDesC& /*aSection*/) {};
       
    66 	virtual TBool DoCommandL(const TTEFFunction& /* aCommand */, const TTEFSectionName& /*aSection*/, const TInt /*aAsyncErrorIndex*/){return ETrue;}
       
    67 	
       
    68 	/*
       
    69 	*Execute the test (test case code).
       
    70 	*/
       
    71 	virtual void DoCmdTestConnection(const TDesC& /*aSection*/){};
       
    72 
       
    73 	/*
       
    74 	*Execute the test for sending data(test case code).
       
    75 	*/
       
    76 	virtual void DoCmdSendPacket(const TDesC& /*aSection*/){};
       
    77 	
       
    78 protected :	
       
    79 	TInt* iObject;
       
    80 	
       
    81 public :	
       
    82 	virtual void StopWaiting(){};
       
    83 };
       
    84 
       
    85 #endif//__TEF_IPSEC_LOAD_POLICY_BASE__
       
    86