|
1 /* |
|
2 * Copyright (c) 2002-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 date field. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2CONTACTEDITORDATEFIELD_H |
|
20 #define CPBK2CONTACTEDITORDATEFIELD_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPbk2ContactEditorFieldBase.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CEikDateEditor; |
|
27 class CEikCaptionedControl; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Phonebook 2 contact editor date field. |
|
33 */ |
|
34 NONSHARABLE_CLASS(CPbk2ContactEditorDateField) : |
|
35 public CPbk2ContactEditorFieldBase |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Creates a new instance of this class. |
|
41 * |
|
42 * @param aContactField Contact field. |
|
43 * @param aUiBuilder UI builder for adding the |
|
44 * field into dialog. |
|
45 * @param aIconInfoContainer Icon container for |
|
46 * the setting field icon. |
|
47 * @return A new instance of this class. |
|
48 */ |
|
49 static CPbk2ContactEditorDateField* NewLC( |
|
50 CPbk2PresentationContactField& aContactField, |
|
51 MPbk2ContactEditorUiBuilder& aUiBuilder, |
|
52 CPbk2IconInfoContainer& aIconInfoContainer ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CPbk2ContactEditorDateField(); |
|
58 |
|
59 public: // From MPbk2ContactEditorField |
|
60 CEikEdwin* Control() const; |
|
61 void SaveFieldL(); |
|
62 void ActivateL(); |
|
63 void AcceptL( |
|
64 MPbk2ContactEditorFieldVisitor& aVisitor ); |
|
65 |
|
66 protected: // Implementation |
|
67 CPbk2ContactEditorDateField( |
|
68 CPbk2PresentationContactField& aContactField, |
|
69 MPbk2ContactEditorUiBuilder& aUiBuilder, |
|
70 CPbk2IconInfoContainer& aIconInfoContainer ); |
|
71 void ConstructL(); |
|
72 |
|
73 protected: // Data |
|
74 /// Ref: Editor control |
|
75 CEikDateEditor* iControl; |
|
76 /// Ref: Fields captioned control |
|
77 CEikCaptionedControl* iCaptionedCtrl; |
|
78 }; |
|
79 |
|
80 #endif // CPBK2CONTACTEDITORDATEFIELD_H |
|
81 |
|
82 // End of File |