|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Phonebook 2 contact editor dialog UI assign from maps field. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPBK2CONTACTEDITORUIAFMFIELD_H_ |
|
19 #define CPBK2CONTACTEDITORUIAFMFIELD_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <w32std.h> |
|
23 #include <e32base.h> |
|
24 #include <CPbk2ContactEditorUIFieldBase.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CEikCaptionedControl; |
|
28 class CPbk2ContactEditorReadonlyField; |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Phonebook 2 contact editor UI base field. |
|
33 */ |
|
34 NONSHARABLE_CLASS(CPbk2ContactEditorUIAFMField) : public CPbk2ContactEditorUIFieldBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * C++ constructor. |
|
40 * |
|
41 * @param aUiBuilder UI builder for adding |
|
42 * the field into dialog. |
|
43 * @param aIconInfoContainer An icon container for setting |
|
44 * field icon. |
|
45 */ |
|
46 static CPbk2ContactEditorUIAFMField* NewL( |
|
47 MPbk2UIField* aField, |
|
48 MPbk2ContactEditorUiBuilder& aUiBuilder, |
|
49 CPbk2IconInfoContainer& aIconInfoContainer, |
|
50 TInt aCustomPosition); |
|
51 |
|
52 public: |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CPbk2ContactEditorUIAFMField(); |
|
57 |
|
58 CEikEdwin* Control(); |
|
59 void SetControlTextL( const TDesC& aText ); |
|
60 void ActivateL(); |
|
61 TInt ControlId(); |
|
62 TBool HandleCustomFieldCommandL(TInt aCommand); |
|
63 |
|
64 |
|
65 private: |
|
66 CPbk2ContactEditorUIAFMField( |
|
67 MPbk2UIField* aField, |
|
68 MPbk2ContactEditorUiBuilder& aUiBuilder, |
|
69 CPbk2IconInfoContainer& aIconInfoContainer, |
|
70 TInt aCustomPosition ); |
|
71 void ConstructL(); |
|
72 |
|
73 private: |
|
74 /// Ref: Editor control |
|
75 CPbk2ContactEditorReadonlyField* iControl; |
|
76 /// Ref: Fields captioned control |
|
77 CEikCaptionedControl* iCaptionedCtrl; |
|
78 }; |
|
79 |
|
80 |
|
81 #endif /*CPBK2CONTACTEDITORUIAFMFIELD_H_*/ |
|
82 |
|
83 // End of File |