audioplayerdocument.cpp

来自「Symbian S60下的声音播放器的例子,适合初学者」· C++ 代码 · 共 67 行

CPP
67
字号
/**
 *
 * @brief Definition of CAudioPlayerDocument
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version 1.0
 */

// INCLUDE FILES

// Class includes
#include "AudioPlayerDocument.h"

// System includes

// User includes
#include "AudioPlayerAppUi.h" // CAudioPlayerAppUi

/**
 * Constructs the document for aApp
 *
 * @param aApp for which the document is constructed
 */
CAudioPlayerDocument::CAudioPlayerDocument(CEikApplication& aApp)
:CAknDocument(aApp)
	{
	}

CAudioPlayerDocument::~CAudioPlayerDocument()
	{
	}

/**
 * Symbian OS 2 phase constructor.
 * Constructs the CAudioPlayerDocument using the constructor and the ConstructL
 * method.
 *
 * @param aApp for which the CAudioPlayerDocument is constructed
 * @return The newly constructed CAudioPlayerDocument
 */
CAudioPlayerDocument* CAudioPlayerDocument::NewL(CEikApplication& aApp)
	{
	CAudioPlayerDocument* self = new (ELeave) CAudioPlayerDocument(aApp);
	CleanupStack::PushL(self);
	self->ConstructL();
	CleanupStack::Pop(self);
	return self;
	}

/**
 * Symbian OS 2nd phase constructor.
 * This is an empty implementation.
 */
void CAudioPlayerDocument::ConstructL()
	{
	}

/**
 * Creates the AppUi for this document.
 * @return The newly constructed AppUi
 */
CEikAppUi* CAudioPlayerDocument::CreateAppUiL()
	{
    return new (ELeave) CAudioPlayerAppUi;
	}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?