camerauis/cameraapp/generic/GsCamcorderPlugin/inc/GSCamVideoSettingsList.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Video settings list class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef GSCAMVIDEOSETTINGSLIST_H
       
    21 #define GSCAMVIDEOSETTINGSLIST_H
       
    22 
       
    23 // INCLUDES
       
    24  
       
    25 #include <bldvariant.hrh> // for feature definitions
       
    26 
       
    27 #include <aknsettingitemlist.h> // CAknSettingItemList
       
    28 #include <CAknMemorySelectionDialog.h>
       
    29 #include <driveinfo.h>
       
    30 
       
    31 #include "CamStaticSettingsModel.h"
       
    32 #include "GSCamcorderPlugin.hrh"
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CCamStaticSettingsModel;
       
    36 class CGSCamcorderPlugin;
       
    37 
       
    38 class CCamWaitDialog;
       
    39 
       
    40 
       
    41 /**
       
    42 * Image settings list class
       
    43 */
       
    44 class CGSCamVideoSettingsList : public CAknSettingItemList
       
    45 
       
    46     {
       
    47     public: // Constructors and destructor
       
    48         /** 
       
    49         * C++ constructor.
       
    50         * @since 2.1
       
    51         * @param aController reference to CCcorController
       
    52         */
       
    53         CGSCamVideoSettingsList( CCamStaticSettingsModel& aModel );
       
    54 
       
    55         /**
       
    56         * Symbian 2nd phase constructor
       
    57         * @since 2.1
       
    58         */
       
    59         void ConstructL( TBool aLaunchedFromGS,
       
    60                          TBool aSecondaryCameraSettings );
       
    61 
       
    62         /**
       
    63         * Destructor.
       
    64         */
       
    65         virtual ~CGSCamVideoSettingsList();
       
    66 
       
    67 
       
    68     public: // Functions of base classes
       
    69         /**
       
    70         * From CAknSettingItemList
       
    71         * Launch the setting page for the current item by calling
       
    72         * EditItemL on it.
       
    73         */
       
    74         void EditItemL( TInt aIndex, TBool aCalledFromMenu );
       
    75         
       
    76         /**
       
    77         * From CCoeControl set the size and position of its component controls.
       
    78         */
       
    79         void SizeChanged();
       
    80     
       
    81  
       
    82     private: // Functions from base classes
       
    83         /**
       
    84         * From CAknSettingItemList Handles creating setting items
       
    85         * @param aIdentifier Identifier of the setting item to create
       
    86         */
       
    87         CAknSettingItem* CreateSettingItemL( TInt aIdentifier );
       
    88 
       
    89         /**
       
    90         * Returns the current value of a setting for this list.
       
    91         * @since 2.8
       
    92         * @param aItemId The id of the setting in question
       
    93         * @return the current value.
       
    94         */
       
    95         TInt ValueOfSetting( TInt aItemId ) const;
       
    96 
       
    97         /**
       
    98         * Returns the array index of a setting for this list.
       
    99         * @since 2.8
       
   100         * @param aItemId The id of the setting in question
       
   101         * @return the array index.
       
   102         */
       
   103         TInt IndexOfSetting( TInt aItemId ) const;
       
   104         
       
   105   
       
   106     private: // Data
       
   107         // Store values for the different settings.
       
   108         RPointerArray<TIntSetting> iSettings;
       
   109         // Array of supported quality levels
       
   110         RArray<TInt> iSupportedVideoQualities;
       
   111 
       
   112         TInt iQualityValue;
       
   113         TBool iLaunchedFromGS;
       
   114         TBool iSecondaryCameraSettings;
       
   115         TBuf<KMaxNameBaseLength> iDefaultNameBase;
       
   116 
       
   117         // Used to store memory value. Required by the CAknMemorySelectionSettingItemMultiDrive.
       
   118         DriveInfo::TDefaultDrives iMemVal;
       
   119         TDriveNumber iDrive;
       
   120 
       
   121         CCamStaticSettingsModel& iModel;
       
   122         CCamWaitDialog* iWaitDialog;
       
   123         // Index of the setting item which is active 
       
   124         TInt iIndex;
       
   125         // Flag to check if the Wait note is active
       
   126         TBool iWaitNoteActive;
       
   127     };
       
   128 
       
   129 #endif
       
   130 
       
   131 // End of File