menucontentsrv/handlersrc/menuhandlerproxy.cpp
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2009 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 #include <e32std.h>
       
    19 #include <ecom/implementationproxy.h>
       
    20 #include "menuapphandler.h"
       
    21 #include "menuurlhandler.h"
       
    22 #include "menulinkhandler.h"
       
    23 
       
    24 // ============================ LOCAL FUNCTIONS ===============================
       
    25 
       
    26 LOCAL_C CMenuHandlerPlugin* AppHandlerNewL( RMenu *aMenu )
       
    27     {
       
    28     return CMenuAppHandler::NewL( *aMenu );
       
    29     }
       
    30 
       
    31 LOCAL_C CMenuHandlerPlugin* UrlHandlerNewL( RMenu *aMenu )
       
    32     {
       
    33     return CMenuUrlHandler::NewL( *aMenu );
       
    34     }
       
    35 
       
    36 LOCAL_C CMenuHandlerPlugin* LinkHandlerNewL( RMenu *aMenu )
       
    37     {
       
    38     return CMenuLinkHandler::NewL( *aMenu );
       
    39     }
       
    40 
       
    41 // ============================ CONSTANTS ===============================
       
    42 
       
    43 const TImplementationProxy ImplementationTable[] = 
       
    44 	{
       
    45     IMPLEMENTATION_PROXY_ENTRY( 0x200113E0, AppHandlerNewL ),
       
    46     IMPLEMENTATION_PROXY_ENTRY( 0x200113E1, UrlHandlerNewL ),
       
    47     IMPLEMENTATION_PROXY_ENTRY( 0x20019595, LinkHandlerNewL ),
       
    48 	};
       
    49 
       
    50 // ============================ GLOBAL FUNCTIONS ===============================
       
    51 
       
    52 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
       
    53 	{
       
    54 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    55 	return ImplementationTable;
       
    56 	}
       
    57