btpointtopointdocument.cpp

来自「Symbian下的p2p工程」· C++ 代码 · 共 82 行

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


// INCLUDE FILES
#include "BTPointToPointAppUi.h"
#include "BTPointToPointDocument.h"

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

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

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

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

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

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

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

// End of File

⌨️ 快捷键说明

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