www.pudn.com > SystemSounds_Example_v1_0.zip > SystemSoundsDocument.cpp


/* 
* ============================================================================ 
*  Name     : CSystemSoundsDocument from SystemSoundsDocument.h 
*  Part of  : SystemSounds 
*  Created  : 06/12/2003 by Forum Nokia 
*  Implementation notes: 
*     Initial content was generated by Nokia Series 60 AppWizard. 
*  Version  : 1.0 
*  Copyright: Nokia 
* ============================================================================ 
*/ 
 
// INCLUDE FILES 
#include "SystemSoundsDocument.h" 
#include "SystemSoundsAppUi.h" 
 
// ================= MEMBER FUNCTIONS ======================= 
 
// constructor 
CSystemSoundsDocument::CSystemSoundsDocument(CEikApplication& aApp) 
: CAknDocument(aApp)     
    { 
    } 
 
// destructor 
CSystemSoundsDocument::~CSystemSoundsDocument() 
    { 
    } 
 
// Symbian's default constructor can leave. 
void CSystemSoundsDocument::ConstructL() 
    { 
    } 
 
// Two-phased constructor. 
CSystemSoundsDocument* CSystemSoundsDocument::NewL( 
        CEikApplication& aApp)     // CSystemSoundsApp reference 
    { 
    CSystemSoundsDocument* self = new (ELeave) CSystemSoundsDocument( aApp ); 
    CleanupStack::PushL( self ); 
    self->ConstructL(); 
    CleanupStack::Pop(); 
 
    return self; 
    } 
     
// ---------------------------------------------------- 
// CSystemSoundsDocument::CreateAppUiL() 
// constructs CSystemSoundsAppUi 
// ---------------------------------------------------- 
// 
CEikAppUi* CSystemSoundsDocument::CreateAppUiL() 
    { 
    return new (ELeave) CSystemSoundsAppUi; 
    } 
 
// End of File