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.

68 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997.
  5. //
  6. // File: dbqrslt.hxx
  7. //
  8. // Contents:
  9. //
  10. // History:
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. class CDbRestriction;
  15. class PSerStream;
  16. class PDeSerStream;
  17. class CRestriction;
  18. class CDbQueryResults : INHERIT_UNWIND
  19. {
  20. DECLARE_UNWIND
  21. public:
  22. CDbQueryResults();
  23. CDbQueryResults( PDeSerStream& stream );
  24. ~CDbQueryResults();
  25. void Serialize( PSerStream & stream ) const;
  26. ULONG Size();
  27. unsigned Count() {
  28. return _cHits;
  29. }
  30. WCHAR * Path ( unsigned i ) {
  31. return _aPath[i];
  32. }
  33. ULONG Rank(unsigned i) {
  34. return _aRank[i];
  35. }
  36. void Add ( WCHAR *wszPath, ULONG uRank );
  37. void SetNotOwnPRst( CDbRestriction * pRstNew ) {
  38. _pDbRst = pRstNew;
  39. _fNotOwnPRst = TRUE;
  40. }
  41. CDbRestriction * GetRestriction() {
  42. return _pDbRst;
  43. }
  44. private:
  45. CDbRestriction* _pDbRst; // The restriction
  46. ULONG _size;
  47. ULONG _cHits;
  48. ULONG* _aRank;
  49. WCHAR ** _aPath;
  50. BOOL _fNotOwnPRst;
  51. };