|
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: Interface definition for Meeting request task factory implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMRRTASKPLUGIN_H |
|
20 #define CMRRTASKPLUGIN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "cesmrtaskfactory.h" |
|
24 |
|
25 class MESMRCalDbMgr; |
|
26 class MESMRMeetingRequestEntry; |
|
27 |
|
28 /** |
|
29 * CESMRTaskFactory implements interface for creating ES MR tasks. |
|
30 * @see MESMRTaskFactory |
|
31 * |
|
32 * @lib esmrtaskplugin.lib |
|
33 */ |
|
34 NONSHARABLE_CLASS(CMRTaskPlugin) : public CESMRTaskFactory |
|
35 { |
|
36 public: // Construction and destruction |
|
37 /** |
|
38 * Creates and initialzes new MR task factory. |
|
39 * @param aCalDbMgr Pointer to cal db manager. |
|
40 */ |
|
41 static CMRTaskPlugin* NewL( TAny* aCalDbMgr ); |
|
42 |
|
43 /** |
|
44 * C++ destructor. |
|
45 */ |
|
46 ~CMRTaskPlugin(); |
|
47 |
|
48 public: // From MESMRTaskFactory |
|
49 MESMRTask* CreateTaskL( |
|
50 TESMRCommand aCommand, |
|
51 MESMRCalEntry& aEntry ); |
|
52 |
|
53 private: // Implementation |
|
54 CMRTaskPlugin( MESMRCalDbMgr& aCalDbMgr ); |
|
55 MESMRTask* CreateSendMRResponseViaMailTaskL( |
|
56 TESMRCommand aCommand, |
|
57 MESMRMeetingRequestEntry& aEntry ); |
|
58 MESMRTask* CreateSendMRTaskL( |
|
59 TESMRCommand aCommand, |
|
60 MESMRMeetingRequestEntry& aEntry ); |
|
61 MESMRTask* CreateDeleteMRTaskL( |
|
62 TESMRCommand aCommand, |
|
63 MESMRMeetingRequestEntry& aEntry ); |
|
64 MESMRTask* CreateStoreMRToLocalDBTaskL( |
|
65 TESMRCommand aCommand, |
|
66 MESMRMeetingRequestEntry& aEntry ); |
|
67 MESMRTask* CreateForwardAsMeetingTaskL( |
|
68 TESMRCommand aCommand, |
|
69 MESMRMeetingRequestEntry& aEntry ); |
|
70 MESMRTask* CreateForwardAsMailTaskL( |
|
71 MESMRMeetingRequestEntry& aEntry ); |
|
72 MESMRTask* CreateOrganizerDeleteMRTaskL( |
|
73 TESMRCommand aCommand, |
|
74 MESMRMeetingRequestEntry& aEntry ); |
|
75 MESMRTask* CreateAttendeeDeleteMRTaskL( |
|
76 TESMRCommand aCommand, |
|
77 MESMRMeetingRequestEntry& aEntry ); |
|
78 MESMRTask* CreateReplyAsMailTaskL( |
|
79 MESMRMeetingRequestEntry& aEntry, |
|
80 TBool aReplyAll); |
|
81 MESMRTask* CreateMoveMRToCurrentDBTaskL( |
|
82 MESMRMeetingRequestEntry& aEntry ); |
|
83 |
|
84 private: // Data |
|
85 /* |
|
86 * Reference to cal db manager |
|
87 * Not own. |
|
88 */ |
|
89 MESMRCalDbMgr& iCalDbMgr; |
|
90 |
|
91 }; |
|
92 |
|
93 #endif // C_ESMRTASKFACTORY_H |