diff -r aecbbf00d063 -r d48ab3b357f1 psln/Inc/PslnPluginHandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/psln/Inc/PslnPluginHandler.h Wed Sep 01 12:16:19 2010 +0100 @@ -0,0 +1,96 @@ +/* +* Copyright (c) 2005-2007 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: Handles application specific ECOM plugins. +* +*/ + + + +#ifndef C_PSLNPLUGINHANDLER_H +#define C_PSLNPLUGINHANDLER_H + +#include + +class CPslnFWPluginInterface; +class CPslnFWPluginHandler; +class CPslnUi; + +/** +* Handles application specific ECOM plugins. +* Owns the plugins in Psln Application. +* +* @since S60 v3.1 +*/ +class CPslnPluginHandler : public CBase + { + public: + + /** + * Two-phased constructor. + * @param aPslnUi pointer to UI class. + * @return new instance of CPslnPluginHandler. + */ + static CPslnPluginHandler* NewL( CPslnUi* aPslnUi ); + + /** + * Destructor. + */ + virtual ~CPslnPluginHandler(); + + /** + * Gets array of loaded plugins. + * Plugin array ownership is not transferred. + * @return array of AknView ECOM plugins. + */ + CArrayPtrFlat* GetPluginArray() const; + + /** + * Retrieves a plugin that matches Uid. + * Plugin ownership is not transferred. + * @param aUid plugin to retrieve. + * @return pointer to the matching plugin interface. + */ + CPslnFWPluginInterface* GetPlugin( const TUid& aUid ); + + private: + + /** + * C++ constructor. + */ + CPslnPluginHandler( CPslnUi* aPslnUi ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // Data + + /** + * Array of loaded plugins. + * Own. + */ + CArrayPtrFlat* iPluginArray; + + /** + * Reference to Ui. + * Not own. Owned by Main view. + */ + CPslnUi* iPslnUi; + + }; + +#endif // C_PSLNPLUGINHANDLER_H + +// End of File