diff -r 000000000000 -r 2f259fa3e83a commonuisupport/uikon/test/tlibs/tloaddll/TLOADDLL.H --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commonuisupport/uikon/test/tlibs/tloaddll/TLOADDLL.H Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,96 @@ +// 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: +// + +/** + @file + @internalComponent - Internal Symbian test code +*/ + +#if !defined(__TLOADDLL_H__) +#define __TLOADDLL_H__ + +#include +#include +#include +#include + +class CEikTestContentManager; + +// +// +// CTestEikDllLoadedLabel +// +// +class CTestEikDllLoadedLabel : public CEikLabel + { +public: + enum + { + ECtTestEikDllLoadedLabel = 666, + ECtTestEikEComDllLoadedLabel + }; +private: + // framework + void Draw(const TRect& aRect) const; + }; + + +// +// +// CTestEikonDllLoading +// +// +class CTestEikonDllLoading : public CEikLibrary + { +public: + ~CTestEikonDllLoading(); + IMPORT_C static const CTestEikonDllLoading* NewL(); + static SEikControlInfo CreateByTypeL(TInt aControlType); +private: // from CEikLibrary + void InitializeL(); + CArrayFix* ResourceFileArrayL() const; + CArrayFix* ControlFactoryArrayL() const; +private: + CTestEikonDllLoading(); + TFileName ResourceFile() const; +private: + CEikTestContentManager* iContentManager; + }; + +//! TAutoLib +/** + ECom plugin dll - derived from CEikLibrary2 supporting ECom + CTestAutoContainer loads this to test that the CEikonEnv::LoadLibrariesL() + loads both old style dll and ecom plugin dll. +*/ + +class CTestEikonEComDllLoading : public CEikLibrary2 + { +public: + ~CTestEikonEComDllLoading(); + IMPORT_C static const CTestEikonEComDllLoading* NewL(); + static SEikControlInfo CreateByTypeL(TInt aControlType); +private: // from CEikLibrary2 + void InitializeL(); + CArrayFix* ResourceFileArrayL() const; + CArrayFix* ControlFactoryArrayL() const; +private: + CTestEikonEComDllLoading(); + TFileName ResourceFile() const; +private: + CEikTestContentManager* iContentManager; + }; + +#endif