⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sipexsipserverofferingstate.h

📁 基于SYMBIAN手机操作系统
💻 H
字号:
/*
* ==============================================================================
*  Name        : SIPExSIPServerOfferingState.h
* 
* ==============================================================================
*/

#ifndef _SIPEXSIPSERVEROFFERINGSTATE_H_
#define _SIPEXSIPSERVEROFFERINGSTATE_H_

//  INCLUDES
#include "SIPExSIPStateBase.h"

// FORWARD DECLARATIONS
class CSIPExSIPEngine;

// CLASS DECLARATION
/**
* Reacts to events that are possible in 
* "ClientOffering" state.
*/
class CSIPExSIPServerOfferingState: public CSIPExSIPStateBase
	{
	public:// Constructors and destructor
        /**
        * Two-phased constructor.
        */
		IMPORT_C static CSIPExSIPServerOfferingState* NewL();

		/**
		* Destructor
		*/
		IMPORT_C virtual ~CSIPExSIPServerOfferingState();

	public://new functions
		/**
		* Links the states
		* @param aServerEstablishingState INVITE has been received and accepted, waiting for ACK.
		* @param aTerminatedState Peer has declined the invite, SIP Session is terminated.
		*/
		void LinkStates(
			CSIPExSIPStateBase& aServerEstablishingState,
			CSIPExSIPStateBase& aTerminatedState );

	public://functions from base class


        /**
		* ByeReceivedL
		* BYE has been received.
		* @param aEngine Reference to Engine object.
		* @param aTransaction Contains response elements.
		*/
		void ByeReceivedL( CSIPExSIPEngine& aEngine,
						   CSIPServerTransaction& aTransaction );
						   
		/**
		* CancelReceivedL
		* CANCEL has been received.
		* @param aEngine Reference to Engine object.
		* @param aTransaction Contains response elements.
		*/
		void CancelReceivedL( CSIPExSIPEngine& aEngine,
							  CSIPClientTransaction& aTransaction );
							  
		/**
		* AcceptInviteL
		* Send 200 (OK) as response to an INVITE
		* received from peer.
		* @param aEngine Reference to Engine object.
		*/
		void AcceptInviteL( CSIPExSIPEngine& aEngine );

		/**
		* DeclineInviteL
		* Send 486 (Busy Here) as response
		* to an INVITE received from peer.
		* @param aEngine Reference to Engine object.
		*/
		void DeclineInviteL( CSIPExSIPEngine& aEngine );


	private:
	    /**
		* C++ default constructor.
		*/
		CSIPExSIPServerOfferingState();

	private://data members
		CSIPExSIPStateBase* iServerEstablishingState;
		CSIPExSIPStateBase* iTerminatedState;
	};

#endif // _SIPEXSIPSERVEROFFERINGSTATE_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -