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

📄 progressnotecontainer.cpp

📁 这是个基于SYMBIAN OS上的标准消息通知(NOTE)程序
💻 CPP
字号:
/**
* 
* @brief Definition of CProgressNoteContainer
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDE FILES

// Class include
#include "ProgressNoteContainer.h"

// System includes
#include <aknnotedialog.h> // CAknWaitNoteWrapper
#include <eikprogi.h> // CEikProgressInfo
#include <progressnote.rsg>

// User Includes
#include "ProgressNoteGameSaverAO.h" // CProgressNoteGameSaverAO


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

/**
* Symbian OS 2nd phase constructor.  Creates a Window for the controls, which it contains.
* Constructs a game saver active object.
* @param aRect The rectangle for this window
*/		
void CProgressNoteContainer::ConstructL(const TRect& aRect)
	{
	iGameSaverAO = CProgressNoteGameSaverAO::NewL();
	CreateWindowL();
	SetRect(aRect);
	ActivateL();
	}

/**
* Symbian OS 2 phase constructor.
* Constructs the CProgressNoteContainer using the NewLC method, popping
* the constructed object from the CleanupStack before returning it.
* 
* @param aRect The rectangle for this window
* @return The newly constructed CProgressNoteContainer
*/
CProgressNoteContainer* CProgressNoteContainer::NewL(const TRect& aRect)
	{
	CProgressNoteContainer* self = CProgressNoteContainer::NewLC(aRect);
	CleanupStack::Pop(self);
	return self;
	}

/**
* Symbian OS 2 phase constructor.
* Constructs the CProgressNoteContainer using the constructor and ConstructL 
* method, leaving the constructed object on the CleanupStack before returning it.
* 
* @param aRect The rectangle for this window
* @return The newly constructed CProgressNoteContainer
*/
CProgressNoteContainer* CProgressNoteContainer::NewLC(const TRect& aRect)
	{
	CProgressNoteContainer* self = new (ELeave) CProgressNoteContainer;
	CleanupStack::PushL(self);
	self->ConstructL(aRect);
	return self;
	}

/**
* Called by the framework to draw this control.  Clears the area in 
* aRect.
* @param aRect in which to draw
*/
void CProgressNoteContainer::Draw(const TRect& aRect) const
	{
	CWindowGc& gc = SystemGc();
	gc.Clear(aRect);
	}

/**
* Destructor. Frees up memory. 
*/
CProgressNoteContainer::~CProgressNoteContainer()
	{
	delete iGameSaverAO;
	}

/**
* Called by the AppUi when the Save Game command is invoked. 
* Calls the game saver active objects SaveGameL method
*/
void CProgressNoteContainer::SaveGameL()
	{
	iGameSaverAO->SaveGameL();
	}


//End of File	

⌨️ 快捷键说明

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