mp3view1.cpp
来自「一个mp3播放器的小例子」· C++ 代码 · 共 66 行
CPP
66 行
// 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 + =
减小字号Ctrl + -
显示快捷键?