os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/MVSConfigVideoFormatDialog.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 MVSCCONFIGVIDEOFORMATDIALOG_H
    18 #define MVSCCONFIGVIDEOFORMATDIALOG_H
    19 
    20 #include <techview/eikdialg.h>
    21 #include <mda/common/controller.h>
    22 #include <mmf/common/mmfutilities.h>
    23 #include <techview/eikchkbx.h>
    24 #include "MVSApp.h"
    25 
    26 class CSettingsManager;
    27 class CMVSAppUi;
    28 class CMVSConfigVideoFormatDialog : public CEikDialog
    29 	{
    30 public:
    31     ~CMVSConfigVideoFormatDialog();
    32     void SetupDialogLD(CMVSAppUi* aAppUi,TUid aControllerId,CSettingsManager* aSettingsManager);
    33     void PreLayoutDynInitL();    //seeds dialog controls
    34     void InternalizeL(RReadStream& aStream);
    35 	void ExternalizeL(RWriteStream& aStream);
    36 	void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
    37 	void ConstructL();	
    38 private:
    39     CMVSConfigVideoFormatDialog(CMVSAppUi* aAppUi , TUid aControllerId);
    40     TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog
    41     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    42     CEikCheckBox* iSettings;
    43     CEikCheckBox* iAudioEnableCtl;
    44 private:
    45 	TUid iContollerUid;
    46 	CMVSAppUi* iAppUi;
    47 	TBool iRestoreSettings;
    48 	TInt8 iFrameRateIdx;
    49     TInt8 iFrameSizeIdx;
    50     TInt8 iMimeTypeIdx;
    51     CDesCArrayFlat* iArrFrameRate; 
    52     CDesCArrayFlat* iArrFrameSize;
    53     CDesCArrayFlat* iArrVideoMimeType;
    54     CDesC8ArrayFlat* iMimeTypeArray;
    55    
    56 public:
    57 	RArray<TReal32> iFrameRateArray;
    58     RArray<TSize> iFrameSizeArray;
    59     TBool iAudioEnable;
    60 	};
    61 
    62 #endif MVSCCONFIGVIDEOFORMATDIALOG_H