|
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 imap calendar entry retriever definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRICALVIEWERLOADMRDATACMD_H |
|
20 #define CESMRICALVIEWERLOADMRDATACMD_H |
|
21 |
|
22 //<cmail> |
|
23 #include "mesmricalviewerobserver.h" |
|
24 //</cmail> |
|
25 #include "cesmricalviewerasynccommand.h" |
|
26 #include "tesmrinputparams.h" |
|
27 |
|
28 class CFSMailClient; |
|
29 |
|
30 /** |
|
31 * Command for loading meeting request data from mail messages. |
|
32 * Command stores the find data into TESMRInputParams structure. |
|
33 * |
|
34 * @see TESMRInputParams |
|
35 */ |
|
36 NONSHARABLE_CLASS( CESMRIcalViewerLoadMRDataCmd ) : |
|
37 public CESMRIcalViewerAsyncCommand, |
|
38 public MESMRIcalViewerObserver |
|
39 { |
|
40 public: // Construction and destruction |
|
41 |
|
42 /** |
|
43 * Creates and initializes new CESMRIcalViewerLoadMRDataCmd command. |
|
44 * @param aCalSession Reference to calendar session. |
|
45 * @param aESMRInputParams Reference to parameter structure |
|
46 */ |
|
47 static CESMRIcalViewerLoadMRDataCmd* NewL( |
|
48 CCalSession& aCalSession, |
|
49 CFSMailClient& aMailClient, |
|
50 TESMRInputParams& aESMRInputParams ); |
|
51 |
|
52 /** |
|
53 * C++ Destruction |
|
54 */ |
|
55 ~CESMRIcalViewerLoadMRDataCmd(); |
|
56 |
|
57 public: // From MESMRIcalViewerObserver |
|
58 void OperationCompleted( |
|
59 MESMRIcalViewerObserver::TIcalViewerOperationResult aResult ); |
|
60 void OperationError( |
|
61 MESMRIcalViewerObserver::TIcalViewerOperationResult aResult ); |
|
62 |
|
63 private: // From MESMRIcalViewerAsyncCommand |
|
64 void ExecuteAsyncCommandL(); |
|
65 void CancelAsyncCommand(); |
|
66 |
|
67 private: // Implementation |
|
68 CESMRIcalViewerLoadMRDataCmd( |
|
69 CCalSession& aCalSession, |
|
70 CFSMailClient& aMailClient, |
|
71 TESMRInputParams& aESMRInputParams ); |
|
72 void ConstructL(); |
|
73 |
|
74 private: // Data |
|
75 /// Ref: Reference to input parameters |
|
76 TESMRInputParams& iESMRInputParams; |
|
77 /// Ref: Reference to mail client |
|
78 CFSMailClient& iMailClient; |
|
79 /// Own: MR retriever command |
|
80 RPointerArray< MESMRIcalViewerCommand > iMRRetrieverCommands; |
|
81 /// Own: Current command index |
|
82 TInt iCurrentCommand; |
|
83 }; |
|
84 |
|
85 #endif // CESMRICALVIEWERLOADMRDATACMD_H |
|
86 |
|
87 // EOF |