www.pudn.com > nokie_soundplayer.rar > sounddoc.cpp


/* Copyright (c) 2004, Nokia. All rights reserved */ 
 
 
// INCLUDE FILES 
#include  
#include  
 
#include "SoundDoc.h" 
#include "SoundAppUI.h" 
 
 
// ========================= MEMBER FUNCTIONS ================================== 
 
// ----------------------------------------------------------------------------- 
// CSoundDocument::CSoundDocument() 
// C++ default constructor can NOT contain any code, that might leave. 
// ----------------------------------------------------------------------------- 
// 
CSoundDocument::CSoundDocument( CEikApplication& aApp ) : CAknDocument( aApp ) 
    { 
    // No implementation required 
    } 
 
// ----------------------------------------------------------------------------- 
// CSoundDocument::NewL() 
// Two-phased constructor. 
// ----------------------------------------------------------------------------- 
// 
CSoundDocument* CSoundDocument::NewL( CEikApplication& aApp ) 
    { 
    CSoundDocument* self = NewLC( aApp ); 
    CleanupStack::Pop( self ); 
    return self; 
    } 
 
// ----------------------------------------------------------------------------- 
// CSoundDocument::NewLC() 
// Two-phased constructor. 
// ----------------------------------------------------------------------------- 
// 
CSoundDocument* CSoundDocument::NewLC( CEikApplication& aApp ) 
    { 
    CSoundDocument* self = new ( ELeave ) CSoundDocument( aApp ); 
    CleanupStack::PushL( self ); 
    self->ConstructL(); 
    return self; 
    } 
 
// ----------------------------------------------------------------------------- 
// CSoundDocument::ConstructL() 
// Symbian 2nd phase constructor can leave. 
// ----------------------------------------------------------------------------- 
// 
void CSoundDocument::ConstructL() 
    { 
    // No implementation required 
    } 
         
 
// ----------------------------------------------------------------------------- 
// CSoundDocument::CreateAppUiL() 
// Create the application user interface, and return a pointer to it 
// ----------------------------------------------------------------------------- 
// 
CEikAppUi* CSoundDocument::CreateAppUiL() 
    { 
    return ( static_cast( new ( ELeave ) CSoundAppUi ) ); 
    } 
 
// End of File