uifw/AvKon/akncompamode/gs/inc/akncompagscontainer.h
changeset 21 558113899881
parent 14 3320e4e6e8bb
child 22 75713bee6484
child 33 b3425bf29f82
equal deleted inserted replaced
14:3320e4e6e8bb 21:558113899881
     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:  Container for compatibility mode view.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AKNCOMPAGSCONTAINER_H
       
    20 #define AKNCOMPAGSCONTAINER_H
       
    21 
       
    22 #include <gsbasecontainer.h>
       
    23 #include "gssettingid.h"
       
    24 
       
    25 
       
    26 class CGSListBoxItemTextArray;
       
    27 
       
    28 
       
    29 /**
       
    30 *  CAknCompaGSContainer container class
       
    31 *  @since Series 60 5.0
       
    32 * 
       
    33 */
       
    34 class CAknCompaGSContainer : public CGSBaseContainer
       
    35     {
       
    36     public: // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * Symbian OS constructor.
       
    40         * @param aRect Listbox's rect.
       
    41         * 
       
    42         */
       
    43         void ConstructL( const TRect& aRect );
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CAknCompaGSContainer();
       
    49 
       
    50     public: //new
       
    51 
       
    52         /**
       
    53         * Updates listbox's item's value.
       
    54         * @param aFeatureId An item which is updated.
       
    55         * 
       
    56         */
       
    57         void UpdateListBoxL( TInt aFeatureId, TInt aValue );
       
    58 
       
    59         /**
       
    60         * Retrieves the currently selected listbox feature id
       
    61         * @return feature id.
       
    62         */
       
    63         TInt CurrentFeatureId() const;
       
    64 
       
    65     protected: // from CGSBaseContainer
       
    66         void ConstructListBoxL( TInt aResLbxId );
       
    67 
       
    68     private: // new
       
    69 
       
    70         void CreateListBoxItemsL();
       
    71         void MakeCompaModeStateItemL();
       
    72         void UpdateCompaModeStateItemL(const TInt& aState);
       
    73     
       
    74     private: // data
       
    75         CDesCArrayFlat* iCompaModeStateItems;
       
    76         CGSListBoxItemTextArray* iListboxItemArray;
       
    77         
       
    78     };
       
    79 
       
    80 #endif // AKNCOMPAGSCONTAINER_H
       
    81 
       
    82 // End of File