eapol/eapol_framework/eapol_symbian/am/eapvpnif/src/eap_vpn_if_proxy.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Provides a proxy table for Interface implementations.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <e32std.h>
       
    21 #include <ecom/implementationproxy.h>
       
    22 
       
    23 #include "eap_vpn_if_implementation.h"
       
    24 
       
    25 #ifndef IMPLEMENTATION_PROXY_ENTRY
       
    26 #define IMPLEMENTATION_PROXY_ENTRY(aUid, aFuncPtr)	{{aUid},(TProxyNewLPtr)(aFuncPtr)}
       
    27 #endif
       
    28 
       
    29 // Provides a key value pair table, this is used to identify
       
    30 // the correct construction function for the requested interface.
       
    31 const TImplementationProxy ImplementationTable[] =
       
    32 	{
       
    33 		IMPLEMENTATION_PROXY_ENTRY(0x1020699a, CEapVpnInterfaceImplementation::NewL)
       
    34 	};
       
    35 
       
    36 // Function used to return an instance of the proxy table.
       
    37 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    38 	{
       
    39 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    40 	return ImplementationTable;
       
    41 	}