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.

57 lines
1.3 KiB

  1. // ActionPolicy.h: interface for the CActionPolicy class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_ACTIONPOLICY_H__10AC036B_5D70_11D3_939D_00A0CC406605__INCLUDED_)
  5. #define AFX_ACTIONPOLICY_H__10AC036B_5D70_11D3_939D_00A0CC406605__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "HMObject.h"
  10. #include "ActionPolicyScopeItem.h"
  11. #include "Action.h"
  12. #include "ActionConfigListener.h"
  13. class CActionPolicy : public CHMObject
  14. {
  15. DECLARE_DYNCREATE(CActionPolicy)
  16. // Construction/Destruction
  17. public:
  18. CActionPolicy();
  19. virtual ~CActionPolicy();
  20. // WMI Operations
  21. public:
  22. HRESULT EnumerateChildren();
  23. CString GetObjectPath(); // v-marfin 59492
  24. protected:
  25. CActionConfigListener* m_pActionListener;
  26. // Clipboard Operations
  27. public:
  28. virtual bool Cut();
  29. virtual bool Copy();
  30. virtual bool Paste();
  31. // Operations
  32. public:
  33. virtual CString GetUITypeName();
  34. // Scope Item Members
  35. public:
  36. virtual CScopePaneItem* CreateScopeItem();
  37. // New Child Creation Members
  38. public:
  39. virtual bool CreateChild(CHMObject* pObject, const CString& sWMIClassName, const CString& sWMIAssociatorClassName);
  40. void CreateNewChildAction(int iType);
  41. };
  42. #include "ActionPolicy.inl"
  43. #endif // !defined(AFX_ACTIONPOLICY_H__10AC036B_5D70_11D3_939D_00A0CC406605__INCLUDED_)