|
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: |
|
15 * Phonebook contact editor phone number field. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkContactEditorPhoneNumberField_H__ |
|
21 #define __CPbkContactEditorPhoneNumberField_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "CPbkContactEditorFieldBase.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MPbkContactEditorUiBuilder; |
|
28 class CEikEdwin; |
|
29 class CPbkContactItem; |
|
30 class CEikCaptionedControl; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Phonebook Contact editor text field. |
|
36 */ |
|
37 NONSHARABLE_CLASS(CPbkContactEditorPhoneNumberField) : |
|
38 public CPbkContactEditorFieldBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 /** |
|
42 * Creates a new instance of this class - phone number editor to a field. |
|
43 * @param aField the to be edited field |
|
44 * @param aUiBuilder reference to UI builder |
|
45 * @param aIconInfoContainer reference to icon info container |
|
46 */ |
|
47 static CPbkContactEditorPhoneNumberField* NewL( |
|
48 TPbkContactItemField& aField, |
|
49 MPbkContactEditorUiBuilder& aUiBuilder, |
|
50 CPbkIconInfoContainer& aIconInfoContainer); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CPbkContactEditorPhoneNumberField(); |
|
56 |
|
57 public: // from MPbkContactEditorField |
|
58 void SaveFieldL(); |
|
59 void AddFieldL(CPbkContactItem& aContact); |
|
60 void ActivateL(); |
|
61 void AcceptL(MPbkFieldEditorVisitor& aVisitor); |
|
62 |
|
63 private: // Implementation |
|
64 CPbkContactEditorPhoneNumberField( |
|
65 TPbkContactItemField& aField, |
|
66 CPbkIconInfoContainer& aIconInfoContainer, |
|
67 MPbkContactEditorUiBuilder& aUiBuilder); |
|
68 void ConstructL(); |
|
69 |
|
70 private: // Data |
|
71 /// Ref: Fields editor |
|
72 CEikEdwin* iControl; |
|
73 /// Ref: fields captioned control |
|
74 CEikCaptionedControl* iCaptionedCtrl; |
|
75 }; |
|
76 |
|
77 #endif // __CPbkContactEditorPhoneNumberField_H__ |
|
78 |
|
79 // End of File |