1 /* |
|
2 * Copyright (c) 2004 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: LandmarksUi Content File - Landmarks ui item. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef CLMKLANDMARKUIITEM_H |
|
26 #define CLMKLANDMARKUIITEM_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "CLmkUiItemBase.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CPosLandmark; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CLmkLandmarkUiItem class |
|
38 */ |
|
39 class CLmkLandmarkUiItem : public CLmkUiItemBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 /** |
|
43 * Create CLmkLandmarkUiItem object |
|
44 * @param aLandmark |
|
45 * @param aIconListIndex |
|
46 * @return newly instantiated object |
|
47 */ |
|
48 static CLmkLandmarkUiItem* NewL( CPosLandmark* aLandmark, |
|
49 TInt aIconListIndex ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CLmkLandmarkUiItem(); |
|
55 |
|
56 public: // From CLmkUiItemBase |
|
57 TLmkItemType Type(); |
|
58 TPtrC Text(); |
|
59 TInt GetIconId(); |
|
60 |
|
61 private: // Constructors and destructor |
|
62 /** |
|
63 * C++ default constructor. |
|
64 * @param aLandmark |
|
65 * @param aIconListIndex |
|
66 */ |
|
67 CLmkLandmarkUiItem( CPosLandmark* aLandmark, TInt aIconListIndex ); |
|
68 |
|
69 /** |
|
70 * By default Symbian 2nd phase constructor is private. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 private: // Data |
|
75 ///Own: |
|
76 CPosLandmark* iLandmark; |
|
77 |
|
78 TInt iIconListIndex; |
|
79 |
|
80 TPtrC iText; |
|
81 }; |
|
82 |
|
83 #endif // CLMKLANDMARKUIITEM_H |
|
84 |
|
85 // End of File |
|