btobjectexchangedocument.cpp

来自「This C++ code example provides a method 」· C++ 代码 · 共 82 行

CPP
82
字号
/* Copyright (c) 2004, Nokia. All rights reserved */


// INCLUDE FILES
#include "BTObjectExchangeAppUi.h"
#include "BTObjectExchangeDocument.h"

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

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

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

// ----------------------------------------------------------------------------
// CBTObjectExchangeDocument::ConstructL()
// 2nd phase construction
// ----------------------------------------------------------------------------
//
void CBTObjectExchangeDocument::ConstructL()
    {
    // no implementation required
    }    

// ----------------------------------------------------------------------------
// CBTObjectExchangeDocument::CBTObjectExchangeDocument()
// Constructor.
// ----------------------------------------------------------------------------
//
CBTObjectExchangeDocument::CBTObjectExchangeDocument( CEikApplication& aApp )
: CAknDocument( aApp ) 
    {
    // no implementation required
    }   

// ----------------------------------------------------------------------------
// CBTObjectExchangeDocument::~CBTObjectExchangeDocument()
// Destructor.
// ----------------------------------------------------------------------------
//
CBTObjectExchangeDocument::~CBTObjectExchangeDocument()
    {
    // no implementation required
    }

// ----------------------------------------------------------------------------
// CBTObjectExchangeDocument::CreateAppUiL()
// Create the application user interface, and return a pointer to it;
// the framework takes ownership of this object.
// ----------------------------------------------------------------------------
//
CEikAppUi* CBTObjectExchangeDocument::CreateAppUiL()
    {
    CEikAppUi* appUi = new ( ELeave ) CBTObjectExchangeAppUi;
    return appUi;
    }

// End of File

⌨️ 快捷键说明

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