|
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 address home field. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPBK2CONTACTEDITORUIADDRESSHOMEFIELD_H_ |
|
19 #define CPBK2CONTACTEDITORUIADDRESSHOMEFIELD_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(CPbk2ContactEditorUIAddressHomeField) : 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 CPbk2ContactEditorUIAddressHomeField* NewL( |
|
47 MPbk2UIField* aField, |
|
48 MPbk2ContactEditorUiBuilder& aUiBuilder, |
|
49 CPbk2IconInfoContainer& aIconInfoContainer, |
|
50 TInt aCustomPosition, |
|
51 const TDesC& aCustomText); |
|
52 |
|
53 public: |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CPbk2ContactEditorUIAddressHomeField(); |
|
58 |
|
59 CEikEdwin* Control(); |
|
60 void SetControlTextL( const TDesC& aText ); |
|
61 void ActivateL(); |
|
62 TInt ControlId(); |
|
63 TBool HandleCustomFieldCommandL(TInt aCommand); |
|
64 |
|
65 |
|
66 private: |
|
67 CPbk2ContactEditorUIAddressHomeField( |
|
68 MPbk2UIField* aField, |
|
69 MPbk2ContactEditorUiBuilder& aUiBuilder, |
|
70 CPbk2IconInfoContainer& aIconInfoContainer, |
|
71 TInt aCustomPosition ); |
|
72 void ConstructL(const TDesC& aCustomText); |
|
73 |
|
74 private: |
|
75 /// Ref: Editor control |
|
76 CPbk2ContactEditorReadonlyField* iControl; |
|
77 /// Ref: Fields captioned control |
|
78 CEikCaptionedControl* iCaptionedCtrl; |
|
79 }; |
|
80 |
|
81 |
|
82 #endif /*CPBK2CONTACTEDITORUIADDRESSHOMEFIELD_H_*/ |
|
83 |
|
84 // End of File |