lowlevellibsandfws/pluginfw/Framework/Example/exampleNine.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 simple ECOM interface for testing purpose.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include "exampleNine.h"
       
    24 #include "ImplementationProxy.h"
       
    25 
       
    26 /**
       
    27 Factory instantiation method.
       
    28 */
       
    29 CRoguePlugin* CRoguePlugin::NewL(TAny*)
       
    30 	{
       
    31 	CRoguePlugin* self=new(ELeave) CRoguePlugin();
       
    32 	return self;
       
    33 	}
       
    34 
       
    35 /** virtual destructor */
       
    36 CRoguePlugin::~CRoguePlugin()
       
    37 	{
       
    38 	}
       
    39 
       
    40 /** constructor */
       
    41 CRoguePlugin::CRoguePlugin()
       
    42 : CBase()
       
    43 	{
       
    44 	}
       
    45 
       
    46 /** a test function */
       
    47 TUid CRoguePlugin::InterfaceUid()
       
    48 	{
       
    49 	return KRogueInterfaceUid;
       
    50 	}
       
    51 
       
    52 // ___________________________________________________________________
       
    53 // Exported proxy for instantiation method resolution
       
    54 // Define the interface UIDs
       
    55 const TImplementationProxy ImplementationTable[] = 
       
    56 	{
       
    57 	// implementation UID 10009DC3 is in-used by many example ECOM
       
    58 	// magic plugins
       
    59 	IMPLEMENTATION_PROXY_ENTRY(KRogueImplUidValue,	CRoguePlugin::NewL)
       
    60 	};
       
    61 
       
    62 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    63 	{
       
    64 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    65 	return ImplementationTable;
       
    66 	}