camerauis/cameraapp/generic/GsCamcorderPlugin/inc/GSCamcorderSettingsContainer.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Base container for Photo/video settings views
       
    15 *
       
    16 *  Copyright (c) 2008 Nokia Corporation.
       
    17 *  This material, including documentation and any related 
       
    18 *  computer programs, is protected by copyright controlled by 
       
    19 *  Nokia Corporation. All rights are reserved. Copying, 
       
    20 *  including reproducing, storing, adapting or translating, any 
       
    21 *  or all of this material requires the prior written consent of 
       
    22 *  Nokia Corporation. This material also contains confidential 
       
    23 *  information which may not be disclosed to others without the 
       
    24 *  prior written consent of Nokia Corporation.
       
    25 *
       
    26 *
       
    27 */
       
    28 
       
    29 
       
    30 #ifndef GSCAMCORDERSETTINGSCONTAINER_H
       
    31 #define GSCAMCORDERSETTINGSCONTAINER_H
       
    32 
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CCamStaticSettingsModel;
       
    36 class CAknSettingItemList;
       
    37 
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 * Container for the image settings page.
       
    43 * @since
       
    44 */
       
    45 class CGSCamcorderSettingsContainer: public CCoeControl
       
    46     {
       
    47     public: // Constructors and destructor
       
    48       
       
    49         /**
       
    50         * Symbian OS default constructor.
       
    51         * @since 3.1
       
    52         */
       
    53         void ConstructL( CCamStaticSettingsModel& aModel, 
       
    54                          TBool aLauchedFromGS,
       
    55                          TBool aSecondaryCameraSettings,
       
    56                          TBool aImageSettings );
       
    57 
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61         ~CGSCamcorderSettingsContainer();       
       
    62       
       
    63          
       
    64     public: // New functions
       
    65         /**
       
    66         * Open setting page for currently selected setting item.
       
    67         * @since 3.1
       
    68         */
       
    69         void EditCurrentL( TBool aCalledFromMenu = ETrue );
       
    70         
       
    71         /**
       
    72         * Save all settings.
       
    73         * @since 3.1
       
    74         */
       
    75         void SaveSettingsL();        
       
    76 
       
    77         /**
       
    78         * Get a pointer to the settingslist.
       
    79         * @since 9.1
       
    80         */
       
    81         CAknSettingItemList* SettingsList() const;
       
    82 
       
    83     protected: // Functions from base classes  
       
    84           
       
    85         /**
       
    86         * From CCoeControl
       
    87         * Gives the help context to be displayed
       
    88         * @param aContext help context related to current view
       
    89         */
       
    90         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    91 
       
    92     private: //data 
       
    93     
       
    94         /**
       
    95         * From CCoeControl set the size and position of its component controls.
       
    96         */
       
    97         void SizeChanged();  
       
    98         
       
    99         /**
       
   100         * From CCoeControl changes the size of the list box
       
   101         */
       
   102         void HandleResourceChange( TInt aType );
       
   103            
       
   104         /**
       
   105         * From CCoeControl return the number of controls owned
       
   106         * @return TInt number of controls
       
   107         */
       
   108         TInt CountComponentControls() const;
       
   109         
       
   110         /**
       
   111         * From CCoeControl returns a control
       
   112         * @param aIndex index of a control
       
   113         * @return CCoeControl* pointer on a control
       
   114         */
       
   115         CCoeControl* ComponentControl( TInt aIndex ) const;
       
   116 
       
   117         /**
       
   118         * From CCoeControl event handling section
       
   119         * @param aKeyEvent the key event
       
   120         * @param aType the type of the event
       
   121         * @return TKeyResponse key event was used by this control or not
       
   122         */
       
   123         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
   124                                      TEventCode aType );
       
   125         /**
       
   126         * From CCoeControl changes the size of the list box
       
   127         */                                     
       
   128         void FocusChanged( TDrawNow aDrawNow );
       
   129         
       
   130         /**
       
   131         * Draw the counter to the bitmap used in the navi pane
       
   132         * @since 3.0
       
   133         * @param aBmpGc The graphics context for the bitmap
       
   134         * @param aBmpMaskGc The graphics context for the bitmap mask
       
   135         */
       
   136 	    void CreateNaviBitmapsL();
       
   137 
       
   138     private:
       
   139         //CGSCamPhotoSettingsList* iImageSettingsList;  // owned
       
   140         CAknSettingItemList* iSettingsList;  // owned
       
   141         TBool iLauchedFromGS;
       
   142         TBool iImageSettings;
       
   143         TInt iProductCaptureKey;
       
   144     };
       
   145 
       
   146 #endif
       
   147 
       
   148 // End of File