www.pudn.com > NetTest2nd.rar > NetTestDocument.cpp


/* 
============================================================================ 
 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; 
    }