Source code of Windows XP (NT5)
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.

173 lines
3.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1992.
  5. //
  6. // File: QCAT.CXX
  7. //
  8. // Contents: Query catalog -- downlevel catalog w/o CI support
  9. //
  10. // History: 18-Aug-94 KyleP Extracted from CiCat
  11. //
  12. //----------------------------------------------------------------------------
  13. #include <pch.cxx>
  14. #pragma hdrstop
  15. #include <qcat.hxx>
  16. #include <propspec.hxx>
  17. //+-------------------------------------------------------------------------
  18. //
  19. // Member: CQCat::CQCat, public
  20. //
  21. // Synopsis: Creates a new catalog
  22. //
  23. // History: 18-Aug-94 KyleP Extracted from CiCat
  24. //
  25. //--------------------------------------------------------------------------
  26. CQCat::CQCat( WCHAR const * pwcName )
  27. : _regParams( pwcName )
  28. {
  29. END_CONSTRUCTION( CQCat );
  30. }
  31. //+-------------------------------------------------------------------------
  32. //
  33. // Member: CQCat::~CQCat, public
  34. //
  35. // Synopsis: Destructor
  36. //
  37. // History: 18-Aug-94 KyleP Extracted from CiCat
  38. //
  39. //--------------------------------------------------------------------------
  40. CQCat::~CQCat ()
  41. {
  42. }
  43. //
  44. // Content-index specific. Not implemented.
  45. //
  46. PStorage & CQCat::GetStorage ()
  47. {
  48. Win4Assert( !"Downlevel CI feature called" );
  49. THROW( CException( E_NOTIMPL ) );
  50. return *((PStorage *)0);
  51. }
  52. WCHAR * CQCat::GetDriveName()
  53. {
  54. Win4Assert( !"Downlevel CI feature called" );
  55. THROW( CException( E_NOTIMPL ) );
  56. return( 0 );
  57. }
  58. void CQCat::DisableUsnUpdate( PARTITIONID )
  59. {
  60. Win4Assert( !"Downlevel CI feature called" );
  61. THROW( CException( E_NOTIMPL ) );
  62. }
  63. void CQCat::EnableUsnUpdate( PARTITIONID )
  64. {
  65. Win4Assert( !"Downlevel CI feature called" );
  66. THROW( CException( E_NOTIMPL ) );
  67. }
  68. unsigned CQCat::ReserveUpdate( WORKID wid )
  69. {
  70. Win4Assert( !"Downlevel CI feature called" );
  71. THROW( CException( E_NOTIMPL ) );
  72. return 1;
  73. }
  74. void CQCat::Update( unsigned, WORKID, PARTITIONID, USN, ULONG )
  75. {
  76. Win4Assert( !"Downlevel CI feature called" );
  77. THROW( CException( E_NOTIMPL ) );
  78. }
  79. unsigned CQCat::WorkIdToPath ( WORKID, CFunnyPath & )
  80. {
  81. Win4Assert( !"Downlevel CI feature called" );
  82. THROW( CException( E_NOTIMPL ) );
  83. return( 0 );
  84. }
  85. WORKID CQCat::PathToWorkId ( const CLowerFunnyPath &, const BOOL fCreate )
  86. {
  87. Win4Assert( !"Downlevel CI feature called" );
  88. THROW( CException( E_NOTIMPL ) );
  89. return( widInvalid );
  90. }
  91. void CQCat::SetPartition( PARTITIONID )
  92. {
  93. Win4Assert( !"Downlevel CI feature called" );
  94. THROW( CException( E_NOTIMPL ) );
  95. }
  96. PARTITIONID CQCat::GetPartition() const
  97. {
  98. Win4Assert( !"Downlevel CI feature called" );
  99. THROW( CException( E_NOTIMPL ) );
  100. return( 0 );
  101. }
  102. CRWStore * CQCat::ComputeRelevantWords( ULONG, ULONG, WORKID *, PARTITIONID )
  103. {
  104. Win4Assert( !"Downlevel CI feature called" );
  105. THROW( CException( E_NOTIMPL ) );
  106. return( 0 );
  107. }
  108. CRWStore * CQCat::RetrieveRelevantWords( BOOL, PARTITIONID )
  109. {
  110. Win4Assert( !"Downlevel CI feature called" );
  111. THROW( CException( E_NOTIMPL ) );
  112. return( 0 );
  113. }
  114. void CQCat::UpdateDocuments( WCHAR const *, ULONG )
  115. {
  116. Win4Assert( !"Downlevel CI feature called" );
  117. THROW( CException( E_NOTIMPL ) );
  118. }
  119. SCODE CQCat::CreateContentIndex()
  120. {
  121. Win4Assert( !"Downlevel CI feature called" );
  122. THROW( CException( E_NOTIMPL ) );
  123. return( E_FAIL );
  124. }
  125. void CQCat::EmptyContentIndex()
  126. {
  127. Win4Assert( !"Downlevel CI feature called" );
  128. THROW( CException( E_NOTIMPL ) );
  129. }
  130. void CQCat::PidMapToPidRemap( const CPidMapper & pidMap,
  131. CPidRemapper & pidRemap )
  132. {
  133. Win4Assert( !"Downlevel CI feature called" );
  134. }
  135. SCODE CQCat::CiState( CI_STATE & state )
  136. {
  137. Win4Assert( !"Downlevel CI feature called" );
  138. THROW( CException( E_NOTIMPL ) );
  139. return E_NOTIMPL;
  140. }