⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mp3view1.cpp

📁 一个mp3播放器的小例子
💻 CPP
字号:
// MP3View1.cpp: implementation of the CMP3View1 class.
//
//////////////////////////////////////////////////////////////////////
#include <aknviewappui.h>
#include <aknconsts.h>
#include <aknnotewrappers.h>
//#include <MultiViews.rsg>

#include "MP3PlayerAppContainer.h"
#include "MP3View1.h"
#include "MP3Player.hrh"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMP3View1* CMP3View1::NewL()
{
	CMP3View1* self = CMP3View1::NewLC();
	CleanupStack::Pop();
	return self;
}

CMP3View1* CMP3View1::NewLC()
{
	CMP3View1* self = new(ELeave) CMP3View1;
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
}

CMP3View1::ConstructL()
{
	BaseConstructL(R_MP3PLAYER_VIEW1);
}

TUid CMP3View1::Id() const
{
	return TUid::Uid(EMP3PlayerView1Id);
}

void CMP3View1::DoActivateL(const TVwsViewId& aPrevViewId,
							TUid aCustomMessageId,
							const TDesC8& aCustomMessage)
{
	iContainer = CMP3PlayerAppContainer::NewL(ClientRect());
}

void CMP3View1::DoDeactivate()
    {
    if (iContainer)
        {
        AppUi()->RemoveFromStack(iContainer);
        delete iContainer;
        iContainer = NULL;
        }
    }

void CMP3View1::HandleCommandL(TInt aCommand)
    {
    }

CMP3View1::~CMP3View1()
{

}

⌨️ 快捷键说明

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