diff -r 6385c4c93049 -r 8e6fa1719340 browserui/browser/FavouritesInc/BrowserFavouritesListboxView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browserui/browser/FavouritesInc/BrowserFavouritesListboxView.h Wed Sep 01 12:31:04 2010 +0100 @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* Declaration of class CWmlBrowserFavouritesListboxView. +* +* +*/ + + +#ifndef BROWSER_FAVOURITES_LISTBOX_VIEW_H +#define BROWSER_FAVOURITES_LISTBOX_VIEW_H + +// INCLUDE FILES +#include + +// FORWARD DECLARATION + +class MBrowserFavouritesListboxCursorObserver; + +// CLASS DECLARATION + +/** +* Listbox view, which notifies its observer about cursor movements. +*/ +class CBrowserFavouritesListboxView: public CAknColumnListBoxView + { + public: + + /** + * Constructor. + * @param aListbox Listbox which has this view. + */ + CBrowserFavouritesListboxView( CEikListBox& aListbox ); + + public: // new methods. + + /** + * Set cursor observer. Can be set to NULL. + * @param aCursorObserver This observer (if any) will be + * notified about cursor changes. + */ + void SetCursorObserver + ( MBrowserFavouritesListboxCursorObserver* aCursorObserver ); + + /** + * Move the cursor. Execute base class's method and notify observer. + * @param aCursorMovement Movement occurred in the listbox. + * @param aSelectionMode Selection mode. + */ + void MoveCursorL( CListBoxView::TCursorMovement aCursorMovement, + TSelectionMode aSelectionMode ); + + /** + * Select / highlight items witout moving the cursor. + * @param aSelectionMode Selection mode. + */ + void UpdateSelectionL( TSelectionMode aSelectionMode ); + + private: // data + + /// The listbox. + CEikListBox* iListbox; + /// The cursor movement observer. Can be NULL. + MBrowserFavouritesListboxCursorObserver* iCursorObserver; + }; + +#endif + +// End of file \ No newline at end of file