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

📄 jishiqi.cpp

📁 在Symbian OS S60 3rd上面
💻 CPP
字号:
/*
 ============================================================================
 Name		: jishiqi.cpp
 Author	  : 
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : Cjishiqi implementation
 ============================================================================
 */

#include "jishiqi.h"
#include "ImageTestAppView.h"
#include "ImageTestAppUi.h"
#include <e32std.h>
Cjishiqi::Cjishiqi(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
				:CTimer(aPriority), iNotify(aTimeOutNotify)
	{
	// No implementation required
	}

Cjishiqi::~Cjishiqi()
	{
	}

Cjishiqi* Cjishiqi::NewLC(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
	{
	Cjishiqi* self = new (ELeave)Cjishiqi(aPriority, aTimeOutNotify);
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

Cjishiqi* Cjishiqi::NewL(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
	{
	Cjishiqi* self=Cjishiqi::NewLC(aPriority, aTimeOutNotify);
	CleanupStack::Pop(); // self;
	return self;
	}

void Cjishiqi::ConstructL()
	{
	CTimer::ConstructL();
	CActiveScheduler::Add(this);
	
	iRunning = EFalse;
	}

void Cjishiqi::RunL()
    {
    
    // Timer request has completed, so notify the timer's owner
    if ((iStatus == KErrNone) && iRunning)
        {
	    iNotify.TimerExpired();
	    iRunning = EFalse;
        }
    else
    	{
    	iNotify.TimerExpired1();
    	iRunning = ETrue;
    	}
   CImageTestAppUi* appui = static_cast<CImageTestAppUi*>(CEikonEnv::Static()->AppUi());
   aContainer = appui->ReturnContainer();
   aContainer->DrawNow();
    }

void Cjishiqi::Start( TTimeIntervalMicroSeconds32 aFirstInterval )
	{

	iRunning = EFalse;
	if(iRunning)
		{
		iRunning = EFalse;
		}
	else
		{
		iRunning = ETrue;
		}
	After( aFirstInterval );
	}

void Cjishiqi::Stop()
{
	Cancel();
	iRunning = EFalse;
}

TBool Cjishiqi::GetStatus()
{
	return iRunning;
}

⌨️ 快捷键说明

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