mp3playerdocument.cpp

来自「一个mp3播放器的小例子」· C++ 代码 · 共 44 行

CPP
44
字号
/* Copyright (c) 2005, Nokia. All rights reserved */

#include "MP3PlayerAppUi.h"
#include "MP3PlayerDocument.h"


CMP3PlayerDocument* CMP3PlayerDocument::NewL(CEikApplication& aApp)
    {
    CMP3PlayerDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

CMP3PlayerDocument* CMP3PlayerDocument::NewLC(CEikApplication& aApp)
    {
    CMP3PlayerDocument* self = new (ELeave) CMP3PlayerDocument(aApp);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

void CMP3PlayerDocument::ConstructL()
    {
    // Add any construction that can leave here
    }    

CMP3PlayerDocument::CMP3PlayerDocument(CEikApplication& aApp) : CAknDocument(aApp) 
    {
    // Add any construction that can not leave here
    }   

CMP3PlayerDocument::~CMP3PlayerDocument()
    {
    // Any destruction code here
    }

CEikAppUi* CMP3PlayerDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return (static_cast<CEikAppUi*>(new (ELeave) CMP3PlayerAppUi));
    }

⌨️ 快捷键说明

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