/*
========================================================================
 Name        : AudioPlayerDocument.cpp
 Copyright   : Symbian Academy, 2007
 Description : Represents persistent data of the application.
               Creates instance of the AppUi.
 =======================================================================
 */
// [[[ begin generated region: do not modify [Generated User Includes]
#include "AudioPlayerDocument.h"
#include "AudioPlayerAppUi.h"
// ]]] end generated region [Generated User Includes]

/**
 * @brief Constructs the document class for the application.
 * @param anApplication the application instance
 */
CAudioPlayerDocument::CAudioPlayerDocument( CEikApplication& anApplication )
	: CAknDocument( anApplication )
	{
	}

/**
 * @brief Completes the second phase of Symbian object construction. 
 * Put initialization code that could leave here.  
 */ 
void CAudioPlayerDocument::ConstructL()
	{
	}
	
/**
 * Symbian OS two-phase constructor.
 *
 * Creates an instance of CAudioPlayerDocument, constructs it, and
 * returns it.
 *
 * @param aApp the application instance
 * @return the new CAudioPlayerDocument
 */
CAudioPlayerDocument* CAudioPlayerDocument::NewL( CEikApplication& aApp )
	{
	CAudioPlayerDocument* self = new ( ELeave ) CAudioPlayerDocument( aApp );
	CleanupStack::PushL( self );
	self->ConstructL();
	CleanupStack::Pop( self );
	return self;
	}

/**
 * @brief Creates the application UI object for this document.
 * @return the new instance
 */	
CEikAppUi* CAudioPlayerDocument::CreateAppUiL()
	{
	return new ( ELeave ) CAudioPlayerAppUi;
	}
				
