|
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: Class definition for forwarding meeting request via FS EMail |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ESMRFORWARDMRFSEMAILTASK_H |
|
20 #define C_ESMRFORWARDMRFSEMAILTASK_H |
|
21 |
|
22 // INCLUDES: |
|
23 #include "cesmrtaskbase.h" |
|
24 |
|
25 // FORWARD DECLARATIONS: |
|
26 class MESMRCalDbMgr; |
|
27 class MESMRMeetingRequestEntry; |
|
28 class CMRMailboxUtils; |
|
29 class CESMRFSEMailManager; |
|
30 class CESMRCalUserUtil; |
|
31 class CCalEntry; |
|
32 |
|
33 /** |
|
34 * Class definition for forwarding meeting request as attachment |
|
35 * of email message via FS EMail. Class creates temporary file into |
|
36 * |
|
37 * @lib esmrtasks.lib |
|
38 */ |
|
39 NONSHARABLE_CLASS( CESMRForwardAsFSMailTask ) : public CESMRTaskBase |
|
40 { |
|
41 |
|
42 public: // Construction and destruction |
|
43 /** |
|
44 * Creates and initializes new CESMRCancelMRFSEmailTask object. |
|
45 * Ownership is transferred to caller. |
|
46 * @param aCalDbMgr Reference to cal db manager. |
|
47 * @param aEntry Reference to ES MR calendar entry. |
|
48 * @param aMRMailboxUtils Reference mr mailbox utilities. |
|
49 */ |
|
50 static CESMRForwardAsFSMailTask* NewL( |
|
51 MESMRCalDbMgr& aCalDbMgr, |
|
52 MESMRMeetingRequestEntry& aEntry, |
|
53 CMRMailboxUtils& aMRMailboxUtils ); |
|
54 |
|
55 /** |
|
56 * C++ constructor. |
|
57 */ |
|
58 CESMRForwardAsFSMailTask(MESMRCalDbMgr& aCalDbMgr, |
|
59 MESMRMeetingRequestEntry& aEntry, |
|
60 CMRMailboxUtils& aMRMailboxUtils); |
|
61 |
|
62 /** |
|
63 * C++ Destructor. |
|
64 */ |
|
65 ~CESMRForwardAsFSMailTask(); |
|
66 |
|
67 public:// From MESMRTask |
|
68 |
|
69 void ExecuteTaskL(); |
|
70 |
|
71 private: |
|
72 void ConstructL(); |
|
73 void ConstructMailL(); |
|
74 void CreateTemporaryMeetingFileL(); |
|
75 TInt LaunchFSEmailEditorL(); |
|
76 |
|
77 private: // Data |
|
78 /// Own: FS Email manager |
|
79 CESMRFSEMailManager* iEmailMgr; |
|
80 /// Own: Pointer to calendar entry to be sent |
|
81 CCalEntry* iEntryToSend; |
|
82 /// Own: Caluser utility object |
|
83 CESMRCalUserUtil* iCaluserUtil; |
|
84 }; |
|
85 |
|
86 #endif // C_ESMRFORWARDMRFSEMAILTASK_H |