toneplayerappui.h

来自「基于Symbian OS的手机开发与应用实践第14章代码。主要讲多媒体的各种应用」· C头文件 代码 · 共 72 行

H
72
字号
/*
* ============================================================================
*  Name     : CTonePlayerAppUi from TonePlayerAppui.h
*  Part of  : TonePlayer
*  Created  : 31.01.2006 by ToBeReplacedByAuthor
*  Description:
*     Declares UI class for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

#ifndef TONEPLAYERAPPUI_H
#define TONEPLAYERAPPUI_H

// INCLUDES
#include <aknappui.h>

#include "TonePlayerEngine.h"

// FORWARD DECLARATIONS
class CTonePlayerContainer;


// CLASS DECLARATION

/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
* 
*/
class CTonePlayerAppUi : public CAknAppUi, public CTonePlayerEngine::MObserver
    {
    public: // // Constructors and destructor

        /**
        * EPOC default constructor.
        */      
        void ConstructL();

        /**
        * Destructor.
        */      
        ~CTonePlayerAppUi();
        
    public: // New functions

    public: // Functions from CTonePlayerEngine::MObserver
        void OnComplete(TInt aError);

    private:
        /**
        * From CEikAppUi, takes care of command handling.
        * @param aCommand command to be handled
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CEikAppUi, takes care of key handling.
        */
        TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

    private: //Data
        CTonePlayerContainer* iAppContainer; 
        CTonePlayerEngine* iTonePlayerEngine;
    };

#endif

// End of File

⌨️ 快捷键说明

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