realtimenetprots/sipfw/SampleApp/sipengine/inc/SIPExSIPClientEstablishingState.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 _SIPEXSIPCLIENTESTABLISHINGSTATE_H_
       
    22 #define _SIPEXSIPCLIENTESTABLISHINGSTATE_H_
       
    23 
       
    24 
       
    25 //  INCLUDES
       
    26 #include "SIPExSIPStateBase.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CSIPExSIPEngine;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 * Reacts to events that are possible in 
       
    35 * "ClientEstablishing" state.
       
    36 */
       
    37 class CSIPExSIPClientEstablishingState: public CSIPExSIPStateBase
       
    38 	{
       
    39 	public:// Constructors and destructor
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43 		IMPORT_C static CSIPExSIPClientEstablishingState* NewL();
       
    44 
       
    45 		/**
       
    46 		* Destructor
       
    47 		*/
       
    48 		IMPORT_C virtual ~CSIPExSIPClientEstablishingState();
       
    49 
       
    50 	public://new functions
       
    51 		/**
       
    52 		* Links the states
       
    53 		* @param aIdleState The "waiting for something to happen" state.
       
    54 		* @param aClientOfferingState Provisional response to sent invitiation is received from peer.
       
    55 		*/
       
    56 		void LinkStates(
       
    57 			CSIPExSIPStateBase& aIdleState,
       
    58 			CSIPExSIPStateBase& aClientOfferingState,
       
    59 			CSIPExSIPStateBase& aEstablishedState );
       
    60 
       
    61 	public://functions from base class
       
    62 
       
    63 		/**
       
    64 		* CancelInviteL
       
    65 		* Cancel an INVITE sent previously.
       
    66 		* @param aEngine Reference to Engine object.
       
    67 		*/
       
    68 		void CancelInviteL( CSIPExSIPEngine& aEngine );
       
    69 
       
    70 
       
    71 		/**
       
    72 		* ResponseReceivedL
       
    73 		* A SIP response has been received from the network.
       
    74 		* @param aEngine Reference to Engine object.
       
    75 		* @param aTransaction Contains response elements.
       
    76 		*/
       
    77 		void ResponseReceivedL( CSIPExSIPEngine& aEngine,
       
    78 								CSIPClientTransaction& aTransaction );
       
    79 
       
    80 
       
    81 	private:
       
    82 	    /**
       
    83 		* C++ default constructor.
       
    84 		*/
       
    85 		CSIPExSIPClientEstablishingState();
       
    86 
       
    87 	private://data members
       
    88 		CSIPExSIPStateBase* iIdleState;
       
    89 		CSIPExSIPStateBase* iClientOfferingState;
       
    90 		CSIPExSIPStateBase* iEstablishedState;
       
    91 	};
       
    92 
       
    93 #endif // _SIPEXSIPCLIENTESTABLISHINGSTATE_H_
       
    94