imservices/searchfeatureplugin/srcsearchprocessor/protocolsearchdatahostimp.h
changeset 51 61fad867f68e
equal deleted inserted replaced
-1:000000000000 51:61fad867f68e
       
     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:  searchdata host header
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CPROTOCOLSEARCHDATAHOSTIMP_H
       
    19 #define CPROTOCOLSEARCHDATAHOSTIMP_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <ximpprotocolconnectionhost.h>
       
    23 #include <ximpcontext.h>
       
    24 #include <ximpbase.h>
       
    25 #include <protocolsearchdatahost.h>
       
    26 
       
    27 #include "searchapiobjbase.h"
       
    28 #include "ximpapiobjbase.h"
       
    29 #include "ximphost.h"
       
    30 
       
    31 
       
    32 class MXIMPHost;
       
    33 class MSearchObjectFactory;
       
    34 class CSearchObjectFactoryImp;
       
    35 
       
    36 class CXIMPPscContext;
       
    37 class MSearchDataCache;
       
    38 class CSearchDataCache;
       
    39 class CXIMPContextStateEventImp;
       
    40 class CPeriodic;
       
    41 class MXIMPProtocolConnection;
       
    42 
       
    43 class CProtocolSearchFeatureDataHostImp;
       
    44 
       
    45 class MProtocolSearchFeatureDataHost;
       
    46 
       
    47 
       
    48 
       
    49 	/**
       
    50 	 * SearchData  host.
       
    51 	 *
       
    52 	 * @lib searchprocessor.dll
       
    53 	 */
       
    54 
       
    55 NONSHARABLE_CLASS(CProtocolSearchDataHostImp)  : public MProtocolSearchDataHost
       
    56     	{
       
    57 		public:
       
    58 		    /** The class ID. */
       
    59 		    enum { KClassId = IMP_CLSID_CPROTOCOLSEARCHDATAHOSTIMP };
       
    60 		
       
    61 		public:
       
    62 		
       
    63 	    	/**
       
    64 	    	 * Construction :NewL
       
    65 	     	 */
       
    66 		    static CProtocolSearchDataHostImp* NewL( MXIMPHost& aHost );
       
    67 		    
       
    68 		    /**
       
    69 	    	 * Construction :NewL
       
    70 	     	 */
       
    71 		    static CProtocolSearchDataHostImp* NewLC( MXIMPHost& aHost );
       
    72 		    
       
    73 	       /**
       
    74 	         * Destructor
       
    75 	         */
       
    76 		    virtual ~CProtocolSearchDataHostImp();
       
    77 		
       
    78 		private:
       
    79 		    /**
       
    80 		     * constructor
       
    81 		     */
       
    82 		    CProtocolSearchDataHostImp( MXIMPHost& aHost );
       
    83 		    
       
    84 		    /**
       
    85 		     * 2nd phase constructor
       
    86 		     */
       
    87 		    void ConstructL();
       
    88 	
       
    89 		public: // MProtocolSearchDataHost
       
    90 		   /**
       
    91 		     * 
       
    92 		     * @see MProtocolSearchDataHost
       
    93 		     */
       
    94 		   MSearchObjectFactory& SearchObjectFactory();
       
    95 		   
       
    96 		   /**
       
    97 		     * 
       
    98 		     * @see MProtocolSearchDataHost
       
    99 		     */
       
   100 		   MProtocolSearchFeatureDataHost& SearchFeatureDataAccess() ;
       
   101 		   
       
   102 		   /**
       
   103 		     * returns the  searchdatacache
       
   104 		     *
       
   105 		     * @return  reference to CSearchDataCache : ownershipr not transfered
       
   106 		     */
       
   107 		   IMPORT_C CSearchDataCache& SearchDataCache();
       
   108 		
       
   109 		private: // data
       
   110 			/**
       
   111 		     * Access to host. Not owned
       
   112 		     */
       
   113 		    MXIMPHost& iHost;
       
   114 		    
       
   115 			/**
       
   116 		     * CProtocolSearchFeatureDataHostImp : owned
       
   117 		     */
       
   118 		  CSearchObjectFactoryImp* iSearchObjFactory;
       
   119 		  	/**
       
   120 		     * CProtocolSearchFeatureDataHostImp : owned
       
   121 		     */
       
   122 		  CProtocolSearchFeatureDataHostImp* iSrchFeatureDataHost;
       
   123 		  	/**
       
   124 		     * CProtocolSearchFeatureDataHostImp : owned
       
   125 		     */
       
   126 		  CSearchDataCache* iSearchDataCache;
       
   127 
       
   128     	};
       
   129 
       
   130 
       
   131 #endif // CCPROTOCOLSEARCHDATAHOSTIMP_H
       
   132