lowlevellibsandfws/pluginfw/Framework/Example/customresolverstub.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2008-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 // Complements ExampleResolver.cpp to form a custom resolver DLL.
       
    15 // The Implementation UID is defined in the mmp file.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalComponent
       
    22 */
       
    23 
       
    24 #include <ecom/implementationproxy.h>
       
    25 #include "ExampleResolver.h"
       
    26 
       
    27 #if defined (CUSTOMRESOLVERIMPLUID_200126CD)
       
    28 	#define MYIMPLUID 0x200126CD
       
    29 #elif defined (CUSTOMRESOLVERIMPLUID_A0001346)
       
    30 	#define MYIMPLUID 0xA0001346
       
    31 #elif defined (CUSTOMRESOLVERIMPLUID_A0001347)
       
    32 	#define MYIMPLUID 0xA0001347
       
    33 #endif
       
    34 
       
    35 // __________________________________________________________________________
       
    36 // Exported proxy for instantiation method resolution
       
    37 // Define the interface UIDs
       
    38 const TImplementationProxy ImplementationTable[] = 
       
    39 	{
       
    40 	IMPLEMENTATION_PROXY_ENTRY(MYIMPLUID, CExampleResolver::NewL)
       
    41 	};
       
    42 
       
    43 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    44 	{
       
    45 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    46 	return ImplementationTable;
       
    47 	}