imservices/searchfeatureplugin/srcsearchdatamodel/searchdatamodelhook/searchdatamodelhook.cpp
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2007 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:  XIMP Framework's search  Data Model Hook implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <searchdlluids.hrh>
       
    20 #include "searchapidataobjfactoryaccessor.h"
       
    21 #include <ecom/implementationproxy.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // Key value pair table to identify correct constructor
       
    27 // function for the requested interface.
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 const TImplementationProxy ImplementationTable[] =
       
    31     {
       
    32     IMPLEMENTATION_PROXY_ENTRY( XIMP_ECOM_IMPL_UID_SEARCH_DATAMODEL_INTERFACE,
       
    33                                 CSearchApiDataObjFactoryAccessor::NewL )
       
    34     };
       
    35 
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // Exported function to return the implementation proxy table
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
       
    42     {
       
    43     aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy );
       
    44     return ImplementationTable;
       
    45     }
       
    46