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

📄 mp3view2.cpp

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

#include "MP3PlayerAppContainer1.h"
#include "MP3View2.h"
#include "MP3Player.hrh"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

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

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

CMP3View2::ConstructL()
{
	BaseConstructL(R_MP3PLAYER_VIEW2);
}

TUid CMP3View2::Id() const
{
	return TUid::Uid(EMP3PlayerView2Id);
}

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

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

void CMP3View2::HandleCommandL(TInt aCommand)
    {
    }

CMP3View2::~CMP3View2()
{

}

⌨️ 快捷键说明

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