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.

151 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. vdir.h
  5. Abstract:
  6. FTP Virtual Directory Properties dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __VDIR_H__
  14. #define __VDIR_H__
  15. class CFtpDirectoryPage : public CInetPropertyPage
  16. /*++
  17. Class Description:
  18. FTP Virtual Directory Page.
  19. Public Interface:
  20. CFtpDirectoryPage : Constructor
  21. ~CFtpDirectoryPage : Destructor
  22. --*/
  23. {
  24. DECLARE_DYNCREATE(CFtpDirectoryPage)
  25. //
  26. // Construction
  27. //
  28. public:
  29. CFtpDirectoryPage(
  30. IN CInetPropertySheet * pSheet = NULL,
  31. IN BOOL fHome = FALSE
  32. );
  33. ~CFtpDirectoryPage();
  34. //
  35. // Dialog Data
  36. //
  37. protected:
  38. //
  39. // Directory Type
  40. //
  41. enum
  42. {
  43. RADIO_DIRECTORY,
  44. RADIO_NETDIRECTORY,
  45. };
  46. //
  47. // Unix/DOS radio button values
  48. //
  49. enum
  50. {
  51. RADIO_UNIX,
  52. RADIO_DOS,
  53. };
  54. //{{AFX_DATA(CFtpDirectoryPage)
  55. enum { IDD = IDD_DIRECTORY_PROPERTIES };
  56. int m_nUnixDos;
  57. int m_nPathType;
  58. BOOL m_fRead;
  59. BOOL m_fWrite;
  60. BOOL m_fLogAccess;
  61. CString m_strPath;
  62. CStatic m_static_PathPrompt;
  63. CButton m_check_LogAccess;
  64. CButton m_check_Write;
  65. CButton m_check_Read;
  66. CButton m_button_AddPathType;
  67. CButton m_button_Browse;
  68. CButton m_radio_Dir;
  69. CEdit m_edit_Path;
  70. //}}AFX_DATA
  71. BOOL m_fOriginallyUNC;
  72. DWORD m_dwAccessPerms;
  73. CString m_strAlias;
  74. CButton m_radio_Unc;
  75. //
  76. // Overrides
  77. //
  78. protected:
  79. virtual HRESULT FetchLoadedValues();
  80. virtual HRESULT SaveInfo();
  81. // ClassWizard generate virtual function overrides
  82. //{{AFX_VIRTUAL(CFtpDirectoryPage)
  83. public:
  84. protected:
  85. virtual void DoDataExchange(CDataExchange * pDX);
  86. //}}AFX_VIRTUAL
  87. //
  88. // Implementation
  89. //
  90. protected:
  91. // Generated message map functions
  92. //{{AFX_MSG(CFtpDirectoryPage)
  93. afx_msg void OnButtonBrowse();
  94. afx_msg void OnChangeEditPath();
  95. afx_msg void OnCheckWrite();
  96. afx_msg void OnButtonEditPathType();
  97. afx_msg void OnRadioDir();
  98. afx_msg void OnRadioUnc();
  99. virtual BOOL OnInitDialog();
  100. //}}AFX_MSG
  101. afx_msg void OnItemChanged();
  102. DECLARE_MESSAGE_MAP()
  103. void SetStateByType();
  104. void SetPathType(LPCTSTR lpstrPath);
  105. void ChangeTypeTo(int nNewType);
  106. BOOL IsHome() const { return m_fHome; }
  107. private:
  108. BOOL m_fHome;
  109. CString m_strOldPath;
  110. CString m_strUserName;
  111. CString m_strPassword;
  112. CString m_strPathPrompt;
  113. CString m_strSharePrompt;
  114. };
  115. #endif // __VDIR_H__