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

📄 sipextimeouttimer.cpp

📁 an example for sip for symbian
💻 CPP
字号:
/*
* ==============================================================================
*  Name        : SIPExTimeOutTimer.cpp
*  Part of     : SIPExSocketEngine
*  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.
* ==============================================================================
*/

// INCLUDES
#include    "SIPExTimeOutTimer.h"
#include    "SIPExTimeOutNotify.h"

// -----------------------------------------------------------------------------
// CSIPExTimeOutTimer::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSIPExTimeOutTimer* CSIPExTimeOutTimer::NewL( 
    MSIPExTimeOutNotify& aTimeOutNotify )
    {
    CSIPExTimeOutTimer* self = new( ELeave ) CSIPExTimeOutTimer( aTimeOutNotify );
    
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();

    return self;
    }

// -----------------------------------------------------------------------------
// CSIPExTimeOutTimer::CSIPExTimeOutTimer
// Constructor.
// -----------------------------------------------------------------------------
//
CSIPExTimeOutTimer::CSIPExTimeOutTimer( MSIPExTimeOutNotify& aTimeOutNotify )
    : CTimer( EPriorityStandard ), iNotifier( aTimeOutNotify )
    {
    }

// -----------------------------------------------------------------------------
// CSIPExTimeOutTimer::ConstructL
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSIPExTimeOutTimer::ConstructL()
    {
	CTimer::ConstructL();
	CActiveScheduler::Add( this );
    }
   
// -----------------------------------------------------------------------------
// CSIPExTimeOutTimer::~CSIPExTimeOutTimer
// Destructor.
// -----------------------------------------------------------------------------
//
CSIPExTimeOutTimer::~CSIPExTimeOutTimer()
    {
	Cancel();
    }

// -----------------------------------------------------------------------------
// CSIPExTimeOutTimer::RunL
// To inform the notifier that xx seconds is up.
// -----------------------------------------------------------------------------
//
void CSIPExTimeOutTimer::RunL()
    {
	// Tell the notifier that times out.
	iNotifier.TimerExpired();
    }

//  End of File  

⌨️ 快捷键说明

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