williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __EIKLIBRY_H__ williamr@2: #define __EIKLIBRY_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: typedef SEikControlInfo (*TCreateByTypeFunction)(TInt); williamr@2: williamr@2: williamr@2: /** williamr@2: Abstract base class specifying the interface for a dynamically-loaded DLL williamr@2: which goes on to configure other Uikon statically-loaded DLLs. williamr@2: williamr@2: @publishedPartner williamr@2: @deprecated williamr@2: */ williamr@2: class CEikLibrary : public CBase williamr@2: { williamr@2: public: williamr@2: // When EikEnv dynamically loads a DLL, it calls its InitializeL function williamr@2: // which will set up any variables which EikEnv requires. williamr@2: virtual void InitializeL() = 0; williamr@2: // These functions give the EikEnv access to the libraries williamr@2: // resources and Control Factories. williamr@2: virtual CArrayFix* ResourceFileArrayL() const = 0; williamr@2: virtual CArrayFix* ControlFactoryArrayL() const = 0; williamr@2: IMPORT_C virtual void PostAppUiInitializeL(); williamr@2: }; williamr@2: williamr@2: williamr@2: /** williamr@2: Abstract base class specifying the interface for a ECom plugin DLL williamr@2: which goes on to configure other Uikon statically-loaded DLLs. williamr@2: williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: class CEikLibrary2 : public CEikLibrary williamr@2: { williamr@2: public: williamr@2: // Destructor. williamr@2: IMPORT_C virtual ~CEikLibrary2(); williamr@2: IMPORT_C static CEikLibrary2* LoadLibraryL(TUid aImplementationUid); williamr@2: private: williamr@2: // UID of the implementation instantiated. williamr@2: TUid iDtrkey; williamr@2: }; williamr@2: williamr@2: #endif // __EIKLIBRY_H__