S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExSIPClientEstablishingState.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : SIPExSIPClientEstablishingState.h
00004 *  Part of     : SIPExSIPEngineSIPEngine
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2004-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef _SIPEXSIPCLIENTESTABLISHINGSTATE_H_
00017 #define _SIPEXSIPCLIENTESTABLISHINGSTATE_H_
00018 
00019 
00020 //  INCLUDES
00021 #include "SIPExSIPStateBase.h"
00022 
00023 // FORWARD DECLARATIONS
00024 class CSIPExSIPEngine;
00025 
00026 
00027 // CLASS DECLARATION
00028 /**
00029 * Reacts to events that are possible in 
00030 * "ClientEstablishing" state.
00031 */
00032 class CSIPExSIPClientEstablishingState: public CSIPExSIPStateBase
00033         {
00034         public:// Constructors and destructor
00035         /**
00036         * Two-phased constructor.
00037         */
00038                 IMPORT_C static CSIPExSIPClientEstablishingState* NewL();
00039 
00040                 /**
00041                 * Destructor
00042                 */
00043                 IMPORT_C virtual ~CSIPExSIPClientEstablishingState();
00044 
00045         public://new functions
00046                 /**
00047                 * Links the states
00048                 * @param aIdleState The "waiting for something to happen" state.
00049                 * @param aClientOfferingState Provisional response to sent invitiation is received from peer.
00050                 */
00051                 void LinkStates(
00052                         CSIPExSIPStateBase& aIdleState,
00053                         CSIPExSIPStateBase& aClientOfferingState,
00054                         CSIPExSIPStateBase& aEstablishedState );
00055 
00056         public://functions from base class
00057 
00058                 /**
00059                 * CancelInviteL
00060                 * Cancel an INVITE sent previously.
00061                 * @param aEngine Reference to Engine object.
00062                 */
00063                 void CancelInviteL( CSIPExSIPEngine& aEngine );
00064 
00065 
00066                 /**
00067                 * ResponseReceivedL
00068                 * A SIP response has been received from the network.
00069                 * @param aEngine Reference to Engine object.
00070                 * @param aTransaction Contains response elements.
00071                 */
00072                 void ResponseReceivedL( CSIPExSIPEngine& aEngine,
00073                                                                 CSIPClientTransaction& aTransaction );
00074 
00075 
00076         private:
00077             /**
00078                 * C++ default constructor.
00079                 */
00080                 CSIPExSIPClientEstablishingState();
00081 
00082         private://data members
00083                 CSIPExSIPStateBase* iIdleState;
00084                 CSIPExSIPStateBase* iClientOfferingState;
00085                 CSIPExSIPStateBase* iEstablishedState;
00086         };
00087 
00088 #endif // _SIPEXSIPCLIENTESTABLISHINGSTATE_H_
00089 

© Nokia 2006

Back to top