os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/MVSVolumeDialog.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Part of the MVS Application for TechView
    15 //
    16 
    17 #ifndef CMVSVOLUMEDIALOG_H
    18 #define CMVSVOLUMEDIALOG_H
    19 
    20 #include <techview/eikdialg.h>
    21 
    22 class CMVSAppUi;
    23 class CEikProgressInfo;
    24 
    25 class CMVSVolumeDialog : public CEikDialog
    26 	{
    27 public:
    28     static void SetupDialogLD(TInt aVolume, TTimeIntervalMicroSeconds aRamp,
    29                               TTimeIntervalMicroSeconds aClipLength, TBool aPlayback, CMVSAppUi* aAppUi);   
    30     void PreLayoutDynInitL(); //     //seeds dialog controls
    31     void InitControl(const TInt aId, const TInt aPos, const TInt aStart, 
    32                      const TInt aFinish );
    33                      
    34 private:
    35     TInt iVolume;  //the playback volume as a percentage of MaxVolume()
    36     TTimeIntervalMicroSeconds iRamp; //the Ramp
    37     TTimeIntervalMicroSeconds iClipLength; //the clip length
    38     TBool iPlayback;
    39     CEikProgressInfo* iProgInfo;  //pointer to the progress bar for this dlg.
    40 
    41     CMVSAppUi* iAppUi;
    42     TInt iOldVolume;
    43      
    44 private:
    45     CMVSVolumeDialog(TInt aVolume, TTimeIntervalMicroSeconds aRamp,
    46                     TTimeIntervalMicroSeconds aClipLength, TBool aPlayback, CMVSAppUi* aAudioAppUi);
    47     TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog
    48 	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    49 	};
    50 
    51 #endif CMVSVOLUMEDIALOG_H