lowlevellibsandfws/pluginfw/Framework/Example/EComLoadMgrExample1.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2007-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 // EComLoadMgrExample1.h
       
    15 // The implementation of a plugin used for load manager validation tests
       
    16 // 
       
    17 //
       
    18 
       
    19 #include "EComLoadMgrExample1.h"
       
    20 #include <e32base.h>
       
    21 // __________________________________________________________________________
       
    22 // Implementation
       
    23 
       
    24 CImplementationLoadMgrExample1* CImplementationLoadMgrExample1::NewL(TAny* aInitParams)
       
    25 	{
       
    26 	CImplementationLoadMgrExample1* self=new(ELeave) CImplementationLoadMgrExample1();  // calls c'tor
       
    27 	CleanupStack::PushL(self);	// Make the construction safe by using the cleanup stack
       
    28 	self->ConstructL(aInitParams); // Complete the 'construction'.
       
    29 	CleanupStack::Pop(self);
       
    30 	return self;
       
    31 	}
       
    32 
       
    33 CImplementationLoadMgrExample1::~CImplementationLoadMgrExample1()
       
    34 	{
       
    35 	}
       
    36 
       
    37 CImplementationLoadMgrExample1::CImplementationLoadMgrExample1()
       
    38 	{
       
    39 	// Deliberately do nothing here : See ConstructL() for initialisation completion.
       
    40 	}
       
    41 
       
    42 void CImplementationLoadMgrExample1::ConstructL(TAny*)
       
    43 	{
       
    44 	}
       
    45 
       
    46 // __________________________________________________________________________
       
    47 // Exported proxy for instantiation method resolution
       
    48 // Define the interface UIDs
       
    49 const TImplementationProxy ImplementationTable[] = 
       
    50 	{
       
    51 		IMPLEMENTATION_PROXY_ENTRY(0x10282332,	CImplementationLoadMgrExample1::NewL),
       
    52 		IMPLEMENTATION_PROXY_ENTRY(0x10282334,	CImplementationLoadMgrExample1::NewL)
       
    53 	};
       
    54 
       
    55 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    56 	{
       
    57 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    58 	return ImplementationTable;
       
    59 	}
       
    60