|
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 CWmlBrowserFavouritesListboxState. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSER_FAVOURITES_LISTBOX_STATE_H |
|
22 #define BROWSER_FAVOURITES_LISTBOX_STATE_H |
|
23 |
|
24 // INCLUDE FILES |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Listbox state. This contains highlighted item Uid, marked item Uids |
|
32 * and top item Uid. When swithching views or there is a database update, |
|
33 * the listbox state is saved, and after update an attempt is made to |
|
34 * restore the listbox in a way so the display is same (or at least similar to) |
|
35 * as it was before the change. |
|
36 * Data to this class is fed by CBrowserFavouritesListbox. |
|
37 * All attributes are public. |
|
38 */ |
|
39 class CBrowserFavouritesListboxState: public CBase |
|
40 { |
|
41 friend class CBrowserFavouritesListbox; |
|
42 friend class CBrowserFavouritesView; |
|
43 public: // construct / destruct |
|
44 |
|
45 /** |
|
46 * Constructor. |
|
47 */ |
|
48 CBrowserFavouritesListboxState(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 |
|
53 */ |
|
54 ~CBrowserFavouritesListboxState(); |
|
55 |
|
56 protected: // data |
|
57 |
|
58 TInt iHighlightUid; ///< Uid of highlighted item. |
|
59 CArrayFix<TInt>* iMarkUids; ///< Uids of marked items. |
|
60 TInt iTopItemUid; ///< Uid of top item. |
|
61 }; |
|
62 |
|
63 #endif |
|
64 |
|
65 // End of file |