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.

131 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. facc.h
  5. Abstract:
  6. FTP Accounts Property Page
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __FACC_H__
  14. #define __FACC_H__
  15. class CFtpAccountsPage : public CInetPropertyPage
  16. {
  17. /*++
  18. Class Description:
  19. FTP Service property page
  20. Public Interface:
  21. CFtpAccountsPage : Constructor
  22. ~CFtpAccountsPage : Destructor
  23. --*/
  24. DECLARE_DYNCREATE(CFtpAccountsPage)
  25. //
  26. // Constructor/Destructor
  27. //
  28. public:
  29. CFtpAccountsPage(
  30. IN CInetPropertySheet * pSheet = NULL
  31. );
  32. ~CFtpAccountsPage();
  33. //
  34. // Dialog Data
  35. //
  36. protected:
  37. //{{AFX_DATA(CFtpAccountsPage)
  38. enum { IDD = IDD_FTP_ACCOUNTS };
  39. BOOL m_fAllowAnonymous;
  40. BOOL m_fOnlyAnonymous;
  41. BOOL m_fPasswordSync;
  42. CString m_strUserName;
  43. CEdit m_edit_Password;
  44. CEdit m_edit_UserName;
  45. CStatic m_static_Password;
  46. CStatic m_static_UserName;
  47. CStatic m_static_AccountPrompt;
  48. CButton m_button_Add;
  49. CButton m_button_CheckPassword;
  50. CButton m_button_Browse;
  51. CButton m_button_CurrentSessions;
  52. CButton m_button_RemoveAdministrator;
  53. CButton m_chk_PasswordSync;
  54. CButton m_chk_AllowAnymous;
  55. CButton m_chk_OnlyAnonymous;
  56. //}}AFX_DATA
  57. CString m_strPassword;
  58. CAccessEntryListBox m_list_Administrators;
  59. //
  60. // Overrides
  61. //
  62. protected:
  63. virtual HRESULT FetchLoadedValues();
  64. virtual HRESULT SaveInfo();
  65. //{{AFX_VIRTUAL(CFtpAccountsPage)
  66. public:
  67. protected:
  68. virtual void DoDataExchange(CDataExchange * pDX);
  69. //}}AFX_VIRTUAL
  70. //
  71. // Implementation
  72. //
  73. protected:
  74. void SetControlStates(BOOL fAllowAnonymous);
  75. BOOL SetAdminRemoveState();
  76. //{{AFX_MSG(CFtpAccountsPage)
  77. virtual BOOL OnInitDialog();
  78. afx_msg void OnButtonCheckPassword();
  79. afx_msg void OnButtonBrowseUser();
  80. afx_msg void OnButtonAdd();
  81. afx_msg void OnButtonDelete();
  82. afx_msg void OnCheckAllowAnonymous();
  83. afx_msg void OnCheckAllowOnlyAnonymous();
  84. afx_msg void OnCheckEnablePwSynchronization();
  85. afx_msg void OnSelchangeListAdministrators();
  86. afx_msg void OnChangeEditUsername();
  87. //}}AFX_MSG
  88. afx_msg void OnItemChanged();
  89. DECLARE_MESSAGE_MAP()
  90. private:
  91. BOOL m_fPasswordSyncChanged;
  92. BOOL m_fPasswordSyncMsgShown;
  93. BOOL m_fUserNameChanged;
  94. CString m_strServerName;
  95. CRMCListBoxResources m_ListBoxRes;
  96. CObListPlus m_oblSID;
  97. };
  98. #endif // __FACC_H__