networkprotocolmodules/networkprotocolmodule/LbsProtocolModule/inc/cstatehandlerbase.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2006-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This file defines the base class for protocol state handlers
       
    15 // employed by the Test Protocol Module
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalComponent
       
    22  @test
       
    23 */
       
    24 
       
    25 #ifndef __CSTATEHANDLERBASE_H__
       
    26 #define __CSTATEHANDLERBASE_H__
       
    27 
       
    28 #include <e32base.h>
       
    29 #include "cstatemachinebase.h"
       
    30 
       
    31 
       
    32 /** Class that defines the base class for protocol state handlers.
       
    33 */
       
    34 NONSHARABLE_CLASS(CStateHandlerBase) : public CBase
       
    35 	{
       
    36 
       
    37 public:
       
    38 	
       
    39 	/** Destructor
       
    40 	*/
       
    41 	virtual ~CStateHandlerBase();
       
    42 	
       
    43 	// Pure virtual methods to be implemented in derived classes
       
    44 	
       
    45 	/** Initialise state attributes
       
    46 	*/
       
    47 	virtual void Initialise() = 0;
       
    48 	
       
    49 	/** Perform entry actions
       
    50 	*/
       
    51 	virtual void EntryActions() = 0;
       
    52 	
       
    53 	/** Perform exit actions
       
    54 	*/
       
    55 	virtual void ExitActions() = 0;
       
    56 
       
    57 protected:
       
    58 
       
    59 	/** Standard constructor
       
    60 	@param aMachine Reference to the parent state machine.
       
    61 	*/
       
    62 	CStateHandlerBase(CStateMachineBase& aMachine);
       
    63 	
       
    64 	
       
    65 protected:
       
    66 
       
    67 	/** Parent state machine.
       
    68 	*/
       
    69 	CStateMachineBase& iMachine;
       
    70 	
       
    71 	};
       
    72 
       
    73 #endif // __CSTATEHANDLERBASE_H__