idlefw/plugins/pslnactiveidleplugin/inc/pslnactiveidleplugincontainer.h
branchRCL_3
changeset 8 d0529222e3f0
parent 4 1a2a00e78665
child 11 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
     1 /*
       
     2 * Copyright (c) 2005-2006 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 Application shell theme view.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PSLNACTIVEIDLEPLUGINCONTAINER_H
       
    20 #define C_PSLNACTIVEIDLEPLUGINCONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <pslnfwbasecontainer.h>
       
    24 
       
    25 // CONSTANTS
       
    26 // Download item index
       
    27 const TInt KPslnDownloadItemIndex = 0;
       
    28 // View item text length
       
    29 const TInt KPslnAsItemMaxTextLength = 128;
       
    30 
       
    31 // FORWARD DECLARATION
       
    32 class CXnODT;
       
    33 class CPslnActiveIdlePlugin;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  CPslnActiveIdlePluginContainer container class
       
    39 *  @since S60 v3.1
       
    40 */
       
    41 NONSHARABLE_CLASS( CPslnActiveIdlePluginContainer ) :
       
    42     public CPslnFWBaseContainer
       
    43     {
       
    44     public:
       
    45 
       
    46         CPslnActiveIdlePluginContainer(
       
    47                     TBool aGSCalling,
       
    48                     CPslnActiveIdlePlugin* aPlugin);
       
    49         /**
       
    50         * Symbian OS constructor.
       
    51         * @param aRect Listbox's rect.
       
    52         */
       
    53         void ConstructL( const TRect& aRect );
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         ~CPslnActiveIdlePluginContainer();
       
    59 
       
    60         /**
       
    61         * Return currently active selection from list.
       
    62         * @return currently selected skin index from list view.
       
    63         */
       
    64         TInt GetCurrentlySelectedIndex() const;
       
    65 
       
    66         /**
       
    67         * Adds new item to the listbox.
       
    68         * @param aItemIndex index to add.
       
    69         * @param ODT of the theme to add.
       
    70         * @since 3.2
       
    71         */
       
    72         void AddNewItemToListL(
       
    73             const TInt aItemIndex,
       
    74             CXnODT* aSkinODT, TInt aUiController );
       
    75 
       
    76         /*
       
    77         * Removes number of themes from listbox.
       
    78         * @param aDeleteFrom start point index where to start deleting.
       
    79         *        All themes from this on are deleted.
       
    80         * @since 3.2
       
    81         */
       
    82         void RemoveThemes( const TInt aDeleteFrom );
       
    83         
       
    84         /**
       
    85          * Method for telling to update the listing.
       
    86          */
       
    87         void RefreshList();
       
    88         
       
    89     private:
       
    90 
       
    91         /* From CPslnFWBaseContainer. */
       
    92         void ConstructListBoxL( TInt aResLbxId );
       
    93 
       
    94         /**
       
    95         * Required for help.
       
    96         */
       
    97         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    98 
       
    99         /**
       
   100         * Adds icons to setting item list.
       
   101         */
       
   102         void AddIconsToListL();
       
   103 
       
   104     private: // data
       
   105 
       
   106         /**
       
   107         * Listbox array for items.
       
   108         * Not own.
       
   109         */
       
   110         CDesCArray* iItemArray;
       
   111 
       
   112         /**
       
   113         * List of items from resources.
       
   114         * Own.
       
   115         */
       
   116         CDesCArrayFlat* iItems;
       
   117 
       
   118         /**
       
   119         * Index of currently selected item.
       
   120         */
       
   121         TInt iCurrentlySelected;
       
   122         
       
   123         /**
       
   124          * Pointer to psln plugin.
       
   125          * Not own.
       
   126          */
       
   127         CPslnActiveIdlePlugin* iPlugin;
       
   128 
       
   129         /**
       
   130          * Indicate if gs started us
       
   131          */
       
   132         TBool iGSCalling;
       
   133     
       
   134     };
       
   135 
       
   136 #endif //C_PSLNACTIVEIDLEPLUGINCONTAINER_H
       
   137 
       
   138 // End of File