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

📄 hellodocument.cpp

📁 symbianOS第三版开发与实用教程部分源码和部分试验
💻 CPP
字号:
/*
============================================================================
 Name        : HelloDocument.cpp
 Author      : Lion
 Copyright   : Your copyright notice
 Description : CHelloDocument implementation
============================================================================
*/


// INCLUDE FILES
#include "HelloAppUi.h"
#include "HelloDocument.h"

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

// -----------------------------------------------------------------------------
// CHelloDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CHelloDocument* CHelloDocument::NewL( CEikApplication&
                                                          aApp )
    {
    CHelloDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CHelloDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CHelloDocument* CHelloDocument::NewLC( CEikApplication&
                                                           aApp )
    {
    CHelloDocument* self =
        new ( ELeave ) CHelloDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CHelloDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CHelloDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CHelloDocument::CHelloDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CHelloDocument::CHelloDocument( CEikApplication& aApp )
    : CAknDocument( aApp )
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CHelloDocument::~CHelloDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CHelloDocument::~CHelloDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CHelloDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CHelloDocument::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 )
                                        CHelloAppUi ) );
    }

// End of File

⌨️ 快捷键说明

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