bluetoothchatdocument.cpp

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

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


// INCLUDE FILES
#include "BluetoothChatAppUi.h"
#include "BluetoothChatDocument.h"

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

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

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

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

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

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

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

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

// End of File

⌨️ 快捷键说明

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