imservices/searchfeatureplugin/srcsearchdatamodel/apidataobjfactory.h
changeset 51 61fad867f68e
equal deleted inserted replaced
-1:000000000000 51:61fad867f68e
       
     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:  MApiDataObjFactory Declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef M_APIOBJFACTORY_H
       
    21 #define M_APIOBJFACTORY_H
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 class CXIMPApiDataObjBase;
       
    26 
       
    27 class MApiDataObjFactory
       
    28     {  
       
    29 	public:
       
    30 	/**
       
    31      * instantiation method from the stream.
       
    32      *
       
    33      * @param [in] aDataObjInterfaceId
       
    34      *		interface id of the object to be constructed.
       
    35      *
       
    36      * @param [in] aStream
       
    37      *        read stream from which the object is instantiated.
       
    38      *
       
    39      *
       
    40 	 * @return CXIMPApiDataObjBase object.
       
    41 	 * 
       
    42 	 * 
       
    43      */
       
    44 	    
       
    45 	 virtual CXIMPApiDataObjBase* NewFromStreamLC( TInt32 aDataObjInterfaceId,
       
    46 	                                                            RReadStream& aStream ) = 0;
       
    47     
       
    48     };
       
    49 
       
    50 #endif // M_APIOBJFACTORY_H
       
    51