imservices/searchfeatureplugin/srcsearchprocessor/protocoldatahostimp.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:  protcol datahost imp header
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CPROTOCOLDATAHOSTIMP_H
       
    19 #define CPROTOCOLDATAHOSTIMP_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <ximpbase.h>
       
    23 #include <protocoldatahost.h>
       
    24 #include "searchapiobjbase.h"
       
    25 #include "ximpapiobjbase.h"
       
    26 
       
    27 #include "ximphost.h"
       
    28 
       
    29 class MXIMPHost;
       
    30 class MImObjectFactory;
       
    31 class CImObjectFactoryImp;
       
    32 
       
    33 class CXIMPPscContext;
       
    34 class MImDataCache;
       
    35 class CImDataCache;
       
    36 class CXIMPContextStateEventImp;
       
    37 class CPeriodic;
       
    38 class MXIMPProtocolConnection;
       
    39 class CProtocolImConversationDataHostImp;
       
    40 class CXIMPOperationBase ;
       
    41 
       
    42 class CProtocolSearchDataHostImp ;
       
    43 
       
    44 /**
       
    45  * protocol data host for serach
       
    46  *
       
    47  * @lib searchprocessor.dll
       
    48  */
       
    49 
       
    50 NONSHARABLE_CLASS(CProtocolDataHostImp): public MProtocolDataHost
       
    51     {
       
    52     
       
    53 	public:
       
    54 	    /** The class ID. */
       
    55 	    enum { KClassId = IMP_CLSID_CPROTOCOLSEARCHDATAHOSTIMP };
       
    56 
       
    57 	public:
       
    58         /**
       
    59     	 * Construction :NewL
       
    60      	 */
       
    61 	    IMPORT_C static CProtocolDataHostImp* NewL( MXIMPHost& aHost );
       
    62 	    
       
    63 		/**
       
    64     	 * Construction :NewL
       
    65      	 */
       
    66 	    IMPORT_C static CProtocolDataHostImp* NewLC( MXIMPHost& aHost );
       
    67 	    
       
    68 	    /**
       
    69          * Destructor
       
    70          */
       
    71 	    virtual ~CProtocolDataHostImp();
       
    72 
       
    73 	private:
       
    74         /**
       
    75 	     * constructor
       
    76 	     */
       
    77 	    CProtocolDataHostImp( MXIMPHost& aHost );
       
    78 	    
       
    79 	    /**
       
    80 	     * 2nd phase constructor
       
    81 	     */
       
    82 	    void ConstructL();
       
    83 
       
    84 	public: // MProtocolDataHost 
       
    85 	    /**
       
    86 	     * 
       
    87 	     * @see MProtocolDataHost 
       
    88 	     */
       
    89 	    void SetHostToProtocol() ; 
       
    90 	    /**
       
    91 	     * 
       
    92 	     * @see MProtocolDataHost 
       
    93 	     */
       
    94 	    TAny* GetInterface(TInt aInterfaceId) ;
       
    95 	    /**
       
    96 	     * 
       
    97 	     * @see MProtocolDataHost 
       
    98 	     */
       
    99 	    
       
   100 	    TInt GetCleanupOperation() ;
       
   101 
       
   102 
       
   103 	private: 
       
   104 		/**
       
   105 	     * Access to host. Not owned
       
   106 	     */
       
   107 	    MXIMPHost& iHost;
       
   108 	    /**
       
   109 	     * CProtocolSearchDataHostImp : owned
       
   110 	     */
       
   111 	    CProtocolSearchDataHostImp *iSearchDataHost ;
       
   112 
       
   113     };
       
   114 
       
   115 
       
   116 #endif // CPROTOCOLDATAHOSTIMP_H
       
   117