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.

63 lines
1.2 KiB

  1. //
  2. // MODULE: BackupInfo.cpp
  3. //
  4. // PURPOSE: Contains infomation that is used when the previous button is selected.
  5. //
  6. // PROJECT: Generic Troubleshooter DLL for Microsoft AnswerPoint
  7. //
  8. // COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
  9. //
  10. // AUTHOR: Richard Meadows
  11. //
  12. // ORIGINAL DATE: 9/5/97
  13. //
  14. // NOTES:
  15. // 1.
  16. //
  17. // Version Date By Comments
  18. //--------------------------------------------------------------------
  19. // V0.2 6/4/97 RM Local Version for Memphis
  20. // V0.3 04/09/98 JM/OK+ Local Version for NT5
  21. //
  22. #include "stdafx.h"
  23. #include "BackupInfo.h"
  24. CBackupInfo::CBackupInfo()
  25. {
  26. Clear();
  27. return;
  28. }
  29. void CBackupInfo::Clear()
  30. {
  31. m_bBackingUp = false;
  32. m_bProblemPage = true;
  33. m_State = 0;
  34. return;
  35. }
  36. bool CBackupInfo::Check(int State)
  37. {
  38. bool bCheckIt;
  39. if (m_bBackingUp && m_State == State)
  40. bCheckIt = true;
  41. else
  42. bCheckIt = false;
  43. return bCheckIt;
  44. }
  45. void CBackupInfo::SetState(int Node, int State)
  46. {
  47. m_bBackingUp = true;
  48. if (INVALID_BNTS_STATE == State)
  49. {
  50. m_bProblemPage = true;
  51. m_State = Node;
  52. }
  53. else
  54. {
  55. m_bProblemPage = false;
  56. m_State = State;
  57. }
  58. return;
  59. }