gssettingsuis/Gs/GSDisplayPlugin/Inc/GSDisplayPluginContainer.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2005 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 for the Display sub-folder
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSDISPLAYPLUGINCONTAINER_H
       
    20 #define GSDISPLAYPLUGINCONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "GSDisplayPluginModel.h"
       
    24 
       
    25 #include <bldvariant.hrh>
       
    26 #include <gsbasecontainer.h>
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class CGSListBoxItemTextArray;
       
    38 class CGulIcon;
       
    39 
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44 *  GSDisplayPluginContainer container class
       
    45 *
       
    46 *  container class for Device settings view
       
    47 *  @lib GSDisplayPlugin.lib
       
    48 *  @since Series 60_3.1
       
    49 */
       
    50 class CGSDisplayPluginContainer : public CGSBaseContainer
       
    51     {
       
    52     public: // Constructors and destructor
       
    53         
       
    54         /**
       
    55         * Symbian OS constructor.
       
    56         * @param aRect Listbox's rect.
       
    57         * 
       
    58         */
       
    59         void ConstructL( const TRect& aRect );
       
    60 
       
    61         /**
       
    62         * Destructor.
       
    63         */
       
    64         ~CGSDisplayPluginContainer();
       
    65         
       
    66         /**
       
    67         * Constructor
       
    68         */
       
    69         CGSDisplayPluginContainer();
       
    70 
       
    71     public: //new
       
    72 
       
    73         /**
       
    74         * Updates listbox's item's value.
       
    75         * @since Series 60_3.1
       
    76         * @param aItemId An item which is updated.
       
    77         */
       
    78         void UpdateListBoxL( TInt aFeatureId );
       
    79         
       
    80         /**
       
    81         * Retrieves the currently selected listbox feature id
       
    82         * @since Series 60_3.1
       
    83         * @return feature id.
       
    84         */
       
    85         TInt CurrentFeatureId() const;
       
    86 
       
    87         /**
       
    88         * Converts the value from Model's Avkon to setting page item index
       
    89         * @param aCurrentZoom value from TAknUiZoom in AknDef.hrh
       
    90         */
       
    91         void MapZoomLevelToUi( TInt& aCurrentZoom );
       
    92 
       
    93         /**
       
    94         * Converts the value from setting page item index to Model's Avkon value
       
    95         * @param aCurrentZoom value from TZoomLevel in CPP file for this header
       
    96         */
       
    97         void MapZoomLevelFromUi ( TInt& aCurrentZoom );
       
    98         
       
    99         /**
       
   100          * Return its member variable iMode
       
   101          * @param
       
   102          */
       
   103         CGSDisplayPluginModel* Model();
       
   104         void CloseDialog();
       
   105 
       
   106     protected: // from CGSBaseContainer
       
   107         void ConstructListBoxL( TInt aResLbxId );
       
   108         
       
   109     protected: // from CCoeControl
       
   110         /**
       
   111         * Handles skin changes to resources
       
   112         * @since Series 60_3.1
       
   113         * @param aType type of the event to handle
       
   114         */
       
   115         void HandleResourceChange( TInt aType );
       
   116 
       
   117     private: // new
       
   118         // create listbox from resource
       
   119         void CreateListBoxItemsL();
       
   120         // create contrast item
       
   121         void MakeContrastItemL();
       
   122         // create brightness item
       
   123         void MakeBrightnessItemL();
       
   124         // create screen saver time-out item
       
   125         void MakeSSPItemL();
       
   126         // create backlight timeout item
       
   127         void MakeBacklightItemL();
       
   128          // create ALS item
       
   129         void MakeAmbientLightSensorItemL();
       
   130         // create Display text size item
       
   131         void MakeDisplayTextSizeItemL();
       
   132         // create welcome note item
       
   133         void MakeWNIItemL();
       
   134         //PowerSave LED item
       
   135         void MakePowerSaveLedItemL();
       
   136         //Operator logo item
       
   137         void MakeOperatorLogoItemL();
       
   138         // create static bitmap for contrast and brightness
       
   139         void CreateBitmapL( TInt aValue, TInt aResourceId, TInt aIndex );
       
   140         
       
   141     private: // from CGSBaseContainer
       
   142         /**
       
   143         * Required for help.
       
   144         */
       
   145         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   146         
       
   147     private: // Data
       
   148         //display text size setting page items
       
   149         CDesCArrayFlat* iDispTxtSizeItems;
       
   150         //welcome note setting page items 
       
   151         CDesCArrayFlat* iWelcomeItems;
       
   152         //power save led setting page items
       
   153         CDesCArrayFlat* iLedItems;
       
   154         //operator logo on/off
       
   155         CDesCArrayFlat* iOperatorLogoItems;
       
   156         //icons for contrast & brightness
       
   157         CArrayPtr<CGulIcon>* iIconArray;
       
   158         //listbox item array
       
   159         CGSListBoxItemTextArray* iListboxItemArray;
       
   160         // plugin model
       
   161         CGSDisplayPluginModel* iModel;
       
   162         
       
   163     };
       
   164 
       
   165 #endif //GSDISPLAYPLUGINCONTAINER_H
       
   166 
       
   167 //End of File