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 MVSCONFIGAUDIOFORMATDIALOG_H sl@0: #define MVSCONFIGAUDIOFORMATDIALOG_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: class CMVSAppUi; sl@0: class CSettingsManager; sl@0: class CMVSConfigAudioFormatDialog : public CEikDialog sl@0: { sl@0: public: sl@0: ~CMVSConfigAudioFormatDialog(); sl@0: void SetupDialogLD(CMVSAppUi* aAppUi,TUid aControllerId,CSettingsManager* aSettingsManager); sl@0: void PreLayoutDynInitL(); //seeds dialog controls sl@0: void InternalizeL(RReadStream& aStream); sl@0: void ExternalizeL(RWriteStream& aStream); sl@0: void ConstructL(); sl@0: void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType); sl@0: private: sl@0: CMVSConfigAudioFormatDialog(CMVSAppUi* aAppUi,TUid aControllerId); sl@0: TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog sl@0: TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); sl@0: private: sl@0: TUid iContollerUid; sl@0: TInt8 iBitRateIdx; sl@0: TInt8 iSampleRateIdx; sl@0: TInt8 iChannelListIdx; sl@0: TInt8 iFormatListIdx; sl@0: TInt8 iCodecListIdx; sl@0: CMVSAppUi* iAppUi; sl@0: CDesCArrayFlat* iArrSampleRates; sl@0: CDesCArrayFlat* iArrBitRates; sl@0: CDesCArrayFlat* iArrChannels; sl@0: CDesCArrayFlat* iArrCodecs; sl@0: CEikCheckBox* iSettings; sl@0: public: sl@0: RArray iBitRatesArray; sl@0: RArray iSampleRatesArray; sl@0: RArray iChannelsArray; sl@0: RArray iCodecsArray; sl@0: TBool iRestoreSettings; sl@0: }; sl@0: sl@0: #endif MVSCONFIGAUDIOFORMATDIALOG_H