realtimenetprots/sipfw/SampleApp/sipengine/inc/SIPExSIPTerminatingState.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 
       
     2 /*
       
     3 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * Nokia Corporation - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef _SIPEXSIPTERMINATINGSTATE_H_
       
    22 #define _SIPEXSIPTERMINATINGSTATE_H_
       
    23 
       
    24 //  INCLUDES
       
    25 #include "SIPExSIPStateBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CSIPExSIPEngine;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 * Reacts to events that are possible in 
       
    33 * "Established" state.
       
    34 */
       
    35 class CSIPExSIPTerminatingState: public CSIPExSIPStateBase
       
    36 	{
       
    37 	public:// Constructors and destructor
       
    38         /**
       
    39         * Two-phased constructor.
       
    40         */
       
    41 		IMPORT_C static CSIPExSIPTerminatingState* NewL();
       
    42 
       
    43 		/**
       
    44 		* Destructor
       
    45 		*/
       
    46 		IMPORT_C virtual ~CSIPExSIPTerminatingState();
       
    47 
       
    48 	public://new functions
       
    49 		/**
       
    50 		* Links the states
       
    51 		* @param aTerminatedState SIP Session has been ended.
       
    52 		*/
       
    53 		void LinkStates( CSIPExSIPStateBase& aIdleState );
       
    54 
       
    55 	public://functions from base class
       
    56 
       
    57 		/**
       
    58 		* ResponseReceivedL
       
    59 		* A SIP response has been received from the network.
       
    60 		* @param aEngine Reference to Engine object.
       
    61 		* @param aTransaction Contains response elements.
       
    62 		*/
       
    63 		void ResponseReceivedL( CSIPExSIPEngine& aEngine,
       
    64 								CSIPClientTransaction& aTransaction );
       
    65 
       
    66 
       
    67 
       
    68 	private:
       
    69 	    /**
       
    70 		* C++ default constructor.
       
    71 		*/
       
    72 		CSIPExSIPTerminatingState();
       
    73 
       
    74 	private://data members
       
    75 		CSIPExSIPStateBase* iIdleState;
       
    76 	};
       
    77 
       
    78 #endif // _SIPEXSIPTERMINATINGSTATE_H_
       
    79