os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/MVSSelectPluginsDialog.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 MVSSELECTPLUGINSDIALOG_H
    18 #define MVSSELECTPLUGINSDIALOG_H
    19 
    20 #include <techview/eikdialg.h>
    21 #include "MVSAppUI.h"
    22 
    23 const TInt KAllSupportedExtBufLength = 32;
    24 
    25 class CMVSAppUI; //Forward class declaration
    26 
    27 class CMVSSelectPluginsDialog : public CEikDialog
    28 	{
    29 public:
    30     static void SetupDialogLD(CDesCArrayFlat* aPluginArray,
    31 	                          CDesCArrayFlat* aExtArray, CDesCArrayFlat* aCodecArray,
    32                               CMVSAppUi* aAppUi);
    33     void PreLayoutDynInitL();    //seeds dialog controls
    34 	void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
    35 	~CMVSSelectPluginsDialog();
    36 	TKeyResponse OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/);
    37 private:
    38     void ConstructL(CDesCArrayFlat* iCodecArray);
    39     CMVSSelectPluginsDialog(CDesCArrayFlat* aPluginArray,
    40 	                        CDesCArrayFlat* aExtArray, CDesCArrayFlat* aCodecArray, 
    41                             CMVSAppUi* aAppUi);
    42     TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog
    43     
    44 private:
    45     CDesCArrayFlat* iPluginArray; //The array of plugins
    46     CDesCArrayFlat* iExtArray; //The array of extensions
    47     CDesCArrayFlat* iCodecArray;
    48     TBuf<KAllSupportedExtBufLength> iExt; //The file extension
    49     CMVSAppUi* iAppUi; 
    50     CEikChoiceList* iPluginCtl; 
    51     CEikChoiceList* iExtCtl; 
    52 	TBool iMediaType;//Used to update whether the user is in the Audio/Video mode,gets activated
    53 	                 //when the respective radiobutton is selected.
    54 	};
    55 
    56 #endif MVSSELECTPLUGINSDIALOG_H