|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * Implementation of CMRViewers ECom API. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CMRVIEWERSIMPL_H__ |
|
22 #define __CMRVIEWERSIMPL_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <CMRViewers.h> |
|
26 #include "CMRUtilsInternal.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMRHandler; |
|
30 class TCoeHelpContext; |
|
31 class CMRMailboxUtils; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * ECom implementation for executing meeting request viewers. |
|
37 */ |
|
38 class CMRViewersImpl : public CMRViewers, public MMRUtilsObserver |
|
39 { |
|
40 public: // Constructors and destructors |
|
41 |
|
42 /** |
|
43 * ECom plug-in instantiation method. |
|
44 * HBufC8* descriptor is received as a constructor parameter, |
|
45 * ownership is transferred to ECom plug-in. |
|
46 * @param aMtmUid descriptor used for resolving |
|
47 * @return instantiated ECom plug-in |
|
48 */ |
|
49 static CMRViewersImpl* NewL( TAny* aMtmUid ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CMRViewersImpl(); |
|
55 |
|
56 protected: // From MAgnEntryUi |
|
57 |
|
58 TInt ExecuteViewL( RPointerArray<CCalEntry>& aEntries, |
|
59 const MAgnEntryUi::TAgnEntryUiInParams& aInParams, |
|
60 MAgnEntryUi::TAgnEntryUiOutParams& aOutParams, |
|
61 MAgnEntryUiCallback& aCallback); |
|
62 |
|
63 void SetHelpContext( const TCoeHelpContext& aContext ); |
|
64 |
|
65 protected: // Functions from MMRUtilsObserver |
|
66 |
|
67 void HandleCalEngStatus( TMRUtilsCalEngStatus aStatus ); |
|
68 |
|
69 void HandleOperation( TInt /*aType*/, |
|
70 TInt /*aProgress*/, |
|
71 TInt /*aStatus*/ ) {}; |
|
72 |
|
73 protected: // Constructors and destructors |
|
74 |
|
75 /** |
|
76 * C++ default constructor. |
|
77 */ |
|
78 CMRViewersImpl( TAny* aMtmUid ); |
|
79 |
|
80 /** |
|
81 * Constructor, second phase. |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 protected: // New functions |
|
86 |
|
87 void EnsureUtilsExistL( CCalSession* aCalSession, |
|
88 CMsvSession* aMsgSession ); |
|
89 |
|
90 void DoHandleCalEngStatusL( TMRUtilsCalEngStatus aStatus ); |
|
91 |
|
92 static TInt HandleEngStatusCheck( TAny* aThis ); |
|
93 |
|
94 protected: // data |
|
95 |
|
96 // resource file offset |
|
97 TInt iResourceFileOffset; |
|
98 |
|
99 // current cal eng status |
|
100 TMRUtilsCalEngStatus iEngStatus; |
|
101 |
|
102 // not own, helpcontext id |
|
103 const TCoeHelpContext* iContext; |
|
104 |
|
105 // not own |
|
106 CCalSession* iCalSession; |
|
107 |
|
108 // not own |
|
109 CMsvSession* iMsgSession; |
|
110 |
|
111 // Meeting request utils, own |
|
112 CMRUtilsInternal* iMRUtils; |
|
113 |
|
114 // Meeting request mailbox utils, own |
|
115 CMRMailboxUtils* iMRMailboxUtils; |
|
116 |
|
117 // own, descriptor used for ECom plug-in resolving |
|
118 HBufC8* iMtmUid; |
|
119 |
|
120 // own, meeting request dialog handling |
|
121 CMRHandler* iMRHandler; |
|
122 |
|
123 // own |
|
124 CIdle* iIdleTimer; |
|
125 }; |
|
126 |
|
127 #endif // __CMRVIEWERSIMPL_H__ |
|
128 |
|
129 // End of File |