s60uiexampledocument.cpp

来自「symbianOS第三版开发与实用教程部分源码和部分试验」· C++ 代码 · 共 73 行

CPP
73
字号
// Copyright (c) 2006 Nokia Corporation.

#include "S60UIExampleAppUi.h"
#include "S60UIExampleDocument.h"

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

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


// -----------------------------------------------------------------------------
// CS60UIExampleDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CS60UIExampleDocument* CS60UIExampleDocument::NewLC(CEikApplication& aApp)
    {
    CS60UIExampleDocument* self = new (ELeave) CS60UIExampleDocument(aApp);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

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

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

// -----------------------------------------------------------------------------
// CS60UIExampleDocument::CreateAppUiL()
// Create the application user interface, and return a pointer to it
// -----------------------------------------------------------------------------
//
CEikAppUi* CS60UIExampleDocument::CreateAppUiL()
    {
    return(static_cast<CEikAppUi*>(new (ELeave) CS60UIExampleAppUi));
    }

// End of File

⌨️ 快捷键说明

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