guiclock5_document.cpp

来自「Symbian 开发的网格控件」· C++ 代码 · 共 58 行

CPP
58
字号
// GUIClock_CGUIClockDocument.cpp
// -------------------------------
//
// Copyright (c) 2000 Symbian Ltd.  All rights reserved.
//

////////////////////////////////////////////////////////////////////////
//
// Source file for the implementation of the 
// document class - CGUIClockDocument
//
////////////////////////////////////////////////////////////////////////

#include "GUIClock5.h"

//             The constructor of the document class just passes the
//             supplied reference to the constructor initialisation list.
//             The document has no real work to do in this application.
CGUIClockDocument::CGUIClockDocument(CAknApplication& aApp)
: CAknDocument(aApp)
{
}


//             This is called by the UI framework as soon as the 
//             document has been created. It creates an instance
//             of the ApplicationUI. The Application UI class is
//             an instance of a CEikAppUi derived class.
//
CEikAppUi* CGUIClockDocument::CreateAppUiL()
{
    return new(ELeave) CGUIClockUi;
}

void CGUIClockDocument::ConstructL()
{
	//	BaseConstructL();
	
	iClock = CSimpleClock::NewL();
}

CGUIClockDocument* CGUIClockDocument::NewL(CAknApplication& aApp)
{
	CGUIClockDocument *self = new (ELeave) CGUIClockDocument(aApp);
	CleanupStack::PushL(self);
	self->ConstructL();
	CleanupStack::Pop(self);
	return self;
	
}


CGUIClockDocument::~CGUIClockDocument()
{
	iClock->Stop();
	delete iClock;
}

⌨️ 快捷键说明

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