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 HGSINGLETEXTLISTWITHICON_H_ |
|
19 #define HGSINGLETEXTLISTWITHICON_H_ |
|
20 |
|
21 #include <ganes/HgSingleTextList.h> |
|
22 |
|
23 // Forward declarations |
|
24 //class CHgItem; |
|
25 |
|
26 class CHgSingleTextListWithIcon : public CHgSingleTextList |
|
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 CHgSingleTextListWithIcon* NewL ( const TRect& aRect, |
|
40 TInt aItemCount, |
|
41 CGulIcon* aDefaultIcon = NULL, |
|
42 RWsSession* aSession = NULL); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 IMPORT_C virtual ~CHgSingleTextListWithIcon( ); |
|
48 |
|
49 protected: // CHgScroller |
|
50 |
|
51 void HandleSizeChanged(); |
|
52 |
|
53 protected: // CHgList |
|
54 |
|
55 void DrawItem(TInt aIndex, const TRect& aRect) const; |
|
56 |
|
57 void ConstructL( const TRect& aRect, RWsSession* aSession ); |
|
58 |
|
59 protected: |
|
60 CHgSingleTextListWithIcon( TInt aItemCount, |
|
61 CGulIcon* aDefaultIcon ); |
|
62 |
|
63 private: // Data |
|
64 CHgListLayoutData* iGraphicLayoutData; |
|
65 |
|
66 }; |
|
67 |
|
68 #endif /*HGSINGLETEXTLISTWITHICON_H_*/ |
|