www.pudn.com > sockets.rar > socketsdocument.cpp


/* Copyright (c) 2004, Nokia. All rights reserved */ 
 
 
// INCLUDE FILES 
#include "SocketsAppUi.h" 
#include "SocketsDocument.h" 
 
// ========================= MEMBER FUNCTIONS ================================== 
 
// ----------------------------------------------------------------------------- 
// CSocketsDocument::NewL() 
// Two-phased constructor. 
// ----------------------------------------------------------------------------- 
// 
CSocketsDocument* CSocketsDocument::NewL( CEikApplication& aApp ) 
    { 
    CSocketsDocument* self = NewLC( aApp ); 
    CleanupStack::Pop( self ); 
    return self; 
    } 
 
// ----------------------------------------------------------------------------- 
// CSocketsDocument::NewLC() 
// Two-phased constructor. 
// ----------------------------------------------------------------------------- 
// 
CSocketsDocument* CSocketsDocument::NewLC( CEikApplication& aApp ) 
    { 
    CSocketsDocument* self = new ( ELeave ) CSocketsDocument( aApp ); 
    CleanupStack::PushL( self ); 
    self->ConstructL(); 
    return self; 
    } 
 
// ----------------------------------------------------------------------------- 
// CSocketsDocument::CSocketsDocument() 
// C++ default constructor can NOT contain any code, that might leave. 
// ----------------------------------------------------------------------------- 
// 
CSocketsDocument::CSocketsDocument( CEikApplication& aApp ) 
: CEikDocument( aApp ) 
    { 
    // No implementation required 
    } 
 
// ----------------------------------------------------------------------------- 
// CSocketsDocument::ConstructL() 
// Symbian 2nd phase constructor can leave. 
// ----------------------------------------------------------------------------- 
// 
void CSocketsDocument::ConstructL() 
    { 
    // No implementation required 
    } 
 
// ----------------------------------------------------------------------------- 
// CSocketsDocument::~CSocketsDocument() 
// Destructor. 
// ----------------------------------------------------------------------------- 
// 
CSocketsDocument::~CSocketsDocument() 
    { 
    // No implementation required 
    } 
 
// ----------------------------------------------------------------------------- 
// CSocketsDocument::CreateAppUiL() 
// Creates a CSocketsAppUi object and return a pointer to it. 
// ----------------------------------------------------------------------------- 
// 
CEikAppUi* CSocketsDocument::CreateAppUiL() 
    { 
    CEikAppUi* appUi = new ( ELeave ) CSocketsAppUi; 
    return appUi; 
    } 
 
// End of File