|
1 /* |
|
2 * Copyright (c) 2009 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: MRUI field builder plugin definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRFIELDBUILDERPLUGIN_H |
|
20 #define CESMRFIELDBUILDERPLUGIN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "cesmrfieldbuilderinterface.h" |
|
24 |
|
25 /** |
|
26 * This class implements most of the field builder composite. |
|
27 * Everything but attendee field is built here |
|
28 */ |
|
29 class CESMRFieldBuilderPlugin : public CESMRFieldBuilderInterface, |
|
30 public MESMRFieldBuilder |
|
31 { |
|
32 public: // construction & destruction |
|
33 /** |
|
34 * Creates new CESMRFieldBuilderPlugin object. Ownership |
|
35 * is transferred to caller. |
|
36 * @return Pointer to created object, |
|
37 */ |
|
38 static CESMRFieldBuilderPlugin* NewL(); |
|
39 |
|
40 /** |
|
41 * C++ Destructor. |
|
42 */ |
|
43 virtual ~CESMRFieldBuilderPlugin(); |
|
44 |
|
45 protected: // from CESMRFieldBuilderInterface |
|
46 virtual MESMRFieldBuilder* FieldBuilderL(); |
|
47 virtual TAny* ExtensionL( TUid aExtensionUid ); |
|
48 |
|
49 protected: // from MESMRFieldBuilder |
|
50 /** |
|
51 * Creates editor field. |
|
52 * |
|
53 * @param aValidator - time validator |
|
54 * @param aField - field to be created |
|
55 */ |
|
56 CESMRField* CreateEditorFieldL( |
|
57 MESMRFieldValidator* aValidator, |
|
58 TESMREntryField aField ); |
|
59 |
|
60 /** |
|
61 * Creates viewer field. |
|
62 * |
|
63 * @param aResponseObserver - observer to be called when e.g. |
|
64 * answer is ready to be sent. |
|
65 * @param aField - field to be created |
|
66 * @param aResponseReady - NOT IN USE |
|
67 */ |
|
68 CESMRField* CreateViewerFieldL( |
|
69 MESMRResponseObserver* aResponseObserver, |
|
70 TESMREntryField aField, |
|
71 TBool aResponseReady ); |
|
72 |
|
73 private: // Implementation |
|
74 CESMRFieldBuilderPlugin(); |
|
75 |
|
76 /** |
|
77 * loads fieldbuilder ecom plugin composite |
|
78 * delayed until the first time the extension is needed |
|
79 */ |
|
80 void LoadExtensionL(); |
|
81 |
|
82 MESMRFieldBuilder* FieldBuilderExtensionL(); |
|
83 |
|
84 private: |
|
85 //ecom field builder interface |
|
86 CESMRFieldBuilderInterface* iExtension; |
|
87 //composite class of field builder interface |
|
88 MESMRFieldBuilder* iFieldExtension; |
|
89 }; |
|
90 |
|
91 #endif // CESMRFIELDBUILDERPLUGIN_H |
|
92 |
|
93 // EOF |
|
94 |