|
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 "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 - Landmark's editor text field. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef __CLMKEDITORLISTFIELD_H__ |
|
25 #define __CLMKEDITORLISTFIELD_H__ |
|
26 |
|
27 // INCLUDES |
|
28 #include "CLmkEditorFieldBase.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CEikEdwin; |
|
32 class MLmkEditorUiBuilder; |
|
33 class CEikCaptionedControl; |
|
34 |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Landmark editor text field. |
|
40 */ |
|
41 class CLmkEditorListField : public CLmkEditorFieldBase |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 /** |
|
45 * Creates a new instance of this class - text editor to a field. |
|
46 * @param aField the to be edited field |
|
47 * @param aUiBuilder reference to UI builder |
|
48 * @return newly instantiated object |
|
49 */ |
|
50 static CLmkEditorListField* NewL( |
|
51 MLmkFieldData& aField, |
|
52 MLmkEditorUiBuilder& aUiBuilder ); |
|
53 |
|
54 static CLmkEditorListField* NewL( MLmkFieldData& aField, |
|
55 MLmkEditorUiBuilder& aUiBuilder, |
|
56 const TDesC& aCategoryName ); |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 ~CLmkEditorListField(); |
|
61 |
|
62 public: // from MLmkEditorField |
|
63 TBool SaveFieldL(); |
|
64 void ActivateL(); |
|
65 void UpdateL(); |
|
66 CEikEdwin* Control(); |
|
67 /** |
|
68 * Resets the field |
|
69 */ |
|
70 void ResetL(){} |
|
71 |
|
72 protected: // Implementation |
|
73 /** |
|
74 * Create CLmkEditorListField object |
|
75 * @param aField field include all item data |
|
76 * @param aUiBuilder reference |
|
77 * @return newly instantiated object |
|
78 */ |
|
79 CLmkEditorListField( |
|
80 MLmkFieldData& aField, |
|
81 MLmkEditorUiBuilder& aUiBuilder ); |
|
82 |
|
83 private: // implementation |
|
84 void ConstructL(); |
|
85 void ConstructL(const TDesC& aCategoryName); |
|
86 |
|
87 protected: // Data |
|
88 /// Ref: Fields editor |
|
89 CEikEdwin* iControl; |
|
90 |
|
91 /// Ref: fields captioned control |
|
92 CEikCaptionedControl* iCaptionedCtrl; |
|
93 }; |
|
94 |
|
95 #endif // __CLMKEDITORLISTFIELD_H__ |
|
96 |
|
97 // End of File |