psln/Inc/PslnGeneralThemeContainer.h
branchRCL_3
changeset 56 d48ab3b357f1
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
       
     1 /*
       
     2 * Copyright (c) 2005-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:  General theme container.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PSLNGENERALTHEMECONTAINER_H
       
    21 #define PSLNGENERALTHEMECONTAINER_H
       
    22 
       
    23 #include "PslnBaseContainer.h"
       
    24 
       
    25 /**
       
    26 *  General theme container.
       
    27 *  Contains available skins.
       
    28 *
       
    29 *  @since S60 v3.1
       
    30 */
       
    31 class CPslnGeneralThemeContainer : public CPslnBaseContainer
       
    32     {
       
    33     public:  // Constructors and destructor   
       
    34     
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38         CPslnGeneralThemeContainer();
       
    39 
       
    40         /**
       
    41         * By default Symbian 2nd phase constructor is private.
       
    42         * @param aRect client rect.
       
    43         */
       
    44         void ConstructL( const TRect& aRect );        
       
    45         
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CPslnGeneralThemeContainer();
       
    50         
       
    51     public: // New methods
       
    52     
       
    53         /**
       
    54         * Is embedded link visible. 
       
    55         * @return ETrue if link should be shown.
       
    56         */
       
    57         TBool IsEmbeddedLinkVisible() const;
       
    58         
       
    59         /**
       
    60         * Updates skin list.
       
    61         */
       
    62         void UpdateSkinListItemsL( const TInt& aNewIndex );
       
    63 
       
    64         /**
       
    65         * From CPslnBaseContainer.
       
    66         * Constructs list box and items.
       
    67         * @param aResLbxId used resource ID.
       
    68         */
       
    69         void ConstructListBoxL( TInt aResLbxId );
       
    70         
       
    71         /**
       
    72         * From CPslnBaseContainer.
       
    73         * Creates listbox items.
       
    74         */
       
    75         void CreateListBoxItemsL();
       
    76 
       
    77         /**
       
    78         * Updates D column icons when skin preview activates.
       
    79         *
       
    80         * @since 5.0
       
    81         */
       
    82         void UpdateSkinListItemsDColumnOnlyL();
       
    83         
       
    84 
       
    85     private:            
       
    86         
       
    87         // Gets Help context.        
       
    88         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    89 
       
    90     private: // data
       
    91 
       
    92         /*
       
    93         * To be used index in highlight when container is updated.
       
    94         * This is used when skin is activated and user has already
       
    95         * highlighted some other theme.
       
    96         */
       
    97         TInt iToBeUsedIndex;
       
    98 
       
    99         /*
       
   100         * Current preview theme index in listbox.
       
   101         */
       
   102         TInt iActiveSkinItemIndex;
       
   103 
       
   104         /*
       
   105         * Old Skin Num.
       
   106         */
       
   107         TInt iOldSkinNum;
       
   108     };
       
   109 
       
   110 #endif      // PSLNGENERALTHEMECONTAINER_H  
       
   111             
       
   112 // End of File