os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/data/src/EComSWITestPluginTwo/EComSWITestPluginTwo.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2006-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 // The implementation of a plugin used for resolver performance tests
    15 // 
    16 //
    17 
    18 #include "EComSWITestPluginTwo.h"
    19 
    20 
    21 
    22 // __________________________________________________________________________
    23 // Implementation
    24 
    25 CEComSwiPluginInterfaceImplementationTwo* CEComSwiPluginInterfaceImplementationTwo::NewL()
    26 	{
    27 	CEComSwiPluginInterfaceImplementationTwo* self=new(ELeave) CEComSwiPluginInterfaceImplementationTwo();  // calls c'tor
    28 	CleanupStack::PushL(self);	// Make the construction safe by using the cleanup stack
    29 	self->ConstructL(); // Complete the 'construction'.
    30 	CleanupStack::Pop(self);
    31 	return self;
    32 	}
    33 
    34 CEComSwiPluginInterfaceImplementationTwo::~CEComSwiPluginInterfaceImplementationTwo()
    35 	{
    36 	}
    37 
    38 CEComSwiPluginInterfaceImplementationTwo::CEComSwiPluginInterfaceImplementationTwo()
    39 	{
    40 	// Deliberately do nothing here : See ConstructL() for initialisation completion.
    41 	}
    42 
    43 void CEComSwiPluginInterfaceImplementationTwo::ConstructL()
    44 	{
    45 	}
    46 	
    47 void CEComSwiPluginInterfaceImplementationTwo::ReturnInt(TInt& aInt)
    48 	{
    49 	aInt=-2;
    50 	}
    51 
    52 
    53 // __________________________________________________________________________
    54 // Exported proxy for instantiation method resolution
    55 // Define the interface UIDs
    56 const TImplementationProxy ImplementationTable[] = 
    57 	{
    58 		IMPLEMENTATION_PROXY_ENTRY(0x102827F5,	CEComSwiPluginInterfaceImplementationTwo::NewL)
    59 	};
    60 
    61 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    62 	{
    63 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    64 	return ImplementationTable;
    65 	}
    66