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

📄 soundappui.h

📁 symbian 可以实现控制声音大小的源码 非常实用!
💻 H
字号:
// Copyright (c) 2004, Nokia. All rights reserved.

#ifndef __SOUNDAPPUI_H__
#define __SOUNDAPPUI_H__


// INCLUDES
#include <eikappui.h>
#include <aknappui.h>
#include <eikmenub.h> 
#include <e32base.h>


// CONSTANTS
// Waw to Play
_LIT( KSoundSampleFile, "Play.wav" );



// FORWARD DECLARATIONS
class MAudioAdapter;
class CToneAdapter;
class CPlayerAdapter;
class CRecorderAdapter;
class CSoundDocument;
class CSoundView;


// CLASS DECLARATION

/**
* CSoundAppUi
* An instance of class CSoundAppUi is the UserInterface part of the AVKON
* application framework for the Sound example application
*/

class CSoundAppUi : public CAknAppUi 
    {
    public: // Constructors and destructor

        /**
        * ~CSoundAppUi.
        * Virtual Destructor.
        */
        virtual ~CSoundAppUi();

        /**
        * CSoundAppUi.
        * C++ default constructor.
        * This needs to be public due to the 
        * way the framework constructs the AppUi 
        */
        CSoundAppUi();

        /**
        * ConstructL
        * 2nd phase constructor.
        */
        void ConstructL();

         /**
        * UpdateViewL
        * Update the view
        */
        void UpdateViewL();

    
    public: // from CAknAppUi

        /**
        * HandleCommandL
        * Handles the commands.
        * @param aCommand command to be handled
        */
        void HandleCommandL( TInt aCommand );

        /** 
        * DynInitMenuPaneL
        * Prepare the menu prior to display
        * @param aResourceId the resource for the menu to be displayed
        * @param aMenuPane the handle to the menu
        */
        void DynInitMenuPaneL( TInt aResourceId, 
                               CEikMenuPane* aMenuPane );

    private:    // New Functions

        /**
        * SetAdapterL
        * Set the current audio adapter to aAudioAdapter.
        * @param aAudioAdapter The adapter to use
        */
        void SetAdapterL( MAudioAdapter* aAudioAdapter );

    private: //Data

        /**
        * iToneAdapter, the audio tone adapter
        * owned by CSoundAppUi object.
        */
        CToneAdapter*     iToneAdapter;

        /**
        * iPlayerAdapter, the audio player adapter
        * owned by CSoundAppUi object.
        */
        CPlayerAdapter*   iPlayerAdapter;

        /**
        * iRecorderAdapter, the audio recorder adapter
        * owned by CSoundAppUi object.
        */
        CRecorderAdapter* iRecorderAdapter;

        /**
        * iAudioAdapter, the current audio adapter.
        * owned by CSoundAppUi object.
        */
        MAudioAdapter* iAudioAdapter;
    
        /**
        * iAppView, the View
        * owned by CSoundAppUi object.
        */
        CSoundView* iAppView;
    };

#endif // __SOUNDAPPUI_H__

// End of File

⌨️ 快捷键说明

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