|
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 ESMR marking to-do as not done |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ESMRTODOMARKASNOTDONETASK_H |
|
20 #define C_ESMRTODOMARKASNOTDONETASK_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "mesmrtask.h" |
|
25 |
|
26 // Forward declarations |
|
27 class MESMRCalEntry; |
|
28 class MESMRCalDbMgr; |
|
29 |
|
30 /** |
|
31 * CESMRTodoMarkAsNotDoneTask is responsibe marking to-do as not done. |
|
32 * |
|
33 * @lib esmrtasks.lib |
|
34 */ |
|
35 NONSHARABLE_CLASS( CESMRTodoMarkAsNotDoneTask ) : public CBase, |
|
36 public MESMRTask |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Creates and initializes new CESMRTodoMarkAsNotDoneTask object. |
|
41 * Ownership is transferred to caller. |
|
42 */ |
|
43 static CESMRTodoMarkAsNotDoneTask* NewL( MESMRCalEntry& aEntry, |
|
44 MESMRCalDbMgr& aCalDbMgr ); |
|
45 |
|
46 /** |
|
47 * C++ destructor. |
|
48 */ |
|
49 ~CESMRTodoMarkAsNotDoneTask(); |
|
50 |
|
51 public:// From MESMRTask |
|
52 void ExecuteTaskL(); |
|
53 |
|
54 private: |
|
55 CESMRTodoMarkAsNotDoneTask( MESMRCalEntry& aEntry, |
|
56 MESMRCalDbMgr& aCalDbMgr); |
|
57 |
|
58 void ConstructL(); |
|
59 void MarkTodoAsNotDoneL(); |
|
60 |
|
61 private: // Data |
|
62 /** |
|
63 * Reference to ES MR calendar entry |
|
64 * Not Own. |
|
65 */ |
|
66 MESMRCalEntry& iEntry; |
|
67 /** |
|
68 * Reference to cal db manager |
|
69 * Not own. |
|
70 */ |
|
71 MESMRCalDbMgr& iCalDbMgr; |
|
72 }; |
|
73 |
|
74 #endif // C_ESMRTODOMARKASNOTDONETASK_H |