|
1 /* |
|
2 * Copyright (c) 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 ESMR task factory implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ESMRTASKBASE_H |
|
20 #define C_ESMRTASKBASE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "mesmrtask.h" |
|
24 |
|
25 class MESMRCalDbMgr; |
|
26 class MESMRMeetingRequestEntry; |
|
27 class CMRMailboxUtils; |
|
28 |
|
29 /** |
|
30 * CESMRTaskBase is base class for ES MR tasks |
|
31 * |
|
32 * @lib esmrtasks.lib |
|
33 */ |
|
34 class CESMRTaskBase : public CBase, |
|
35 public MESMRTask |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * C++ destructor. |
|
41 */ |
|
42 virtual ~CESMRTaskBase(); |
|
43 |
|
44 protected:// Implementation |
|
45 |
|
46 /** |
|
47 * C++ constructor |
|
48 * @param aCalDbMgr Reference to cal db manager. |
|
49 */ |
|
50 CESMRTaskBase( |
|
51 MESMRCalDbMgr& aCalDbMgr, |
|
52 MESMRMeetingRequestEntry& aEntry, |
|
53 CMRMailboxUtils& aMRMailboxUtils ); |
|
54 |
|
55 /** |
|
56 * Stores entry to calendar DB |
|
57 */ |
|
58 void StoreEntryToDbL(); |
|
59 |
|
60 /** |
|
61 * Base class's EPOC 2nd phase constructor. |
|
62 */ |
|
63 void BaseConstructL(); |
|
64 |
|
65 /** |
|
66 * Fetches reference to cal db manager. |
|
67 * @return Reference to cal db manager. |
|
68 */ |
|
69 inline MESMRCalDbMgr& CalDbMgr(); |
|
70 |
|
71 /** |
|
72 * Fetches reference to es mr calendar entry. |
|
73 * @return Reference to es mr calendar entry. |
|
74 */ |
|
75 inline MESMRMeetingRequestEntry& ESMREntry(); |
|
76 |
|
77 /** |
|
78 * Fetches the reference to mr mailbox utilities. |
|
79 * @return reference to mr mailbox utilities. |
|
80 */ |
|
81 inline CMRMailboxUtils& MailboxUtils(); |
|
82 |
|
83 private: // Data |
|
84 |
|
85 /** |
|
86 * Reference to cal db manager |
|
87 * Not own. |
|
88 */ |
|
89 MESMRCalDbMgr& iCalDbMgr; |
|
90 |
|
91 /** |
|
92 * Reference to ES MR calendar entry |
|
93 * Not Own. |
|
94 */ |
|
95 MESMRMeetingRequestEntry& iEntry; |
|
96 /** |
|
97 * Reference to mr mailbox utilities |
|
98 * Not own. |
|
99 */ |
|
100 CMRMailboxUtils& iMRMailboxUtils; |
|
101 }; |
|
102 |
|
103 #include "cesmrtaskbase.inl" |
|
104 |
|
105 #endif // C_ESMRTASKBASE_H |