sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Part of the MVS Application for TechView sl@0: // sl@0: sl@0: #ifndef CMVSVOLUMEDIALOG_H sl@0: #define CMVSVOLUMEDIALOG_H sl@0: sl@0: #include sl@0: sl@0: class CMVSAppUi; sl@0: class CEikProgressInfo; sl@0: sl@0: class CMVSVolumeDialog : public CEikDialog sl@0: { sl@0: public: sl@0: static void SetupDialogLD(TInt aVolume, TTimeIntervalMicroSeconds aRamp, sl@0: TTimeIntervalMicroSeconds aClipLength, TBool aPlayback, CMVSAppUi* aAppUi); sl@0: void PreLayoutDynInitL(); // //seeds dialog controls sl@0: void InitControl(const TInt aId, const TInt aPos, const TInt aStart, sl@0: const TInt aFinish ); sl@0: sl@0: private: sl@0: TInt iVolume; //the playback volume as a percentage of MaxVolume() sl@0: TTimeIntervalMicroSeconds iRamp; //the Ramp sl@0: TTimeIntervalMicroSeconds iClipLength; //the clip length sl@0: TBool iPlayback; sl@0: CEikProgressInfo* iProgInfo; //pointer to the progress bar for this dlg. sl@0: sl@0: CMVSAppUi* iAppUi; sl@0: TInt iOldVolume; sl@0: sl@0: private: sl@0: CMVSVolumeDialog(TInt aVolume, TTimeIntervalMicroSeconds aRamp, sl@0: TTimeIntervalMicroSeconds aClipLength, TBool aPlayback, CMVSAppUi* aAudioAppUi); sl@0: TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog sl@0: TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); sl@0: }; sl@0: sl@0: #endif CMVSVOLUMEDIALOG_H