📄 activeobjdocument.cpp
字号:
/*
============================================================================
Name : ActiveObjDocument.cpp
Author :
Version :
Copyright : Forum Nokia, 2006
Description : Application document class (model)
============================================================================
*/
// INCLUDE FILES
#include "ActiveObjAppUi.h"
#include "ActiveObjDocument.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CActiveObjDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CActiveObjDocument* CActiveObjDocument::NewL( CEikApplication&
aApp )
{
CActiveObjDocument* self = NewLC( aApp );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CActiveObjDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CActiveObjDocument* CActiveObjDocument::NewLC( CEikApplication&
aApp )
{
CActiveObjDocument* self =
new ( ELeave ) CActiveObjDocument( aApp );
CleanupStack::PushL( self );
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CActiveObjDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CActiveObjDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CActiveObjDocument::CActiveObjDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CActiveObjDocument::CActiveObjDocument( CEikApplication& aApp )
: CAknDocument( aApp )
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CActiveObjDocument::~CActiveObjDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CActiveObjDocument::~CActiveObjDocument()
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CActiveObjDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CActiveObjDocument::CreateAppUiL()
{
// Create the application user interface, and return a pointer to it;
// the framework takes ownership of this object
return ( static_cast <CEikAppUi*> ( new ( ELeave )
CActiveObjAppUi ) );
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -