sipexsipterminatingstate.cpp

来自「an example for sip for symbian」· C++ 代码 · 共 87 行

CPP
87
字号
/*
* ==============================================================================
*  Name        : CSIPExSIPTerminatingState.cpp
*  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.
* ==============================================================================
*/

// INCLUDE FILES
#include	"SIPExSIPTerminatingState.h"
#include	"SIPExSIPEngine.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSIPExSIPTerminatingState::CSIPExSIPTerminatingState
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
CSIPExSIPTerminatingState::CSIPExSIPTerminatingState()
	{
	}

// -----------------------------------------------------------------------------
// CSIPExSIPTerminatingState::~CSIPExSIPTerminatingState
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C CSIPExSIPTerminatingState::~CSIPExSIPTerminatingState()
	{
	}

// -----------------------------------------------------------------------------
// CSIPExSIPTerminatingState::NewL()
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C CSIPExSIPTerminatingState* CSIPExSIPTerminatingState::NewL()
	{
	CSIPExSIPTerminatingState* self =
		new (ELeave) CSIPExSIPTerminatingState();
	return self;
	}

// -----------------------------------------------------------------------------
// CSIPExSIPTerminatingState::LinkStates()
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CSIPExSIPTerminatingState::LinkStates(
	CSIPExSIPStateBase& aIdleState )
	{
	iIdleState = &aIdleState;
	}


// -----------------------------------------------------------------------------
// CSIPExSIPTerminatingState::ResponseReceivedL()
// (other items were commented in a header).
// -----------------------------------------------------------------------------
void CSIPExSIPTerminatingState::ResponseReceivedL(
	CSIPExSIPEngine& aEngine,
	CSIPClientTransaction& aTransaction )
	{
	const CSIPResponseElements* respElem = aTransaction.ResponseElements();

	if ( respElem->StatusCode() == 200 )
		{
		aEngine.Observer()->SessionEnded();
		aEngine.ClearClientTx();
		aEngine.SetCurrentState( iIdleState );
		}
	else
		{
		// Hmmm...
		}
	}

// End of file

⌨️ 快捷键说明

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