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.

56 lines
1.7 KiB

  1. /********************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. IncidentStore.h
  5. Abstract:
  6. This is the header file for IncidentStore
  7. Revision History:
  8. Steve Shih created 07/14/99
  9. Davide Massarenti rewrote 12/05/2000
  10. ********************************************************************/
  11. #ifndef __INCSTORE_H_
  12. #define __INCSTORE_H_
  13. #include "time.h"
  14. #include "SAFLib.h"
  15. class CIncidentStore : public MPC::NamedMutex
  16. {
  17. typedef std::list< CSAFIncidentRecord > List;
  18. typedef List::iterator Iter;
  19. typedef List::const_iterator IterConst;
  20. typedef MPC::wstring String;
  21. bool m_fLoaded;
  22. bool m_fDirty;
  23. DWORD m_dwNextIndex;
  24. List m_lstIncidents;
  25. CComBSTR m_strNotificationGuid;
  26. public:
  27. CIncidentStore();
  28. virtual ~CIncidentStore();
  29. HRESULT Load();
  30. HRESULT Save();
  31. HRESULT OpenChannel( CSAFChannel* pChan );
  32. HRESULT AddRec ( CSAFChannel* pChan, BSTR bstrOwner, BSTR bstrDesc, BSTR bstrURL, BSTR bstrProgress, BSTR bstrXMLDataFile, BSTR XMLDataBlob, CSAFIncidentItem* *ppItem );
  33. HRESULT DeleteRec ( CSAFIncidentItem* pItem );
  34. HRESULT UpdateRec ( CSAFIncidentItem* pItem );
  35. };
  36. #endif // __INCSTORE_H_