|
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 UI launcher object definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRICALVIEWERIMPL_H |
|
20 #define CESMRICALVIEWERIMPL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 //<cmail> |
|
24 #include "cesmricalviewer.h" |
|
25 //</cmail> |
|
26 |
|
27 // FORWARD DECLARATIONS: |
|
28 class CFSMailMessage; |
|
29 class MESMRIcalViewerCallback; |
|
30 class MESMRIcalViewerObserver; |
|
31 class CESMRIcalViewerCmdHandler; |
|
32 |
|
33 // CLASS DECLARATIONS |
|
34 /** |
|
35 * CESMRIcalViewerImpl implements Ecom interface for launching |
|
36 * viewing FS email messages containing meeting requests. |
|
37 * |
|
38 */ |
|
39 NONSHARABLE_CLASS( CESMRIcalViewerImpl ) : |
|
40 public CESMRIcalViewer |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Creates and initializes new CESMRIcalViewerImpl object. Ownership |
|
45 * is transferred to caller. Callback is delivered via ECOM framework. |
|
46 * @param aCallback Pointer to callback interface. |
|
47 * @return Pointer to CESMRIcalViewerImpl object |
|
48 */ |
|
49 static CESMRIcalViewerImpl* NewL( |
|
50 TAny* aCallback ); |
|
51 |
|
52 /** |
|
53 * C++ destructror |
|
54 */ |
|
55 ~CESMRIcalViewerImpl(); |
|
56 |
|
57 public: // From MESMRIcalViewer |
|
58 TBool CanViewMessage( |
|
59 CFSMailMessage& aMessage ); |
|
60 void ExecuteViewL( |
|
61 CFSMailMessage& aMessage, |
|
62 MESMRIcalViewerObserver& aObserver ); |
|
63 void ResponseToMeetingRequestL( |
|
64 TESMRAttendeeStatus aAttendeeStatus, |
|
65 CFSMailMessage& aMessage, |
|
66 MESMRIcalViewerObserver& aObserver ); |
|
67 void RemoveMeetingRequestFromCalendarL( |
|
68 CFSMailMessage& aMessage, |
|
69 MESMRIcalViewerObserver& aObserver ); |
|
70 void ResolveMeetingRequestMethodL( |
|
71 CFSMailMessage& aMessage, |
|
72 MESMRIcalViewerObserver& aObserver ); |
|
73 TESMRMeetingRequestMethod ResolveMeetingRequestMethodL( |
|
74 CFSMailMessage& aMessage ); |
|
75 void CancelOperation(); |
|
76 |
|
77 private: // Implementation |
|
78 CESMRIcalViewerImpl( |
|
79 MESMRIcalViewerCallback& aCallback ); |
|
80 void ConstructL(); |
|
81 |
|
82 private: // Data |
|
83 /// Not own: Reference to callback interface |
|
84 MESMRIcalViewerCallback& iCallback; |
|
85 /// Own: Command handler |
|
86 CESMRIcalViewerCmdHandler* iCmdHandler; |
|
87 }; |
|
88 |
|
89 #endif // CESMRICALVIEWERIMPL_H |
|
90 |
|
91 // EOF |