sipexsipidlestate.h

来自「an example for sip for symbian」· C头文件 代码 · 共 90 行

H
90
字号
/*
* ==============================================================================
*  Name        : SIPExSIPIdleState.h
*  Part of     : SIPExSIPEngine
*  Interface   : 
*  Description : 
*  Version     : 
*
*  Copyright (c) 2004-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef _SIPEXSIPIDLESTATE_H_
#define _SIPEXSIPIDLESTATE_H_


//  INCLUDES
#include "SIPExSIPStateBase.h"

// FORWARD DECLARATIONS
class CSIPExSIPEngine;


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

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

	public://new functions
		/**
		* Links the states
		* @param aClientEstablishingState Invitation with media parameters is sent to peer.
		* @param aServerOfferingState Invitation with media parameters is received from peer.
		*/
		void LinkStates(
			CSIPExSIPStateBase& aClientEstablishingState,
			CSIPExSIPStateBase& aServerOfferingState );

	public://functions from base class
	
		/**
		* SendInviteL
		* Sends an INVITE to peer.
		* @param aEngine Reference to SIP Engine.
		* @param aSipUri uri of recipient.
		*/
		void SendInviteL( CSIPExSIPEngine& aEngine,
						  const TDesC8& aSipUri );
			
		/**
		* InviteReceivedL
		* INVITE has been received.
		* @param aEngine Reference to SIP Engine.
		* @param aTransaction Contains response elements.
		* The ownership is transferred.
		*/
		void InviteReceivedL(
			CSIPExSIPEngine& aEngine,
			CSIPServerTransaction* aTransaction );

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

	private:	//data members
		CSIPExSIPStateBase* iClientEstablishingState;
		CSIPExSIPStateBase* iServerOfferingState;
	};

#endif // _SIPEXSIPINITSTATE_H_

⌨️ 快捷键说明

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