Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

  1. /******************************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. FTSWrap.h
  5. Abstract:
  6. Declaration of SearchEngine::WrapperFTS
  7. Revision History:
  8. Ghim-Sim Chua (gschua) 06/01/2000
  9. created
  10. ******************************************************************************/
  11. #ifndef __PCHSEWRAP_H_
  12. #define __PCHSEWRAP_H_
  13. #include <SearchEngineLib.h>
  14. #include "ftsobj.h"
  15. namespace SearchEngine
  16. {
  17. /////////////////////////////////////////////////////////////////////////////
  18. class ATL_NO_VTABLE WrapperFTS : public WrapperBase, public MPC::Thread<WrapperFTS,IUnknown>
  19. {
  20. SEARCH_OBJECT_LIST m_objects;
  21. SEARCH_RESULT_SET m_results;
  22. SEARCH_RESULT_SORTSET m_resultsSorted;
  23. CComVariant m_vKeywords;
  24. ////////////////////////////////////////
  25. void ReleaseAll ();
  26. void ReleaseSearchResults();
  27. HRESULT ExecQuery();
  28. HRESULT Initialize();
  29. public:
  30. BEGIN_COM_MAP(WrapperFTS)
  31. COM_INTERFACE_ENTRY2(IDispatch,IPCHSEWrapperItem)
  32. COM_INTERFACE_ENTRY(IPCHSEWrapperItem)
  33. COM_INTERFACE_ENTRY(IPCHSEWrapperInternal)
  34. END_COM_MAP()
  35. WrapperFTS();
  36. virtual ~WrapperFTS();
  37. virtual HRESULT GetParamDefinition( /*[out]*/ const ParamItem_Definition*& lst, /*[out]*/ int& len );
  38. // IPCHSEWrapperItem
  39. public:
  40. STDMETHOD(get_SearchTerms)( /*[out, retval]*/ VARIANT *pVal );
  41. STDMETHOD(Result)( /*[in]*/ long lStart, /*[in]*/ long lEnd, /*[out, retval]*/ IPCHCollection* *ppC );
  42. // IPCHSEWrapperInternal
  43. public:
  44. STDMETHOD(ExecAsyncQuery)();
  45. STDMETHOD(AbortQuery )();
  46. };
  47. };
  48. #endif //__PCHSEWRAP_H_