mtmsexampledocument.cpp

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

CPP
91
字号
/*
============================================================================
 Name        : MtmsExampleDocument.cpp
 Author      : Lion
 Copyright   : Your copyright notice
 Description : CMtmsExampleDocument implementation
============================================================================
*/


// INCLUDE FILES
#include "MtmsExampleAppUi.h"
#include "MtmsExampleDocument.h"

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

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

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

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

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

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

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

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

// End of File

⌨️ 快捷键说明

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