imservices/searchfeatureplugin/srcsearchdatamodel/searchapidataobjfactoryaccessor.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 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:  Class to access the different object factories in the datamodel
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SEARCHAPIDATAOBJFACTORYACCESSOR_H
       
    19 #define SEARCHAPIDATAOBJFACTORYACCESSOR_H
       
    20 
       
    21 #include <apidataobjfactoryaccessor.h>
       
    22 
       
    23 class MEventCodec;
       
    24 class CSearchEventCodec;
       
    25 class MApiDataObjFactory;
       
    26 class CSearchApiDataObjFactory;
       
    27 class MApiDataObjFactoryAccessor;
       
    28 /**
       
    29  * Class to access the different object factories in the datamodel
       
    30  *
       
    31  * @lib searchdatamodel.dll
       
    32  * 
       
    33  */
       
    34 NONSHARABLE_CLASS( CSearchApiDataObjFactoryAccessor ) : public MApiDataObjFactoryAccessor
       
    35     	{
       
    36 		public:
       
    37 		    /**
       
    38 		     ** NewL method 
       
    39 		     **/
       
    40 		    IMPORT_C static CSearchApiDataObjFactoryAccessor* NewL();
       
    41 		    
       
    42 		    /**
       
    43 		     * Returns the feature plugin specific event codec object
       
    44 		     */
       
    45  			MEventCodec& EventCodec() ;
       
    46     
       
    47 		    /**
       
    48 		     * Returns the feature plugin specific api object data factory object
       
    49 		     */    
       
    50 		    MApiDataObjFactory& ApiDataObjFactory();
       
    51 		    /**
       
    52 		     * destructor
       
    53 		     */
       
    54 		    ~CSearchApiDataObjFactoryAccessor();
       
    55 
       
    56 		private:
       
    57             /**
       
    58 		     * constructor
       
    59 		     */
       
    60 		    CSearchApiDataObjFactoryAccessor();
       
    61 		    /**
       
    62 		     * construcL 
       
    63 		     */
       
    64 		    void ConstructL();
       
    65     
       
    66 		//data
       
    67 		private:
       
    68 		// Own
       
    69 		   CSearchEventCodec* iEventCodec;
       
    70 
       
    71 		// Own
       
    72 		 CSearchApiDataObjFactory* iSearchApiDataObjFactory;
       
    73 
       
    74 	    };
       
    75 
       
    76 #endif // SEARCHAPIDATAOBJFACTORYACCESSOR_H
       
    77 
       
    78 
       
    79 
       
    80 
       
    81 
       
    82