?? sipexsipserverofferingstate.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_
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -