symbianosunitdocument.cpp
来自「symbian 3rd下的单元测试工具 里面包括一个框架 一个实例程序 还有使用」· C++ 代码 · 共 57 行
CPP
57 行
// CSymbianOSUnitDocument.cpp
// ---------------------
//
// Copyright (c) 2003-2006 Penrillian Ltd all rights reserved. Web: www.penrillian.com
//
////////////////////////////////////////////////////////////////////////
//
// Source file for the implementation of the
// document class - CSymbianOSUnitDocument
//
////////////////////////////////////////////////////////////////////////
#include "SymbianOSUnit.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.
//
CSymbianOSUnitDocument::CSymbianOSUnitDocument(APPLICATION& aApp)
: DOCUMENT(aApp)
{
}
// destructor
CSymbianOSUnitDocument::~CSymbianOSUnitDocument()
{
}
// EPOC default constructor can leave.
void CSymbianOSUnitDocument::ConstructL()
{
}
// Two-phased constructor.
CSymbianOSUnitDocument* CSymbianOSUnitDocument::NewL(APPLICATION& aApp)
{
CSymbianOSUnitDocument* self = new (ELeave) CSymbianOSUnitDocument( aApp );
CleanupStack::PushL( self );
self->ConstructL();
CleanupStack::Pop();
return self;
}
// 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* CSymbianOSUnitDocument::CreateAppUiL()
{
return new (ELeave) CSymbianOSUnitAppUi;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?