voicerecorder/gsplugin/inc/CVRGSPluginContainer.h
branchRCL_3
changeset 20 072a5fa0c63b
parent 19 2f5c9ee7098c
child 21 c6bafb5162d8
equal deleted inserted replaced
19:2f5c9ee7098c 20:072a5fa0c63b
     1 /*
       
     2 * Copyright (c) 2006 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:  Voice Recorder sub-menu in General Settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VOICERECORDERGSPLUGINCONTAINER_H
       
    20 #define VOICERECORDERGSPLUGINCONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "voicerecorder.hrh"
       
    24 
       
    25 // System includes
       
    26 #include <gsbasecontainer.h>
       
    27 #include <CAknMemorySelectionDialog.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CAknSettingItemArray;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 *  CVRGSPluginContainer class 
       
    35 */
       
    36 class CVRGSPluginContainer  : public CGSBaseContainer
       
    37     {
       
    38     public: // Constructors and destructor
       
    39     
       
    40         /**
       
    41         * Default C++ constructor
       
    42         */
       
    43         CVRGSPluginContainer();
       
    44                 
       
    45         /**
       
    46         * Symbian OS default constructor.
       
    47         *
       
    48         * @param aRect gives the correct TRect for construction.
       
    49         */
       
    50         void ConstructL( const TRect& aRect );
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         ~CVRGSPluginContainer();
       
    56 
       
    57     public:
       
    58 
       
    59         /**
       
    60         * Updates list box
       
    61         *
       
    62         * @param aFeatureId is a updated list box item
       
    63         */
       
    64         virtual void UpdateListBoxL( TInt aFeatureId );
       
    65 
       
    66         /**
       
    67         * Creates list box
       
    68         *
       
    69         * @param aResLbxId is resource number to create.
       
    70         */  
       
    71         void ConstructListBoxL( TInt aResLbxId );
       
    72 
       
    73         /**
       
    74         * Retrieves the currently selected listbox feature id
       
    75         * @return feature id.
       
    76         * @since 3.1
       
    77         */
       
    78         TInt CurrentFeatureId() const;
       
    79         
       
    80         /**
       
    81         * From CCoeControl changes the size of the list box
       
    82         */
       
    83         void SizeChanged();
       
    84         
       
    85         /**
       
    86         * Handle listbox selection event
       
    87         * @param aCommand Command id to tell origin of event
       
    88         */
       
    89         void HandleListBoxSelectionL( TInt aCommand );      
       
    90         
       
    91         /**
       
    92         * Store all values from setting items to permanent storage
       
    93         */
       
    94         void StoreAllL();
       
    95         
       
    96     protected: //new
       
    97 
       
    98         /**
       
    99         * Creates list box items
       
   100         */  
       
   101         virtual void CreateListBoxItemsL();
       
   102         
       
   103         /**
       
   104         * Required for help.
       
   105         */
       
   106         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   107 
       
   108         
       
   109     private:
       
   110 		/**
       
   111 		* Array of setting items contained in the listbox. Owned.
       
   112 		*/
       
   113 		CAknSettingItemArray* iSettingItemArray;        
       
   114 
       
   115         /**
       
   116         * Selected memo quality
       
   117         */		
       
   118 		TVRQuality iQuality;	
       
   119 		
       
   120 		/**
       
   121 		* Selected memo store
       
   122 		*/
       
   123 		CAknMemorySelectionDialog::TMemory iMemoStore;
       
   124 
       
   125 		/**
       
   126 		* Selected memo store
       
   127 		*/		
       
   128 		TDriveNumber iDrive;
       
   129 
       
   130     };
       
   131 
       
   132 #endif // VOICERECORDERGSPLUGINCONTAINER_H
       
   133 
       
   134 // End of File