www.pudn.com > nokie_soundplayer.rar > soundappui.h
// Copyright (c) 2004, Nokia. All rights reserved. #ifndef __SOUNDAPPUI_H__ #define __SOUNDAPPUI_H__ // INCLUDES #include#include #include #include // 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