|
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 array item. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPBK2CONTACTEDITORARRAYITEM_H_ |
|
19 #define CPBK2CONTACTEDITORARRAYITEM_H_ |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <e32def.h> |
|
23 #include "MPbk2ContactEditorField.h" |
|
24 #include "MPbk2ContactEditorUIField.h" |
|
25 // FORWARD DECLARATIONS |
|
26 |
|
27 /** |
|
28 * Phonebook 2 UI field interface. |
|
29 * |
|
30 */ |
|
31 class CPbk2ContactEditorArrayItem : public CBase |
|
32 { |
|
33 public: // Interface |
|
34 /** |
|
35 * Creates a new instance of this class. |
|
36 * |
|
37 * @param aContactEdytorField Field from storage. |
|
38 * @return A new instance of this class. |
|
39 */ |
|
40 static CPbk2ContactEditorArrayItem* NewL( |
|
41 MPbk2ContactEditorField* aContactEdytorField); |
|
42 |
|
43 /** |
|
44 * Creates a new instance of this class. |
|
45 * |
|
46 * @param aContactEdytorUIField UI field. |
|
47 * @return A new instance of this class. |
|
48 */ |
|
49 static CPbk2ContactEditorArrayItem* NewL( |
|
50 MPbk2ContactEditorUIField* aContactEdytorUIField); |
|
51 |
|
52 TInt ControlId(); |
|
53 CEikEdwin* Control(); |
|
54 void SetFocus(); |
|
55 void ActivateL(); |
|
56 TBool ConsumesKeyEvent( |
|
57 const TKeyEvent& aKeyEvent, |
|
58 TEventCode aType ); |
|
59 |
|
60 MPbk2ContactEditorUIField* ContactEditorUIField(); |
|
61 MPbk2ContactEditorField* ContactEditorField(); |
|
62 |
|
63 ~CPbk2ContactEditorArrayItem(); |
|
64 private: |
|
65 CPbk2ContactEditorArrayItem( |
|
66 MPbk2ContactEditorField* aContactEdytorField); |
|
67 CPbk2ContactEditorArrayItem( |
|
68 MPbk2ContactEditorUIField* aContactEdytorUIField); |
|
69 void ConstructL(); |
|
70 |
|
71 private: |
|
72 MPbk2ContactEditorUIField* iContactEdytorUIField; |
|
73 MPbk2ContactEditorField* iContactEdytorField; |
|
74 }; |
|
75 |
|
76 #endif /*CPBK2CONTACTEDITORARRAYITEM_H_*/ |
|
77 |
|
78 // End of File |
|
79 |