sl@0: // Copyright (c) 2006-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: // The implementation of a plugin used for resolver performance tests sl@0: // sl@0: // sl@0: sl@0: #include "EComSWITestPluginTwo.h" sl@0: sl@0: sl@0: sl@0: // __________________________________________________________________________ sl@0: // Implementation sl@0: sl@0: CEComSwiPluginInterfaceImplementationTwo* CEComSwiPluginInterfaceImplementationTwo::NewL() sl@0: { sl@0: CEComSwiPluginInterfaceImplementationTwo* self=new(ELeave) CEComSwiPluginInterfaceImplementationTwo(); // calls c'tor sl@0: CleanupStack::PushL(self); // Make the construction safe by using the cleanup stack sl@0: self->ConstructL(); // Complete the 'construction'. sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: CEComSwiPluginInterfaceImplementationTwo::~CEComSwiPluginInterfaceImplementationTwo() sl@0: { sl@0: } sl@0: sl@0: CEComSwiPluginInterfaceImplementationTwo::CEComSwiPluginInterfaceImplementationTwo() sl@0: { sl@0: // Deliberately do nothing here : See ConstructL() for initialisation completion. sl@0: } sl@0: sl@0: void CEComSwiPluginInterfaceImplementationTwo::ConstructL() sl@0: { sl@0: } sl@0: sl@0: void CEComSwiPluginInterfaceImplementationTwo::ReturnInt(TInt& aInt) sl@0: { sl@0: aInt=-2; sl@0: } sl@0: sl@0: sl@0: // __________________________________________________________________________ sl@0: // Exported proxy for instantiation method resolution sl@0: // Define the interface UIDs sl@0: const TImplementationProxy ImplementationTable[] = sl@0: { sl@0: IMPLEMENTATION_PROXY_ENTRY(0x102827F5, CEComSwiPluginInterfaceImplementationTwo::NewL) sl@0: }; sl@0: sl@0: EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) sl@0: { sl@0: aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); sl@0: return ImplementationTable; sl@0: } sl@0: