|
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 CWmlBrowserFavouritesListboxView. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSER_FAVOURITES_LISTBOX_VIEW_H |
|
22 #define BROWSER_FAVOURITES_LISTBOX_VIEW_H |
|
23 |
|
24 // INCLUDE FILES |
|
25 #include <aknlists.h> |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 |
|
29 class MBrowserFavouritesListboxCursorObserver; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Listbox view, which notifies its observer about cursor movements. |
|
35 */ |
|
36 class CBrowserFavouritesListboxView: public CAknColumnListBoxView |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Constructor. |
|
42 * @param aListbox Listbox which has this view. |
|
43 */ |
|
44 CBrowserFavouritesListboxView( CEikListBox& aListbox ); |
|
45 |
|
46 public: // new methods. |
|
47 |
|
48 /** |
|
49 * Set cursor observer. Can be set to NULL. |
|
50 * @param aCursorObserver This observer (if any) will be |
|
51 * notified about cursor changes. |
|
52 */ |
|
53 void SetCursorObserver |
|
54 ( MBrowserFavouritesListboxCursorObserver* aCursorObserver ); |
|
55 |
|
56 /** |
|
57 * Move the cursor. Execute base class's method and notify observer. |
|
58 * @param aCursorMovement Movement occurred in the listbox. |
|
59 * @param aSelectionMode Selection mode. |
|
60 */ |
|
61 void MoveCursorL( CListBoxView::TCursorMovement aCursorMovement, |
|
62 TSelectionMode aSelectionMode ); |
|
63 |
|
64 /** |
|
65 * Select / highlight items witout moving the cursor. |
|
66 * @param aSelectionMode Selection mode. |
|
67 */ |
|
68 void UpdateSelectionL( TSelectionMode aSelectionMode ); |
|
69 |
|
70 private: // data |
|
71 |
|
72 /// The listbox. |
|
73 CEikListBox* iListbox; |
|
74 /// The cursor movement observer. Can be NULL. |
|
75 MBrowserFavouritesListboxCursorObserver* iCursorObserver; |
|
76 }; |
|
77 |
|
78 #endif |
|
79 |
|
80 // End of file |