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.

81 lines
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // policypage.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the class ProxyPolicyPage
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 03/01/2000 Original version.
  16. // 04/19/2000 Marshall SDOs across apartments.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef POLICYPAGE_H
  20. #define POLICYPAGE_H
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif
  24. #include <condlist.h>
  25. ///////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CLASS
  28. //
  29. // ProxyPolicyPage
  30. //
  31. // DESCRIPTION
  32. //
  33. // Implements the property page for a proxy policy.
  34. //
  35. ///////////////////////////////////////////////////////////////////////////////
  36. class ProxyPolicyPage : public SnapInPropertyPage
  37. {
  38. public:
  39. ProxyPolicyPage(
  40. LONG_PTR notifyHandle,
  41. LPARAM notifyParam,
  42. Sdo& policySdo,
  43. Sdo& profileSdo,
  44. SdoConnection& connection,
  45. bool useName = true
  46. );
  47. protected:
  48. virtual BOOL OnInitDialog();
  49. afx_msg void onAddCondition();
  50. afx_msg void onEditCondition();
  51. afx_msg void onRemoveCondition();
  52. afx_msg void onEditProfile();
  53. DECLARE_MESSAGE_MAP()
  54. DEFINE_ERROR_CAPTION(IDS_POLICY_E_CAPTION);
  55. // From SnapInPropertyPage.
  56. virtual void getData();
  57. virtual void setData();
  58. virtual void saveChanges();
  59. virtual void discardChanges();
  60. private:
  61. SdoStream<Sdo> policyStream;
  62. SdoStream<Sdo> profileStream;
  63. Sdo policy;
  64. Sdo profile;
  65. SdoConnection& cxn;
  66. SdoCollection conditions;
  67. CComBSTR name;
  68. CListBox listBox;
  69. ConditionList condList;
  70. };
  71. #endif // POLICYPAGE_H