S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SIPExSIPClientOfferingState.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : SIPExSIPClientOfferingState.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 _SIPEXSIPCLIENTOFFERINGSTATE_H_
00017 #define _SIPEXSIPCLIENTOFFERINGSTATE_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 * "ClientOffering" state.
00031 */
00032 class CSIPExSIPClientOfferingState: public CSIPExSIPStateBase
00033         {
00034         public:// Constructors and destructor
00035         /**
00036         * Two-phased constructor.
00037         */
00038                 IMPORT_C static CSIPExSIPClientOfferingState* NewL();
00039 
00040                 /**
00041                 * Destructor
00042                 */
00043                 IMPORT_C virtual ~CSIPExSIPClientOfferingState();
00044 
00045         public://new functions
00046                 /**
00047                 * Links the states
00048                 * @param aIdleState The "waiting for something to happen" state.
00049                 * @param aEstablishedState SIP Session is established.
00050                 * @param aTerminatedState Peer has declined the invite, SIP Session is terminated.
00051                 */
00052                 void LinkStates(
00053                         CSIPExSIPStateBase& aIdleState,
00054                         CSIPExSIPStateBase& aEstablishedState,
00055                         CSIPExSIPStateBase& aTerminatedState );
00056 
00057         public://functions from base class
00058 
00059                 /**
00060                 * CancelInviteL
00061                 * Cancel an INVITE sent previously.
00062                 * @param aEngine Reference to Engine object.
00063                 */
00064                 void CancelInviteL( CSIPExSIPEngine& aEngine );
00065 
00066 
00067                 /**
00068                 * ResponseReceivedL
00069                 * A SIP response has been received from the network.
00070                 * @param aEngine Reference to Engine object.
00071                 * @param aTransaction Contains response elements.
00072                 */
00073                 void ResponseReceivedL( CSIPExSIPEngine& aEngine,
00074                                                                 CSIPClientTransaction& aTransaction );
00075 
00076 
00077         private:
00078             /**
00079                 * C++ default constructor.
00080                 */
00081                 CSIPExSIPClientOfferingState();
00082 
00083         private://data members
00084                 CSIPExSIPStateBase* iIdleState;
00085                 CSIPExSIPStateBase* iEstablishedState;
00086                 CSIPExSIPStateBase* iTerminatedState;
00087         };
00088 
00089 #endif // _SIPEXSIPCLIENTOFFERINGSTATE_H_
00090 

© Nokia 2006

Back to top