clocationexampledocument.cpp

来自「这是一个关于s60基于c++的关于手机地图和定位的代码」· C++ 代码 · 共 81 行

CPP
81
字号
/*
* ============================================================================
*  Name     : clocationexampledocument.cpp
*  Part of  : Location Example
*  Created  : 21.05.2007 by Forum Nokia
*  Description:
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#include "clocationexampleappui.h"
#include "clocationexampledocument.h"


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

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


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

// -----------------------------------------------------------------------------
// CLocationExampleDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CLocationExampleDocument::ConstructL()
    {
    }

// -----------------------------------------------------------------------------
// CLocationExampleDocument::~CLocationExampleDocument()
// Destructor.
// -----------------------------------------------------------------------------
//
CLocationExampleDocument::~CLocationExampleDocument()
    {
    }

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

// End of File

⌨️ 快捷键说明

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