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

📄 audiopkgappui.cpp

📁 封装了Symbian OS 3rd的音频播放器
💻 CPP
字号:
/*
============================================================================
 Name        : AudioPkgAppUi.cpp
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Main application UI class (controller)
============================================================================
*/

// INCLUDE FILES
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <AudioPkg.rsg>
#include <f32file.h>
#include <s32file.h>

#include "AudioPkg.pan"
#include "AudioPkgAppUi.h"
#include "AudioPkgAppView.h"
#include "AudioPkg.hrh"

// ============================ MEMBER FUNCTIONS ===============================

void CAudioPkgAppUi::ConstructL()
    {
    BaseConstructL();

    iAppView = CAudioPkgAppView::NewL( ClientRect() );
    }

CAudioPkgAppUi::CAudioPkgAppUi()
    {

    }

CAudioPkgAppUi::~CAudioPkgAppUi()
    {
    if ( iAppView )
        {
        delete iAppView;
        iAppView = NULL;
        }

    }

void CAudioPkgAppUi::HandleCommandL( TInt aCommand )
    {
    switch( aCommand )
        {
        case EEikCmdExit:
        case EAknSoftkeyExit:
            Exit();
            break;
        case EAudioPkgCommand1:
            {
//             HBufC* textResource = StringLoader::LoadLC( R_HEWB_COMMAND1_TEXT );
//             CAknInformationNote* informationNote = new ( ELeave ) CAknInformationNote;
//             informationNote->ExecuteLD( *textResource );
//             CleanupStack::PopAndDestroy( textResource );
			iAppView->PlayWavL();
            }
            break;
        default:
            Panic( EAudioPkgUi );
            break;
        }
    }

void CAudioPkgAppUi::HandleStatusPaneSizeChange()
{
	iAppView->SetRect( ClientRect() );
	
} 


// End of File

⌨️ 快捷键说明

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