64
|
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: Open meeting request command definition
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CESMRICALVIEWEROPENMRCMD_H
|
|
20 |
#define CESMRICALVIEWEROPENMRCMD_H
|
|
21 |
|
|
22 |
#include "cesmricalviewerasynccommand.h"
|
|
23 |
#include "tesmrinputparams.h"
|
|
24 |
//<cmail>
|
|
25 |
#include "mesmricalviewerobserver.h"
|
|
26 |
#include "mesmricalviewercallback.h"
|
|
27 |
//</cmail>
|
|
28 |
#include <MAgnEntryUi.h>
|
|
29 |
|
|
30 |
|
|
31 |
class CESMRUiLauncher;
|
|
32 |
class CFSMailClient;
|
|
33 |
class CESMRIcalViewerLoadMRDataCmd;
|
|
34 |
class MESMRIcalViewerCommand;
|
|
35 |
class CMRAttachmentInfoFetcher;
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Command for opening meeting request
|
|
39 |
*/
|
|
40 |
NONSHARABLE_CLASS( CESMRIcalViewerOpenMRCmd ) :
|
|
41 |
public CESMRIcalViewerAsyncCommand,
|
|
42 |
public MESMRIcalViewerObserver,
|
|
43 |
public MAgnEntryUiCallback
|
|
44 |
{
|
|
45 |
public: // Construction and destruction
|
|
46 |
/**
|
|
47 |
* Creates and initializes new CESMRIcalViewerOpenMRCmd object.
|
|
48 |
* @param aCallback Reference to ESMRIcalViewer callback.
|
|
49 |
* @param aMailClient Reference to mail client object.
|
|
50 |
* @param aCalSession Reference to calendar db session.
|
|
51 |
*/
|
|
52 |
static CESMRIcalViewerOpenMRCmd* NewL(
|
|
53 |
MESMRIcalViewerCallback& aCallback,
|
|
54 |
CFSMailClient& aMailClient,
|
|
55 |
CCalSession& aCalSession );
|
|
56 |
|
|
57 |
/**
|
|
58 |
* C++ destructor.
|
|
59 |
*/
|
|
60 |
~CESMRIcalViewerOpenMRCmd();
|
|
61 |
|
|
62 |
public: // From MESMRIcalViewerAsyncCommand
|
|
63 |
void ExecuteAsyncCommandL();
|
|
64 |
void CancelAsyncCommand();
|
|
65 |
|
|
66 |
public: // From MESMRIcalViewerObserver
|
|
67 |
void OperationCompleted(
|
|
68 |
MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
|
|
69 |
void OperationError(
|
|
70 |
MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
|
|
71 |
|
|
72 |
public: // From MAgnEntryUiCallback
|
|
73 |
void ProcessCommandL(TInt aCommandId);
|
|
74 |
TInt ProcessCommandWithResultL( TInt aCommandId );
|
|
75 |
TBool IsCommandAvailable( TInt aCommandId );
|
|
76 |
|
|
77 |
private: // Implementation
|
|
78 |
CESMRIcalViewerOpenMRCmd(
|
|
79 |
MESMRIcalViewerCallback& aCallback,
|
|
80 |
CFSMailClient& aMailClient,
|
|
81 |
CCalSession& aCalSession );
|
|
82 |
void ConstructL();
|
|
83 |
void HandleOperationCompeletedL(
|
|
84 |
MESMRIcalViewerObserver::TIcalViewerOperationResult aResult );
|
|
85 |
void HandleError( TInt aError );
|
|
86 |
void LaunchUIL();
|
|
87 |
void FillAttachmentInfoL();
|
|
88 |
|
|
89 |
private: // Data
|
|
90 |
/// Ref: Reference to ESMRICalViewer callback
|
|
91 |
MESMRIcalViewerCallback& iCallback;
|
|
92 |
/// Own: Input parameters
|
|
93 |
TESMRInputParams iInputParameters;
|
|
94 |
/// Ref: Reference to FS Email mail client object
|
|
95 |
CFSMailClient& iMailClient;
|
|
96 |
/// Own: Load MR Data command
|
|
97 |
CESMRIcalViewerLoadMRDataCmd* iLoadMRDataCmd;
|
|
98 |
/// Own: Attachment information fetcher
|
|
99 |
CMRAttachmentInfoFetcher* iAttachmentInfoFetcher;
|
|
100 |
/// Own: UI launcher
|
|
101 |
CESMRUiLauncher* iUILauncher;
|
|
102 |
/// Own: Operation result
|
|
103 |
MESMRIcalViewerObserver::TIcalViewerOperationResult iResult;
|
|
104 |
/// Own: Current callback command
|
|
105 |
TESMRIcalViewerOperationType iCurrentCbCommand;
|
|
106 |
/// Own: Asynchronous email command
|
|
107 |
MESMRIcalViewerCommand* iEmailCommand;
|
|
108 |
/// Own: Command received via callback
|
|
109 |
TInt iMRViewerCommand;
|
|
110 |
};
|
|
111 |
|
|
112 |
#endif // CESMRICALVIEWEROPENMRCMD_H
|
|
113 |
|
|
114 |
// EOF
|