commonuisupport/uikon/test/tlibs/tloaddll/TLOADDLL.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code 
       
    19 */
       
    20 
       
    21 #if !defined(__TLOADDLL_H__)
       
    22 #define __TLOADDLL_H__
       
    23 
       
    24 #include <f32file.h>
       
    25 #include <e32base.h>
       
    26 #include <eiklibry.h>
       
    27 #include <techview/eiklabel.h>
       
    28 
       
    29 class CEikTestContentManager;
       
    30 
       
    31 //
       
    32 //
       
    33 //	CTestEikDllLoadedLabel
       
    34 //
       
    35 //
       
    36 class CTestEikDllLoadedLabel : public CEikLabel
       
    37 	{
       
    38 public:
       
    39 	enum
       
    40 		{
       
    41 		ECtTestEikDllLoadedLabel = 666,
       
    42 		ECtTestEikEComDllLoadedLabel
       
    43 		};
       
    44 private: 
       
    45 	// framework
       
    46     void Draw(const TRect& aRect) const;
       
    47 	};
       
    48 
       
    49 
       
    50 //
       
    51 //
       
    52 //	CTestEikonDllLoading
       
    53 //
       
    54 //
       
    55 class CTestEikonDllLoading : public CEikLibrary
       
    56 	{
       
    57 public:
       
    58 	~CTestEikonDllLoading();
       
    59 	IMPORT_C static const CTestEikonDllLoading*	NewL();
       
    60 	static SEikControlInfo CreateByTypeL(TInt aControlType);
       
    61 private: // from CEikLibrary
       
    62 	void								InitializeL();
       
    63 	CArrayFix<TFileName>*				ResourceFileArrayL() const;
       
    64 	CArrayFix<TCreateByTypeFunction>*	ControlFactoryArrayL() const;
       
    65 private:
       
    66 	CTestEikonDllLoading();
       
    67 	TFileName ResourceFile() const;
       
    68 private:
       
    69 	CEikTestContentManager* iContentManager;
       
    70 	};
       
    71 
       
    72 //! TAutoLib 
       
    73 /** 
       
    74   ECom plugin dll - derived from CEikLibrary2 supporting ECom
       
    75   CTestAutoContainer loads this to test that the CEikonEnv::LoadLibrariesL()
       
    76   loads both old style dll and ecom plugin dll.
       
    77 */
       
    78 
       
    79 class CTestEikonEComDllLoading : public CEikLibrary2
       
    80 	{
       
    81 public:
       
    82 	~CTestEikonEComDllLoading();
       
    83 	IMPORT_C static const CTestEikonEComDllLoading*	NewL();
       
    84 	static SEikControlInfo CreateByTypeL(TInt aControlType);
       
    85 private: // from CEikLibrary2
       
    86 	void								InitializeL();
       
    87 	CArrayFix<TFileName>*				ResourceFileArrayL() const;
       
    88 	CArrayFix<TCreateByTypeFunction>*	ControlFactoryArrayL() const;
       
    89 private:
       
    90 	CTestEikonEComDllLoading();
       
    91 	TFileName ResourceFile() const;
       
    92 private:
       
    93 	CEikTestContentManager* iContentManager;
       
    94 	};
       
    95 
       
    96 #endif