diff -r 000000000000 -r 8466d47a6819 meetingrequest/mrviewercalplugin/inc/cesmrviewersimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mrviewercalplugin/inc/cesmrviewersimpl.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of CMRViewers ECom API +* +*/ + + +#ifndef CESMRVIEWERSIMPL_H +#define CESMRVIEWERSIMPL_H + +// INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class CESMRViewerController; + +// CLASS DECLARATION + +/** +* CESMRViewer implements MR Viewer API ECom interface. +* @see CMRViewers +*/ +NONSHARABLE_CLASS(CESMRViewersImpl) : + public CMRViewers + { + public: // Constructors and destructors + + /** + * ECom plug-in instantiation method. + * HBufC8* descriptor is received as a constructor parameter, + * ownership is transferred to caller (ECom plug-in). + * + * @param aMtmUid descriptor used for resolving MR Utils. + * Ownership is trasferred from caller. + * @return instantiated ECom plug-in + */ + static CESMRViewersImpl* NewL( TAny* aMtmUid ); + + /** + * Destructor. + */ + ~CESMRViewersImpl(); + + protected: // From MAgnEntryUi + TInt ExecuteViewL( RPointerArray& aEntries, + const MAgnEntryUi::TAgnEntryUiInParams& aInParams, + MAgnEntryUi::TAgnEntryUiOutParams& aOutParams, + MAgnEntryUiCallback& aCallback); + void SetHelpContext( const TCoeHelpContext& aContext ); + + protected: // Constructors and destructors + CESMRViewersImpl(); + void ConstructL(TAny* aMtmUid); + + protected: // Implementation + TInt ExecuteViewInternalL( + RPointerArray& aEntries, + const MAgnEntryUi::TAgnEntryUiInParams& aInParams, + MAgnEntryUi::TAgnEntryUiOutParams& aOutParams, + MAgnEntryUiCallback& aCallback); + + protected: // data + /// Own: Pointer ES MR Controller object + CESMRViewerController* iController; + /// Own: MTM UID + HBufC8* iMtmUid; + }; + +#endif // CESMRVIEWERSIMPL_H + +// End of File