|
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 * Implementation of CBrowserFavouritesListboxView. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 |
|
23 #include "BrowserFavouritesListboxView.h" |
|
24 #include "BrowserFavouritesListboxCursorObserver.h" |
|
25 |
|
26 // ================= MEMBER FUNCTIONS ======================= |
|
27 |
|
28 // --------------------------------------------------------- |
|
29 // CBrowserFavouritesListboxView::CBrowserFavouritesListboxView |
|
30 // --------------------------------------------------------- |
|
31 // |
|
32 CBrowserFavouritesListboxView::CBrowserFavouritesListboxView |
|
33 ( CEikListBox& aListbox ): iListbox( &aListbox ) |
|
34 { |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------- |
|
38 // CBrowserFavouritesListboxView::SetCursorMoveObserver |
|
39 // --------------------------------------------------------- |
|
40 // |
|
41 void CBrowserFavouritesListboxView::SetCursorObserver |
|
42 ( MBrowserFavouritesListboxCursorObserver* aCursorObserver ) |
|
43 { |
|
44 iCursorObserver = aCursorObserver; |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // CBrowserFavouritesListboxView::MoveCursorL |
|
49 // --------------------------------------------------------- |
|
50 // |
|
51 void CBrowserFavouritesListboxView::MoveCursorL |
|
52 ( CListBoxView::TCursorMovement aCursorMovement, |
|
53 TSelectionMode aSelectionMode ) |
|
54 { |
|
55 CAknColumnListBoxView::MoveCursorL( aCursorMovement, aSelectionMode ); |
|
56 if ( iCursorObserver ) |
|
57 { |
|
58 iCursorObserver->HandleCursorChangedL( iListbox ); |
|
59 } |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // CBrowserFavouritesListboxView::UpdateSelectionL |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 void CBrowserFavouritesListboxView::UpdateSelectionL |
|
67 ( TSelectionMode aSelectionMode ) |
|
68 { |
|
69 CAknColumnListBoxView::UpdateSelectionL( aSelectionMode ); |
|
70 if ( iCursorObserver ) |
|
71 { |
|
72 iCursorObserver->HandleCursorChangedL( iListbox ); |
|
73 } |
|
74 } |
|
75 // End of File |