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.

101 lines
2.2 KiB

  1. #if !defined(AFX_RULE_H__D9BF4FAA_F673_11D2_BDC4_0000F87A3912__INCLUDED_)
  2. #define AFX_RULE_H__D9BF4FAA_F673_11D2_BDC4_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Rule.h : header file
  7. //
  8. #include "HMObject.h"
  9. #include "RuleScopeItem.h"
  10. #include "RuleResultsView.h"
  11. #include "HMRuleStatus.h"
  12. #include "RuleStatusListener.h"
  13. #include "DataElementStatsListener.h"
  14. #include "HMDataElementStatistics.h"
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CRule command target
  17. class CRule : public CHMObject
  18. {
  19. DECLARE_DYNCREATE(CRule)
  20. // Construction/Destruction
  21. public:
  22. CRule();
  23. virtual ~CRule();
  24. // WMI Operations
  25. public:
  26. HRESULT EnumerateChildren();
  27. CString GetObjectPath();
  28. CString GetStatusObjectPath();
  29. CWbemClassObject* GetParentClassObject();
  30. CHMEvent* GetStatusClassObject();
  31. CString GetThresholdString();
  32. // void DeleteClassObject();
  33. // Clipboard Operations
  34. public:
  35. virtual bool Cut();
  36. virtual bool Copy();
  37. virtual bool Paste();
  38. // Operations
  39. public:
  40. virtual bool Rename(const CString& sNewName);
  41. virtual bool Refresh();
  42. virtual bool ResetStatus();
  43. virtual CString GetUITypeName();
  44. // Scope Item Members
  45. public:
  46. virtual CScopePaneItem* CreateScopeItem();
  47. // State Members
  48. public:
  49. void UpdateStatus();
  50. // Attributes
  51. public:
  52. // Operations
  53. public:
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(CRule)
  57. public:
  58. virtual void OnFinalRelease();
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. protected:
  62. // Generated message map functions
  63. //{{AFX_MSG(CRule)
  64. // NOTE - the ClassWizard will add and remove member functions here.
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. DECLARE_OLECREATE_EX(CRule)
  68. // Generated OLE dispatch map functions
  69. //{{AFX_DISPATCH(CRule)
  70. // NOTE - the ClassWizard will add and remove member functions here.
  71. //}}AFX_DISPATCH
  72. DECLARE_DISPATCH_MAP()
  73. DECLARE_INTERFACE_MAP()
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. #include "Rule.inl"
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_RULE_H__D9BF4FAA_F673_11D2_BDC4_0000F87A3912__INCLUDED_)