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.

122 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. security.h
  5. Abstract:
  6. FTP Security Property Page Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __SECURITY_H__
  14. #define __SECURITY_H__
  15. class CFtpSecurityPage : public CInetPropertyPage
  16. /*++
  17. Class Description:
  18. FTP Security property page
  19. Public Interface:
  20. CFtpSecurityPage : Constructor
  21. ~CFtpSecurityPage : Destructor
  22. --*/
  23. {
  24. DECLARE_DYNCREATE(CFtpSecurityPage)
  25. //
  26. // Construction
  27. //
  28. public:
  29. CFtpSecurityPage(CInetPropertySheet * pSheet = NULL);
  30. ~CFtpSecurityPage();
  31. //
  32. // Dialog Data
  33. //
  34. protected:
  35. //{{AFX_DATA(CFtpSecurityPage)
  36. enum { IDD = IDD_DIRECTORY_SECURITY };
  37. int m_nGrantedDenied;
  38. CStatic m_icon_Granted;
  39. CStatic m_icon_Denied;
  40. CButton m_radio_Granted;
  41. CButton m_button_Add;
  42. CButton m_button_Remove;
  43. CButton m_button_Edit;
  44. //}}AFX_DATA
  45. CIPAccessDescriptorListBox m_list_IpAddresses;
  46. CButton m_radio_Denied;
  47. //
  48. // Overrides
  49. //
  50. protected:
  51. virtual HRESULT FetchLoadedValues();
  52. virtual HRESULT SaveInfo();
  53. // ClassWizard generate virtual function overrides
  54. //{{AFX_VIRTUAL(CFtpSecurityPage)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange * pDX);
  57. //}}AFX_VIRTUAL
  58. //
  59. // Implementation
  60. //
  61. protected:
  62. // Generated message map functions
  63. //{{AFX_MSG(CFtpSecurityPage)
  64. afx_msg void OnButtonAdd();
  65. afx_msg void OnButtonEdit();
  66. afx_msg void OnButtonRemove();
  67. afx_msg void OnDblclkListIpAddresses();
  68. afx_msg void OnErrspaceListIpAddresses();
  69. afx_msg void OnRadioGranted();
  70. afx_msg void OnRadioDenied();
  71. afx_msg void OnSelchangeListIpAddresses();
  72. afx_msg int OnVKeyToItem(UINT nKey, CListBox * pListBox, UINT nIndex);
  73. virtual BOOL OnInitDialog();
  74. //}}AFX_MSG
  75. afx_msg void OnItemChanged();
  76. DECLARE_MESSAGE_MAP()
  77. INT_PTR ShowPropertiesDialog(BOOL fAdd = FALSE);
  78. void FillListBox(CIPAccessDescriptor * pSelection = NULL);
  79. BOOL SetControlStates();
  80. DWORD SortAccessList();
  81. private:
  82. BOOL m_fDefaultGranted;
  83. BOOL m_fOldDefaultGranted;
  84. BOOL m_fIpDirty;
  85. CObListPlus m_oblAccessList;
  86. CRMCListBoxResources m_ListBoxRes;
  87. };
  88. #endif //__SECURITY_H__