1 /* |
|
2 * Copyright (c) 2009 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 "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 * |
|
16 */ |
|
17 |
|
18 #ifndef HGSINGLETEXTLIST_H_ |
|
19 #define HGSINGLETEXTLIST_H_ |
|
20 |
|
21 #include <ganes/HgList.h> |
|
22 |
|
23 // Forward declarations |
|
24 class CHgItem; |
|
25 |
|
26 class CHgSingleTextList : public CHgList |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * Creates new CHgSingleTextList. |
|
31 * |
|
32 * @param aRect Rect that the control draws onto. |
|
33 * @param aItemCount Total count of items in the grid |
|
34 * @param aDefaultIcon Default icon to be used. |
|
35 * @param aSession Window server session for DSA. Default is NULL and DSA is disabled. |
|
36 * |
|
37 * @return CHgSingleTextList-object |
|
38 */ |
|
39 IMPORT_C static CHgSingleTextList* NewL ( const TRect& aRect, |
|
40 TInt aItemCount, |
|
41 CGulIcon* aDefaultIcon = NULL, |
|
42 RWsSession* aSession = NULL); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 IMPORT_C virtual ~CHgSingleTextList( ); |
|
48 |
|
49 protected: // CHgScroller |
|
50 |
|
51 void HandleSizeChanged(); |
|
52 |
|
53 protected: // CHgList |
|
54 |
|
55 void DrawItem(TInt aIndex, const TRect& aRect) const; |
|
56 |
|
57 protected: |
|
58 CHgSingleTextList( TInt aItemCount, |
|
59 CGulIcon* aDefaultIcon ); |
|
60 |
|
61 private: // Data |
|
62 |
|
63 }; |
|
64 |
|
65 #endif /*HGSINGLETEXTLIST_H_*/ |
|