uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestcmdlg/inc/CVRSettingsDialogMMCSupported.h
changeset 22 75713bee6484
parent 21 558113899881
child 26 62ef28f7b435
child 28 d33307312dfe
equal deleted inserted replaced
21:558113899881 22:75713bee6484
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef __CVRSETTINGSDIALOG_H__
       
    18 #define __CVRSETTINGSDIALOG_H__
       
    19 
       
    20 //	INCLUDES
       
    21 #include <akndialog.h>
       
    22 #include <eiklbo.h>
       
    23 
       
    24 #include <CAknMemorySelectionDialog.h>
       
    25 #include <aknsettingitemlist.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 * This class defines a settings dialog for the Voice Recorder application.
       
    31 */
       
    32 class CVRSettingsDialog
       
    33 	: public CAknDialog,
       
    34 	  public MEikListBoxObserver
       
    35 	{
       
    36 
       
    37 	public:  // Constructors and destructor
       
    38 		
       
    39 		/**
       
    40 		* Destructor.
       
    41 		*/
       
    42 		~CVRSettingsDialog();
       
    43 
       
    44 		/**
       
    45 		* Two-phased constructor.
       
    46 		*/
       
    47 		static CVRSettingsDialog* NewL();
       
    48 		
       
    49 	private: // Constructors
       
    50 
       
    51 		/**
       
    52         * Default constructor. Inlined to save a few bytes.
       
    53 		* Parameters to array: granularity, isnumered, 1st ordinal
       
    54         */
       
    55 		inline CVRSettingsDialog() : iSettingItemArray( 1, EFalse, 1 ) {}
       
    56 	
       
    57 	protected: // from CEikDialog
       
    58 
       
    59 		/**
       
    60 		* Tests if it is OK to exit the dialog.
       
    61 		* @param aButtonId The ID of the button that was activated.
       
    62 		* @return ETrue to validate and exit the dialog,
       
    63 		*         EFalse to keep the dialog active. 
       
    64 		*/
       
    65 		TBool OkToExitL( TInt aButtonId );
       
    66 
       
    67 		/**
       
    68 		* Pre-layout dialog initialisation.
       
    69 		*/
       
    70 		void PreLayoutDynInitL();
       
    71 
       
    72 		void ProcessCommandL( TInt aCommandId );
       
    73 		
       
    74 
       
    75 	public: // From MEikListBoxObserver
       
    76 
       
    77 		/**
       
    78 		* Handles list box events.
       
    79 		* This is invoked by CEikListBox to notify the observer of
       
    80 		* list box events.
       
    81 		* @param aListBox The originating list box.
       
    82 		* @param aEventType A code for the event.
       
    83 		*/
       
    84 		void HandleListBoxEventL( CEikListBox* aListBox,
       
    85 								  TListBoxEvent aEventType );
       
    86 
       
    87    private:    // data
       
    88 
       
    89 		/**
       
    90 		* Array of setting items contained in the listbox. Owned.
       
    91 		*/
       
    92 		CAknSettingItemArray iSettingItemArray;
       
    93 
       
    94 		/**
       
    95 		* Selected memo store
       
    96 		*/
       
    97 		CAknMemorySelectionDialog::TMemory iMemoStore;
       
    98 	};
       
    99 
       
   100 #endif	// __CVRSETTINGSDIALOG_H__