?? sipexsipterminatingstate.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 + -