25
|
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: ESMR task extension implementation
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CESMRTASKEXTENSIONIMPL_H
|
|
20 |
#define CESMRTASKEXTENSIONIMPL_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
#include "mesmrtaskextension.h"
|
|
24 |
|
|
25 |
class MESMRCalDbMgr;
|
|
26 |
class CMRMailboxUtils;
|
|
27 |
class CESMRPolicyManager;
|
|
28 |
class CESMREntryProcessor;
|
|
29 |
class MESMRTaskFactory;
|
|
30 |
|
|
31 |
/**
|
|
32 |
* CESMRTaskExtenstionImpl implements ES MR task extension for
|
|
33 |
* MR Utils interface.
|
|
34 |
*
|
|
35 |
* Usage (assuming you have CMRUtils* iUtils):
|
|
36 |
* @code
|
|
37 |
* MESMRTaskExtension* ext = ExtensionApiL<MESMRTaskExtension>( iUtils );
|
|
38 |
* @endcode
|
|
39 |
* @see
|
|
40 |
*
|
|
41 |
*/
|
|
42 |
NONSHARABLE_CLASS( CESMRTaskExtenstionImpl ) : public CBase,
|
|
43 |
public MESMRTaskExtension
|
|
44 |
{
|
|
45 |
public: // Construction and destruction
|
|
46 |
/**
|
|
47 |
* Creates and initialzes new CESMRTaskExtenstionImpl object
|
|
48 |
* Ownership is trasferred to caller.
|
|
49 |
*
|
|
50 |
* @param aTaskFactory Reference to task factory.
|
|
51 |
*/
|
|
52 |
IMPORT_C static CESMRTaskExtenstionImpl* NewL( MESMRTaskFactory& aTaskFactory );
|
|
53 |
|
|
54 |
/**
|
|
55 |
* C++ destructor.
|
|
56 |
*/
|
|
57 |
IMPORT_C ~CESMRTaskExtenstionImpl();
|
|
58 |
|
|
59 |
public: // From MESMRTaskExtension
|
|
60 |
void SendAndStoreResponseL(
|
|
61 |
TESMRCommand aCommand,
|
|
62 |
MESMRCalEntry& aEntry );
|
|
63 |
void SendAndStoreMRL(
|
|
64 |
TESMRCommand aCommand,
|
|
65 |
MESMRCalEntry& aEntry );
|
|
66 |
void DeleteAndSendMRL(
|
|
67 |
TESMRCommand aCommand,
|
|
68 |
MESMRCalEntry& aEntry );
|
|
69 |
void StoreEntryToLocalDBL(
|
|
70 |
TESMRCommand aCommand,
|
|
71 |
MESMRCalEntry& aEntry );
|
|
72 |
void ForwardMRAsEmailL(
|
|
73 |
TESMRCommand aCommand,
|
|
74 |
MESMRCalEntry& aEntry );
|
|
75 |
void ReplyAsEmailL(
|
|
76 |
TESMRCommand aCommand,
|
|
77 |
MESMRCalEntry& aEntry );
|
|
78 |
void DeleteEntryFromLocalDBL(
|
|
79 |
TESMRCommand aCommand,
|
|
80 |
MESMRCalEntry& aEntry );
|
|
81 |
void MarkTodoAsDoneL(
|
|
82 |
TESMRCommand aCommand,
|
|
83 |
MESMRCalEntry& aEntry );
|
|
84 |
void MarkTodoAsNotDoneL(
|
|
85 |
TESMRCommand aCommand,
|
|
86 |
MESMRCalEntry& aEntry );
|
|
87 |
void MoveEntryToCurrentDBL(
|
|
88 |
TESMRCommand aCommand,
|
|
89 |
MESMRCalEntry& aEntry );
|
|
90 |
|
|
91 |
private: // Implementation
|
|
92 |
CESMRTaskExtenstionImpl( MESMRTaskFactory& aTaskFactory );
|
|
93 |
void ConstructL();
|
|
94 |
void CreateAndExecuteTaskL(
|
|
95 |
TESMRCommand aCommand,
|
|
96 |
MESMRCalEntry& aEntry );
|
|
97 |
|
|
98 |
private: // Data
|
|
99 |
/**
|
|
100 |
* ES MR Task factory
|
|
101 |
* Not own.
|
|
102 |
*/
|
|
103 |
MESMRTaskFactory& iTaskFactory;
|
|
104 |
};
|
|
105 |
|
|
106 |
#endif
|