webservices/wsstar/wsstarplugin/src/wsstarproxy.cpp
changeset 0 62f9d29f7211
child 1 272b002df977
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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 "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:          
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 #include <e32std.h>
       
    29 #include <ecom/implementationproxy.h>
       
    30 
       
    31 #include "wsstarplugin.h"
       
    32 #include "wsstarvalidatehandler.h"
       
    33 #include "wsstarregisterhandler.h"
       
    34 #include "wsstarserviceupdatehandler.h"
       
    35 #include "wsstarpolicyhandler.h"
       
    36 
       
    37 //#ifdef RD_SEN_VTCP_SUPPORT
       
    38 //#include "WSStarVtcpHandler.h"
       
    39 //#endif
       
    40 
       
    41 #ifdef RD_SEN_VTCP_SUPPORT
       
    42 #include "wsstarcobrandinghandler.h"
       
    43 #endif//RD_SEN_VTCP_SUPPORT
       
    44 
       
    45 #ifdef RD_SEN_WS_STAR__WBXML
       
    46 #include "WBXMLPlugin.h"
       
    47 #endif
       
    48 
       
    49 #ifndef RD_SEN_COMPILE_SIS_PACKAGE_FILES
       
    50     const TInt32 KStarPlugin = 0x101F9718;
       
    51     const TInt32 KWSStarValidateHandler = 0x101F9719;
       
    52     const TInt32 KWSStarRegisterHandler = 0x101F971A;
       
    53     const TInt32 KWSStarServiceUpdateHandler = 0x101F971B;
       
    54     const TInt32 KWSStarPolicyHandler = 0x101F9796;
       
    55 	#ifdef RD_SEN_VTCP_SUPPORT
       
    56     	const TInt32 KWSStarVtcpHandler = 0x101F9722;
       
    57 	    const TInt32 KWSStarCoBrandingHandler = 0x101F9798;
       
    58 	#endif//RD_SEN_VTCP_SUPPORT
       
    59 #else
       
    60     const TInt32 KStarPlugin = 0x10282C50;
       
    61     const TInt32 KWSStarValidateHandler = 0x10282C51;
       
    62     const TInt32 KWSStarRegisterHandler = 0x10282C52;
       
    63     const TInt32 KWSStarServiceUpdateHandler = 0x10282C53;
       
    64     const TInt32 KWSStarPolicyHandler = 0x10282C54;
       
    65 	#ifdef RD_SEN_VTCP_SUPPORT
       
    66 	    const TInt32 KWSStarVtcpHandler = 0x10282C55;
       
    67 	    const TInt32 KWSStarCoBrandingHandler = 0x10282C6D;
       
    68 	#endif//RD_SEN_VTCP_SUPPORT		
       
    69 #endif
       
    70 // ---------------------------------------------------------------------------
       
    71 // Provides a key value pair table, this is used to identify
       
    72 // the correct construction function for the requested interface.
       
    73 // ---------------------------------------------------------------------------
       
    74 //
       
    75 const TImplementationProxy ImplementationTable[] =
       
    76     {
       
    77     IMPLEMENTATION_PROXY_ENTRY(KStarPlugin,  CWSStarPlugin::NewL),
       
    78     IMPLEMENTATION_PROXY_ENTRY(KWSStarValidateHandler,  CWSStarValidateHandler::NewL),
       
    79     IMPLEMENTATION_PROXY_ENTRY(KWSStarRegisterHandler,  CWSStarRegisterHandler::NewL),
       
    80     IMPLEMENTATION_PROXY_ENTRY(KWSStarServiceUpdateHandler,  CWSStarServiceUpdateHandler::NewL),
       
    81     IMPLEMENTATION_PROXY_ENTRY(KWSStarPolicyHandler,  CWSStarPolicyHandler::NewL),
       
    82 #ifdef RD_SEN_VTCP_SUPPORT // wsstarvtcphandler plugin is moved from wsstarplugin to vtcptransportplugin
       
    83     //IMPLEMENTATION_PROXY_ENTRY(KWSStarVtcpHandler,  CWSStarVtcpHandler::NewL),
       
    84     IMPLEMENTATION_PROXY_ENTRY(KWSStarCoBrandingHandler,  CWSStarCoBrandingHandler::NewL)
       
    85 #endif//RD_SEN_VTCP_SUPPORT
       
    86 #ifdef RD_SEN_WS_STAR__WBXML
       
    87     ,IMPLEMENTATION_PROXY_ENTRY(0x00191919,  CWBXMLPlugin::NewL)
       
    88 #endif
       
    89     };
       
    90 
       
    91 // ---------------------------------------------------------------------------
       
    92 // Function used to return an instance of the proxy table.
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(
       
    96                                                             TInt& aTableCount)
       
    97     {
       
    98     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    99     return ImplementationTable;
       
   100     }
       
   101