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

📄 sipexsipterminatingstate.cpp

📁 an example for sip for symbian
💻 CPP
字号:
/*
* ==============================================================================
*  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -