--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/voicerecorder/AppSrc/CVRSettingsDialogMMCSupported.h Wed Sep 01 12:29:14 2010 +0100
@@ -0,0 +1,130 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* This class defines a settings dialog for the Voice Recorder application.
+*
+*/
+
+
+#ifndef __CVRSETTINGSDIALOG_H__
+#define __CVRSETTINGSDIALOG_H__
+
+// INCLUDES
+
+#include <AknDialog.h>
+#include <eiklbo.h>
+#include "VRUtils.h"
+#include "CVRSettingItem.h"
+
+
+#include <CAknMemorySelectionDialog.h>
+#include <aknsettingitemlist.h>
+
+// CLASS DECLARATION
+
+/**
+* This class defines a settings dialog for the Voice Recorder application.
+*/
+class CVRSettingsDialog
+ : public CAknDialog,
+ public MEikListBoxObserver
+ {
+
+ public: // Constructors and destructor
+
+ /**
+ * Destructor.
+ */
+ ~CVRSettingsDialog();
+
+ /**
+ * Two-phased constructor.
+ */
+ static CVRSettingsDialog* NewL();
+
+ private: // Constructors
+
+ /**
+ * Default constructor. Inlined to save a few bytes.
+ * Parameters to array: granularity, isnumered, 1st ordinal
+ */
+
+ inline CVRSettingsDialog() : iSettingItemArray( 1, EFalse, 1 ){}
+
+ protected: // from CEikDialog
+
+ /**
+ * Tests if it is OK to exit the dialog.
+ * @param aButtonId The ID of the button that was activated.
+ * @return ETrue to validate and exit the dialog,
+ * EFalse to keep the dialog active.
+ */
+ TBool OkToExitL( TInt aButtonId );
+
+ /**
+ * Pre-layout dialog initialisation.
+ */
+ void PreLayoutDynInitL();
+
+ void ProcessCommandL( TInt aCommandId );
+
+ void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
+
+ public: // From MEikListBoxObserver
+
+
+ /**
+ * Handles list box events.
+ * This is invoked by CEikListBox to notify the observer of
+ * list box events.
+ * @param aListBox The originating list box.
+ * @param aEventType A code for the event.
+ */
+ void HandleListBoxEventL( CEikListBox* aListBox,
+ TListBoxEvent aEventType );
+
+ private: //new methods
+
+ /**
+ * Stores all settings to Central Repository when called
+ */
+ void StoreAllSettingsL();
+
+ private: // data
+
+ /**
+ * Array of setting items contained in the listbox. Owned.
+ */
+
+ CAknSettingItemArray iSettingItemArray;
+
+ /**
+ * Selected memo store
+ */
+ CAknMemorySelectionDialog::TMemory iMemoStore;
+
+ /**
+ * Selected memo quality
+ */
+ TVRQuality iQuality;
+
+ /**
+ * Multiple drives
+ */
+ TDriveNumber iDrive;
+
+
+ };
+
+#endif // __CVRSETTINGSDIALOG_H__