|
1 /* |
|
2 * Copyright (c) 2005-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: Implementation of CMRViewers ECom API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRVIEWERSIMPL_H |
|
20 #define CESMRVIEWERSIMPL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CMRViewers.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CESMRViewerController; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CESMRViewer implements MR Viewer API ECom interface. |
|
33 * @see CMRViewers |
|
34 */ |
|
35 NONSHARABLE_CLASS(CESMRViewersImpl) : |
|
36 public CMRViewers |
|
37 { |
|
38 public: // Constructors and destructors |
|
39 |
|
40 /** |
|
41 * ECom plug-in instantiation method. |
|
42 * HBufC8* descriptor is received as a constructor parameter, |
|
43 * ownership is transferred to caller (ECom plug-in). |
|
44 * |
|
45 * @param aMtmUid descriptor used for resolving MR Utils. |
|
46 * Ownership is trasferred from caller. |
|
47 * @return instantiated ECom plug-in |
|
48 */ |
|
49 static CESMRViewersImpl* NewL( TAny* aMtmUid ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CESMRViewersImpl(); |
|
55 |
|
56 protected: // From MAgnEntryUi |
|
57 TInt ExecuteViewL( RPointerArray<CCalEntry>& aEntries, |
|
58 const MAgnEntryUi::TAgnEntryUiInParams& aInParams, |
|
59 MAgnEntryUi::TAgnEntryUiOutParams& aOutParams, |
|
60 MAgnEntryUiCallback& aCallback); |
|
61 void SetHelpContext( const TCoeHelpContext& aContext ); |
|
62 |
|
63 protected: // Constructors and destructors |
|
64 CESMRViewersImpl(); |
|
65 void ConstructL(TAny* aMtmUid); |
|
66 |
|
67 protected: // Implementation |
|
68 TInt ExecuteViewInternalL( |
|
69 RPointerArray<CCalEntry>& aEntries, |
|
70 const MAgnEntryUi::TAgnEntryUiInParams& aInParams, |
|
71 MAgnEntryUi::TAgnEntryUiOutParams& aOutParams, |
|
72 MAgnEntryUiCallback& aCallback); |
|
73 |
|
74 protected: // data |
|
75 /// Own: Pointer ES MR Controller object |
|
76 CESMRViewerController* iController; |
|
77 /// Own: MTM UID |
|
78 HBufC8* iMtmUid; |
|
79 }; |
|
80 |
|
81 #endif // CESMRVIEWERSIMPL_H |
|
82 |
|
83 // End of File |