browserui/browser/FavouritesInc/BrowserFavouritesFolderListboxIconHandler.h
branchRCL_3
changeset 65 8e6fa1719340
parent 0 84ad3b177aa3
equal deleted inserted replaced
64:6385c4c93049 65:8e6fa1719340
       
     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: 
       
    15 *      Declaration of class TBrowserFavouritesFolderListboxIconHandler.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef BROWSER_FAVOURITES_FOLDER_LISTBOX_ICON_HANDLER_H
       
    22 #define BROWSER_FAVOURITES_FOLDER_LISTBOX_ICON_HANDLER_H
       
    23 
       
    24 // INCLUDE FILES
       
    25 
       
    26 #include "BrowserFavouritesListboxIconHandler.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 * Icon handling in the WML Browser's Favourites Views Folder Select listboxes.
       
    32 * This one presents only folder icons:
       
    33 *   - Mark icon (not used but safer this way)
       
    34 *   - Folder icon
       
    35 *   - Root folder icon
       
    36 */
       
    37 
       
    38 class TBrowserFavouritesFolderListboxIconHandler:
       
    39                                 public MBrowserFavouritesListboxIconHandler
       
    40     {
       
    41     public:
       
    42             /**
       
    43         * Get the icon indexes for this item (index into the array).
       
    44         * @param aItem Item to get icon indexes for.
       
    45         * @param aAccessPoints Access Points to use (if bearer info is needed).
       
    46         * May be NULL.
       
    47         * @return Icon indexes for the item.
       
    48         */
       
    49         TBrowserFavouritesIconIndexes IconIndexes
       
    50             (
       
    51             const CFavouritesItem& aItem
       
    52           /*  const CApListItemList* aAccessPoints,*/
       
    53             ) const;
       
    54             
       
    55     protected:  // from MBrowserFavouritesListboxIconHandler
       
    56 
       
    57         /**
       
    58         * Get resource id for the iconarray.
       
    59         * @return The resource id for the iconarray.
       
    60         */
       
    61         TInt IconArrayResourceId() const;
       
    62 
       
    63         /**
       
    64         * Get item icon index for this item (index into the array).
       
    65         * @param aItem Item to get icon index for.
       
    66         * @return Icon index for the item.
       
    67         */
       
    68         TInt ItemIconIndex( const CFavouritesItem& aItem ,CBrowserFavouritesListbox* aListbox  ) const;
       
    69 
       
    70         TInt ItemIconIndex( const CFavouritesItem& aItem ) const;
       
    71 
       
    72 
       
    73         /**
       
    74         * Dynamically load Icon from files (AVKON skin supported)
       
    75         * @return pointer to the created icon array
       
    76         */
       
    77 		CAknIconArray* LoadIconsL() const;
       
    78     };
       
    79 
       
    80 #endif
       
    81 
       
    82 // End of file