epoc32/include/eiklibry.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/eiklibry.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,69 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __EIKLIBRY_H__
    1.20 +#define __EIKLIBRY_H__
    1.21 +
    1.22 +#include <f32file.h>
    1.23 +#include <e32base.h>
    1.24 +#include <eikfctry.h>
    1.25 +
    1.26 +/**
    1.27 +@publishedPartner
    1.28 +@released
    1.29 +*/
    1.30 +typedef SEikControlInfo (*TCreateByTypeFunction)(TInt);
    1.31 +
    1.32 +
    1.33 +/**
    1.34 +Abstract base class specifying the interface for a dynamically-loaded DLL
    1.35 +which goes on to configure other Uikon statically-loaded DLLs.
    1.36 +
    1.37 +@publishedPartner
    1.38 +@deprecated
    1.39 +*/
    1.40 +class CEikLibrary : public CBase
    1.41 +	{
    1.42 +public:
    1.43 +	// When EikEnv dynamically loads a DLL, it calls its InitializeL function
    1.44 +	// which will set up any variables which EikEnv requires. 
    1.45 +	virtual void InitializeL() = 0;
    1.46 +	// These functions give the EikEnv access to the libraries
    1.47 +	// resources and Control Factories. 
    1.48 +	virtual CArrayFix<TFileName>*				ResourceFileArrayL() const = 0;
    1.49 +	virtual CArrayFix<TCreateByTypeFunction>*	ControlFactoryArrayL() const = 0;
    1.50 +	IMPORT_C virtual void PostAppUiInitializeL();
    1.51 +	};
    1.52 +
    1.53 +
    1.54 +/**
    1.55 +Abstract base class specifying the interface for a ECom plugin DLL
    1.56 +which goes on to configure other Uikon statically-loaded DLLs.
    1.57 +
    1.58 +@publishedPartner
    1.59 +@released
    1.60 +*/
    1.61 +class CEikLibrary2 : public CEikLibrary
    1.62 +	{
    1.63 +public:
    1.64 +	// Destructor.
    1.65 +	IMPORT_C virtual ~CEikLibrary2();
    1.66 +	IMPORT_C static CEikLibrary2* LoadLibraryL(TUid aImplementationUid); 
    1.67 +private:
    1.68 +	// UID of the implementation instantiated.
    1.69 +	TUid iDtrkey;
    1.70 +	};
    1.71 +
    1.72 +#endif // __EIKLIBRY_H__