⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threaddocument.cpp

📁 这是Symbian平台实现多线程的实例.对初学者非常有帮助.
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CThreadDocument from CThreadDocument.h
*  Part of  : Thread
*  Created  : 04.02.2005 by Forum Nokia
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDES
#include "ThreadAppUi.h"
#include "ThreadDocument.h"

CThreadDocument* CThreadDocument::NewL(CEikApplication& aApp)
    {
    CThreadDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

CThreadDocument* CThreadDocument::NewLC(CEikApplication& aApp)
    {
    CThreadDocument* self = new (ELeave) CThreadDocument(aApp);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

// ----------------------------------------------------------------------------
// CThreadDocument::ConstructL()
//
// Standard EPOC 2nd phase constructor
// ----------------------------------------------------------------------------
void CThreadDocument::ConstructL()
    {
    // No implementation required
    }    

// ----------------------------------------------------------------------------
// CThreadDocument::CThreadDocument(CEikApplication& aApp) 
//   
// constructor
// ----------------------------------------------------------------------------
CThreadDocument::CThreadDocument(CEikApplication& aApp) : CAknDocument(aApp) 
    {
    }

// ----------------------------------------------------------------------------
// CThreadDocument::~CThreadDocument()
//   
// destructor
// ----------------------------------------------------------------------------
CThreadDocument::~CThreadDocument()
    {
    }

// ----------------------------------------------------------------------------
// CThreadDocument::CreateAppUiL()
//
// constructs CThreadAppUi
// ----------------------------------------------------------------------------
CEikAppUi* CThreadDocument::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) CThreadAppUi)); 
    }

⌨️ 快捷键说明

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