camerauis/cameraapp/generic/GsCamcorderPlugin/inc/GSCamcorderPluginContainer.h
branchRCL_3
changeset 54 bac7acad7cb3
equal deleted inserted replaced
53:61bc0f252b2b 54: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:  Container class for the camera general settings plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMCODERGSPLUGINCONTAINER_H
       
    20 #define CAMCODERGSPLUGINCONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 // System includes
       
    24 #include <gsbasecontainer.h>
       
    25 
       
    26 // CONSTANTS
       
    27 const TInt KGSCamSettingsListImageIndex = 0;
       
    28 const TInt KGSCamSettingsListVideoIndex = 1;
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CGSListBoxItemTextArray;
       
    32 class CAknIconArray;
       
    33 class TAknsItemID;
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 *  CGSTelPluginContainer class 
       
    37 */
       
    38 class CGSCamcorderPluginContainer  : public CGSBaseContainer
       
    39     {
       
    40     public: // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Symbian OS default constructor.
       
    44         *
       
    45         * @param aRect gives the correct TRect for construction.
       
    46         */
       
    47         void ConstructL( const TRect& aRect );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CGSCamcorderPluginContainer();
       
    53 
       
    54     public:
       
    55 
       
    56         /**
       
    57         * Updates list box
       
    58         *
       
    59         * @param aFeatureId is a updated list box item
       
    60         */
       
    61         virtual void UpdateListBoxL( TInt aFeatureId );
       
    62 
       
    63         /**
       
    64         * Creates list box
       
    65         *
       
    66         * @param aResLbxId is resource number to create.
       
    67         */  
       
    68         void ConstructListBoxL( TInt aResLbxId );
       
    69 
       
    70         /**
       
    71         * Retrieves the currently selected listbox feature id
       
    72         * @return feature id.
       
    73         * @since 3.1
       
    74         */
       
    75         TInt CurrentFeatureId() const;
       
    76         
       
    77         /**
       
    78         * Load icon bitmaps.
       
    79         * @since 3.1
       
    80         */
       
    81         void LoadIconsL();
       
    82         
       
    83         /**
       
    84         * From CCoeControl changes the size of the list box
       
    85         */
       
    86         void SizeChanged();
       
    87         
       
    88     protected: //new
       
    89 
       
    90         /**
       
    91         * Creates list box items
       
    92         */  
       
    93         virtual void CreateListBoxItemsL();
       
    94        
       
    95         /**
       
    96         * Creates Image setting list box item.
       
    97         */
       
    98         void MakeImageSettingsFolderItemL();
       
    99 
       
   100         /**
       
   101         * Creates Video setting list box item.
       
   102         */
       
   103         void MakeVideoSettingsFolderItemL();
       
   104         
       
   105         /**
       
   106         * Required for help.
       
   107         */
       
   108         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   109 
       
   110         /** 
       
   111         * From CCoeControl handles focus changes for listbox item
       
   112         */
       
   113         void FocusChanged( TDrawNow aDrawNow );
       
   114         
       
   115     protected:        
       
   116         CGSListBoxItemTextArray* iListboxItemArray;
       
   117     private:
       
   118     void AppendIconToArrayL( CAknIconArray* aArray,
       
   119             const TAknsItemID& aID,
       
   120             const TDesC& aMbmFile,
       
   121             TInt aBitmapId,
       
   122             TInt aMaskId );
       
   123     };
       
   124 
       
   125 #endif // CamCODERGSPLUGINCONTAINER_H
       
   126 
       
   127 // End of File