sl@0: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: // Started by Brendan, Dec 1996
sl@0: // Test library unloader
sl@0: // 
sl@0: //
sl@0: 
sl@0: #include "T_LIBT.H"
sl@0: 
sl@0: IMPORT_C CLibTest* LibEntry();	// Force export 
sl@0: 
sl@0: NONSHARABLE_CLASS(CMyLibTest) : public CLibTest
sl@0: 	{
sl@0: public:
sl@0: 	CMyLibTest();
sl@0: 	TInt Test1() const;
sl@0: 	TInt Test2() const;
sl@0: 	TInt Test3();
sl@0: 	};
sl@0: 
sl@0: CMyLibTest::CMyLibTest()
sl@0: 	{
sl@0: 	__DECLARE_NAME(_S("CMyLibTest"));
sl@0: 	}
sl@0: 
sl@0: TInt CMyLibTest::Test1() const
sl@0: 	{
sl@0: 	return(1);
sl@0: 	}
sl@0: 	
sl@0: TInt CMyLibTest::Test2() const
sl@0: 	{
sl@0: 	return(2);
sl@0: 	}
sl@0: 
sl@0: TInt CMyLibTest::Test3()
sl@0: 	{
sl@0: 	return(3);
sl@0: 	}
sl@0: 
sl@0: EXPORT_C CLibTest* LibEntry()
sl@0: //
sl@0: // Lib main entry point
sl@0: //
sl@0: 	{
sl@0: 	return(new(ELeave) CMyLibTest);
sl@0: 	}
sl@0: 
sl@0: 
sl@0: