nettestdocument.cpp

来自「Symbian s60平台第二版下一个socket通讯的例子」· C++ 代码 · 共 56 行

CPP
56
字号
/*
============================================================================
 Name        : CNetTestDocument from NetTestDocument.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : CNetTestDocument implementation
============================================================================
*/

// INCLUDE FILES
#include "NetTestDocument.h"
#include "NetTestAppui.h"

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

// constructor
CNetTestDocument::CNetTestDocument(CEikApplication& aApp)
: CAknDocument(aApp)    
    {
    }

// destructor
CNetTestDocument::~CNetTestDocument()
    {
    }

// EPOC default constructor can leave.
void CNetTestDocument::ConstructL()
    {
    }

// Two-phased constructor.
CNetTestDocument* CNetTestDocument::NewL(
        CEikApplication& aApp)     // CNetTestApp reference
    {
    CNetTestDocument* self = new (ELeave) CNetTestDocument( aApp );
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();

    return self;
    }
    
// ----------------------------------------------------
// CNetTestDocument::CreateAppUiL()
// constructs CNetTestAppUi
// ----------------------------------------------------
//
CEikAppUi* CNetTestDocument::CreateAppUiL()
    {
    return new (ELeave) CNetTestAppUi;
    }

  

⌨️ 快捷键说明

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