mediasettings/mediasettingsapp/inc/MPSettingsMainContainer.h
branchRCL_3
changeset 23 befca0ec475f
parent 0 96612d01cf9f
equal deleted inserted replaced
22:839377eedc2b 23:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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 Main view.*
       
    15 */
       
    16 
       
    17 
       
    18 // Version : %version: 3 %
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef CMPSETTINGSMAINCONTAINER_H
       
    24 #define CMPSETTINGSMAINCONTAINER_H
       
    25 
       
    26 // INCLUDES
       
    27 #include    "MPSettingsBaseContainer.h"
       
    28    
       
    29 // FORWARD DECLARATIONS
       
    30 class CEikTextListBox;
       
    31 class CAknIconArray;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  CMPSettingsMainContainer container control class.
       
    37 *
       
    38 *  @lib MediaSettings.app
       
    39 *  @since 2.0
       
    40 */
       
    41 class CMPSettingsMainContainer : public CMPSettingsBaseContainer
       
    42     {
       
    43     public: // Constructors and destructor
       
    44         
       
    45         /**
       
    46         * C++ default constructor.
       
    47         */
       
    48         CMPSettingsMainContainer();
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CMPSettingsMainContainer();
       
    54 
       
    55     private:    // Functions from base classes
       
    56             
       
    57         /**
       
    58         * From CoeControl
       
    59         */
       
    60         void GetHelpContext(TCoeHelpContext& aContext) const;
       
    61 	void FocusChanged(TDrawNow /*aDrawNow*/);
       
    62 
       
    63         /**
       
    64         * From CMPSettingsBaseContainer
       
    65         */
       
    66         void ConstructComponentControlsL();
       
    67 
       
    68         /**
       
    69         * From CMPSettingsBaseContainer
       
    70         */
       
    71         TInt TitleResourceId();
       
    72 
       
    73         /**
       
    74         * From CoeControl
       
    75         */
       
    76         void HandleResourceChange( TInt aType );
       
    77 
       
    78     private: // New functions
       
    79 
       
    80         /**
       
    81         * Contructs icon array for listbox
       
    82         */
       
    83         void MakeIconArrayL();
       
    84 
       
    85         /**
       
    86         * Load a possibly skinned icon (with mask) and append it to an 
       
    87         * icon array.
       
    88         * @since 2.6
       
    89         * @param aArray    Icon array to add the icon to
       
    90         * @param aID       Skin ID for the icon
       
    91         * @param aMbmFile  Full path to MBM file which contains the default icon
       
    92         * @param aBitmapId Id for the default icon in the MBM file
       
    93         * @param aMaskId   Id for the default icon mask in the MBM file
       
    94         */
       
    95         static void AppendIconToArrayL(
       
    96             CAknIconArray* aArray,
       
    97             const TAknsItemID& aID,
       
    98             const TDesC& aMbmFile,
       
    99             TInt aBitmapId,
       
   100             TInt aMaskId );
       
   101         
       
   102         /**
       
   103         * Handles leave in HandleResourceChange method 
       
   104         *
       
   105         * @param aError     Error code
       
   106         */
       
   107         void HandleResourceChangeErrorL( TInt aError );
       
   108         
       
   109     };
       
   110         
       
   111 #endif      // CMPSETTINGSMAINCONTAINER_H   
       
   112             
       
   113 // End of File
       
   114 
       
   115