os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/MVSConfigAudioFormatDialog.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 MVSCONFIGAUDIOFORMATDIALOG_H
    18 #define MVSCONFIGAUDIOFORMATDIALOG_H
    19 
    20 #include <techview/eikdialg.h>
    21 #include <techview/eikchkbx.h>
    22 #include <mmf/common/mmfutilities.h>
    23 
    24 
    25 class CMVSAppUi;
    26 class CSettingsManager;
    27 class CMVSConfigAudioFormatDialog : public CEikDialog
    28 	{
    29 public:
    30     ~CMVSConfigAudioFormatDialog();
    31     void SetupDialogLD(CMVSAppUi* aAppUi,TUid aControllerId,CSettingsManager* aSettingsManager); 
    32     void PreLayoutDynInitL();    //seeds dialog controls
    33     void InternalizeL(RReadStream& aStream);
    34 	void ExternalizeL(RWriteStream& aStream);
    35 	void ConstructL();
    36 	void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
    37 private:
    38     CMVSConfigAudioFormatDialog(CMVSAppUi* aAppUi,TUid aControllerId);
    39     TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog
    40     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    41 private:
    42     TUid iContollerUid;
    43     TInt8 iBitRateIdx;
    44     TInt8 iSampleRateIdx;
    45     TInt8 iChannelListIdx;
    46     TInt8 iFormatListIdx;
    47     TInt8 iCodecListIdx;
    48     CMVSAppUi* iAppUi;
    49     CDesCArrayFlat* iArrSampleRates; 
    50     CDesCArrayFlat* iArrBitRates; 
    51     CDesCArrayFlat* iArrChannels; 
    52     CDesCArrayFlat* iArrCodecs;
    53     CEikCheckBox* iSettings;
    54 public:
    55 	RArray<TUint> iBitRatesArray;
    56     RArray<TUint> iSampleRatesArray;
    57     RArray<TUint> iChannelsArray;
    58     RArray<TFourCC> iCodecsArray;
    59     TBool iRestoreSettings; 
    60     };
    61 
    62 #endif MVSCONFIGAUDIOFORMATDIALOG_H