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.

56 lines
1.2 KiB

  1. // Event.h: interface for the CEvent class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_EVENT_H__988BB45A_8C93_11D3_BE83_0000F87A3912__INCLUDED_)
  5. #define AFX_EVENT_H__988BB45A_8C93_11D3_BE83_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "HMEventResultsPaneItem.h"
  10. class CEvent : public CObject
  11. {
  12. DECLARE_DYNCREATE(CEvent)
  13. // Construction/Destruction
  14. public:
  15. CEvent();
  16. virtual ~CEvent();
  17. // Event Time Members
  18. public:
  19. CString GetEventLocalTime();
  20. SYSTEMTIME m_st;
  21. // State Members
  22. public:
  23. static int GetStatus(int iAgentState); // maps from agent state to console state
  24. static void GetStatus(int iAgentState, CString& sStatus); // maps agent state integer to UI Text
  25. int m_iState;
  26. // StatusGuid
  27. public:
  28. CString m_sStatusGuid;
  29. // Name
  30. public:
  31. CString m_sName;
  32. // System Name
  33. public:
  34. CString m_sSystemName;
  35. // Result Pane Item Members
  36. public:
  37. virtual CHMEventResultsPaneItem* CreateResultsPaneItem(CResultsPaneView* pView) { ASSERT(pView); ASSERT(FALSE); return NULL; }
  38. };
  39. typedef CTypedPtrArray<CObArray,CEvent*> EventArray;
  40. #include "Event.inl"
  41. #endif // !defined(AFX_EVENT_H__988BB45A_8C93_11D3_BE83_0000F87A3912__INCLUDED_)