|
1 /* |
|
2 * Copyright (c) 2007-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: This file defines class CCalenEditorsPlugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CALENEDITORSPLUGIN_H |
|
20 #define C_CALENEDITORSPLUGIN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ecom/ecom.h> |
|
24 #include <MAgnEntryUi.h> |
|
25 |
|
26 /** |
|
27 * Resolver for loading correct ECOM Implementation for |
|
28 * calendar entry editors. |
|
29 */ |
|
30 NONSHARABLE_CLASS( CCalenEditorsPlugin ) : public CBase, |
|
31 public MAgnEntryUi |
|
32 { |
|
33 public: // factory methods and destructor |
|
34 /** |
|
35 * Loads and creates default Calendar editors implementation |
|
36 * @return New instance of CCalenEditorsPlugin implementation |
|
37 */ |
|
38 static CCalenEditorsPlugin* NewL(); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~CCalenEditorsPlugin(); |
|
44 |
|
45 private: // data |
|
46 /** iDtor_ID_Key Instance identifier key. When instance of an |
|
47 * implementation is created by ECOM framework, the |
|
48 * framework will assign UID for it. The UID is used in |
|
49 * destructor to notify framework that this instance is |
|
50 * being destroyed and resources can be released. |
|
51 * Plugin implementations should leave this untouched, as |
|
52 * inline destructor and constructor method take care of |
|
53 * ECom releasing. |
|
54 */ |
|
55 TUid iDtor_ID_Key; |
|
56 |
|
57 }; |
|
58 |
|
59 #include "caleneditorsplugin.inl" |
|
60 |
|
61 #endif // C_CALENEDITORSPLUGIN_H |
|
62 // EOF |