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