|
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 TBrowserBookmarksListboxIconHandler. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSER_BOOKMARKS_LISTBOX_ICON_HANDLER_H |
|
22 #define BROWSER_BOOKMARKS_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 Bookmark View listbox. |
|
32 * The following icons are presented: |
|
33 * - Mark icon |
|
34 * - Folder icon |
|
35 * - Homepage icon |
|
36 * - Last Visited Page icon |
|
37 * - Bookmark icon |
|
38 * - CSD bearer bookmark icon |
|
39 * - HSCSD bearer bookmark icon |
|
40 * - GPRS bearer bookmark icon |
|
41 * - SMS bearer bookmark icon |
|
42 */ |
|
43 |
|
44 class TBrowserBookmarksListboxIconHandler: |
|
45 public MBrowserFavouritesListboxIconHandler |
|
46 { |
|
47 protected: // from MBrowserFavouritesListboxIconHandler |
|
48 |
|
49 /** |
|
50 * Get item icon index for this item (index into the array). |
|
51 * @param aItem Item to get icon index for. |
|
52 * @return Icon index for the item. |
|
53 */ |
|
54 TInt ItemIconIndex( const CFavouritesItem& aItem,CBrowserFavouritesListbox* aListbox ) const; |
|
55 |
|
56 /** |
|
57 * Get bearer icon index for this access point (index into the array). |
|
58 * @param aAccessPoint Access Points to get bearer icon for. |
|
59 * @param aAccessPoints Access Points to use. |
|
60 * @return Icon index for the access point. |
|
61 */ |
|
62 TInt BearerIconIndex |
|
63 ( |
|
64 const TFavouritesWapAp aAccessPoint, |
|
65 const CApListItemList& aAccessPoints |
|
66 ) const; |
|
67 /** |
|
68 * Dynamically load Icon from files (AVKON skin supported) |
|
69 * @return pointer to the created icon array |
|
70 */ |
|
71 CAknIconArray* LoadIconsL() const; |
|
72 }; |
|
73 |
|
74 #endif |
|
75 |
|
76 // End of file |