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.

426 lines
7.0 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. wizard.h
  5. Abstract:
  6. WWW Wizards pages definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __FTP_WIZ_H__
  14. #define __FTP_WIZ_H__
  15. class CIISFtpWizSettings : public CObjectPlus
  16. /*++
  17. Class Description:
  18. FTP Wizard settings intended to pass along from page
  19. to page
  20. --*/
  21. {
  22. //
  23. // Constructor/Destructor
  24. //
  25. public:
  26. CIISFtpWizSettings(
  27. IN HANDLE hServer,
  28. IN LPCTSTR lpszService,
  29. IN DWORD dwInstance = MASTER_INSTANCE,
  30. IN LPCTSTR lpszParent = NULL
  31. );
  32. //
  33. // Public Properties
  34. //
  35. public:
  36. BOOL m_fLocal;
  37. BOOL m_fUNC;
  38. BOOL m_fRead;
  39. BOOL m_fWrite;
  40. DWORD m_dwInstance;
  41. CString m_strService;
  42. CString m_strParent;
  43. CString m_strServerName;
  44. CString m_strDescription;
  45. CString m_strBinding;
  46. CString m_strAlias;
  47. CString m_strPath;
  48. CString m_strUserName;
  49. CString m_strPassword;
  50. HRESULT m_hrResult;
  51. CMetaKey * m_pKey;
  52. };
  53. //
  54. // New Virtual Server Wizard Description Page
  55. //
  56. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  57. class CVDWPDescription : public CIISWizardPage
  58. {
  59. DECLARE_DYNCREATE(CVDWPDescription)
  60. //
  61. // Construction
  62. //
  63. public:
  64. CVDWPDescription(CIISFtpWizSettings * pwsSettings = NULL);
  65. ~CVDWPDescription();
  66. //
  67. // Dialog Data
  68. //
  69. protected:
  70. //{{AFX_DATA(CVDWPDescription)
  71. enum { IDD = IDD_NEW_INST_DESCRIPTION };
  72. CEdit m_edit_Description;
  73. //}}AFX_DATA
  74. //
  75. // Overrides
  76. //
  77. protected:
  78. //{{AFX_VIRTUAL(CVDWPDescription)
  79. public:
  80. virtual BOOL OnSetActive();
  81. virtual LRESULT OnWizardNext();
  82. protected:
  83. virtual void DoDataExchange(CDataExchange * pDX);
  84. //}}AFX_VIRTUAL
  85. //
  86. // Implementation
  87. //
  88. protected:
  89. //{{AFX_MSG(CVDWPDescription)
  90. afx_msg void OnChangeEditDescription();
  91. //}}AFX_MSG
  92. DECLARE_MESSAGE_MAP()
  93. void SetControlStates();
  94. private:
  95. CIISFtpWizSettings * m_pwsSettings;
  96. };
  97. //
  98. // New Virtual Server Wizard Bindings Page
  99. //
  100. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  101. class CVDWPBindings : public CIISWizardPage
  102. {
  103. DECLARE_DYNCREATE(CVDWPBindings)
  104. //
  105. // Construction
  106. //
  107. public:
  108. CVDWPBindings(CIISFtpWizSettings * pwsSettings = NULL);
  109. ~CVDWPBindings();
  110. //
  111. // Dialog Data
  112. //
  113. protected:
  114. //{{AFX_DATA(CVDWPBindings)
  115. enum { IDD = IDD_NEW_INST_BINDINGS };
  116. int m_nIpAddressSel;
  117. UINT m_nTCPPort;
  118. CComboBox m_combo_IpAddresses;
  119. //}}AFX_DATA
  120. CIPAddress m_iaIpAddress;
  121. CObListPlus m_oblIpAddresses;
  122. //
  123. // Overrides
  124. //
  125. protected:
  126. //{{AFX_VIRTUAL(CVDWPBindings)
  127. public:
  128. virtual BOOL OnSetActive();
  129. protected:
  130. virtual void DoDataExchange(CDataExchange * pDX);
  131. //}}AFX_VIRTUAL
  132. //
  133. // Implementation
  134. //
  135. protected:
  136. //{{AFX_MSG(CVDWPBindings)
  137. virtual BOOL OnInitDialog();
  138. //}}AFX_MSG
  139. DECLARE_MESSAGE_MAP()
  140. void SetControlStates();
  141. private:
  142. CIISFtpWizSettings * m_pwsSettings;
  143. };
  144. //
  145. // New Virtual Directory Wizard Alias Page
  146. //
  147. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  148. class CVDWPAlias : public CIISWizardPage
  149. {
  150. DECLARE_DYNCREATE(CVDWPAlias)
  151. //
  152. // Construction
  153. //
  154. public:
  155. CVDWPAlias(CIISFtpWizSettings * pwsSettings = NULL);
  156. ~CVDWPAlias();
  157. //
  158. // Dialog Data
  159. //
  160. protected:
  161. //{{AFX_DATA(CVDWPAlias)
  162. enum { IDD = IDD_NEW_DIR_ALIAS };
  163. CEdit m_edit_Alias;
  164. //}}AFX_DATA
  165. //
  166. // Overrides
  167. //
  168. protected:
  169. //{{AFX_VIRTUAL(CVDWPAlias)
  170. public:
  171. virtual BOOL OnSetActive();
  172. virtual LRESULT OnWizardNext();
  173. protected:
  174. virtual void DoDataExchange(CDataExchange * pDX);
  175. //}}AFX_VIRTUAL
  176. //
  177. // Implementation
  178. //
  179. protected:
  180. //{{AFX_MSG(CVDWPAlias)
  181. afx_msg void OnChangeEditAlias();
  182. //}}AFX_MSG
  183. DECLARE_MESSAGE_MAP()
  184. void SetControlStates();
  185. private:
  186. CIISFtpWizSettings * m_pwsSettings;
  187. };
  188. //
  189. // Wizard Path Page
  190. //
  191. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  192. class CVDWPPath : public CIISWizardPage
  193. {
  194. DECLARE_DYNCREATE(CVDWPPath)
  195. //
  196. // Construction
  197. //
  198. public:
  199. CVDWPPath(
  200. IN CIISFtpWizSettings * pwsSettings = NULL,
  201. IN BOOL bVDir = TRUE
  202. );
  203. ~CVDWPPath();
  204. //
  205. // Dialog Data
  206. //
  207. protected:
  208. //{{AFX_DATA(CVDWPPath)
  209. enum { IDD = -1 };
  210. CEdit m_edit_Path;
  211. CButton m_button_Browse;
  212. //}}AFX_DATA
  213. //
  214. // Overrides
  215. //
  216. protected:
  217. //{{AFX_VIRTUAL(CVDWPPath)
  218. public:
  219. virtual BOOL OnSetActive();
  220. virtual LRESULT OnWizardNext();
  221. protected:
  222. virtual void DoDataExchange(CDataExchange * pDX);
  223. //}}AFX_VIRTUAL
  224. //
  225. // Implementation
  226. //
  227. protected:
  228. //{{AFX_MSG(CVDWPPath)
  229. afx_msg void OnChangeEditPath();
  230. afx_msg void OnButtonBrowse();
  231. virtual BOOL OnInitDialog();
  232. //}}AFX_MSG
  233. DECLARE_MESSAGE_MAP()
  234. void SetControlStates();
  235. private:
  236. CIISFtpWizSettings * m_pwsSettings;
  237. };
  238. //
  239. // Wizard User/Password Page
  240. //
  241. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  242. class CVDWPUserName : public CIISWizardPage
  243. {
  244. DECLARE_DYNCREATE(CVDWPUserName)
  245. //
  246. // Construction
  247. //
  248. public:
  249. CVDWPUserName(
  250. IN CIISFtpWizSettings * pwsSettings = NULL,
  251. IN BOOL bVDir = TRUE
  252. );
  253. ~CVDWPUserName();
  254. //
  255. // Dialog Data
  256. //
  257. protected:
  258. //{{AFX_DATA(CVDWPUserName)
  259. enum { IDD = IDD_NEW_USER_PASSWORD };
  260. CEdit m_edit_Password;
  261. CEdit m_edit_UserName;
  262. //}}AFX_DATA
  263. //
  264. // Overrides
  265. //
  266. protected:
  267. //{{AFX_VIRTUAL(CVDWPUserName)
  268. public:
  269. virtual BOOL OnSetActive();
  270. virtual LRESULT OnWizardNext();
  271. protected:
  272. virtual void DoDataExchange(CDataExchange * pDX);
  273. //}}AFX_VIRTUAL
  274. //
  275. // Implementation
  276. //
  277. protected:
  278. //{{AFX_MSG(CVDWPUserName)
  279. virtual BOOL OnInitDialog();
  280. afx_msg void OnButtonBrowseUsers();
  281. afx_msg void OnChangeEditUsername();
  282. afx_msg void OnButtonCheckPassword();
  283. //}}AFX_MSG
  284. DECLARE_MESSAGE_MAP()
  285. void SetControlStates();
  286. private:
  287. CIISFtpWizSettings * m_pwsSettings;
  288. };
  289. //
  290. // Wizard Permissions Page
  291. //
  292. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  293. class CVDWPPermissions : public CIISWizardPage
  294. {
  295. DECLARE_DYNCREATE(CVDWPPermissions)
  296. //
  297. // Construction
  298. //
  299. public:
  300. CVDWPPermissions(
  301. IN CIISFtpWizSettings * pwsSettings = NULL,
  302. IN BOOL bVDir = TRUE
  303. );
  304. ~CVDWPPermissions();
  305. //
  306. // Dialog Data
  307. //
  308. protected:
  309. //{{AFX_DATA(CVDWPPermissions)
  310. enum { IDD = IDD_NEW_PERMS };
  311. //}}AFX_DATA
  312. //
  313. // Overrides
  314. //
  315. protected:
  316. //{{AFX_VIRTUAL(CVDWPPermissions)
  317. public:
  318. virtual BOOL OnSetActive();
  319. virtual LRESULT OnWizardNext();
  320. protected:
  321. virtual void DoDataExchange(CDataExchange * pDX);
  322. //}}AFX_VIRTUAL
  323. //
  324. // Implementation
  325. //
  326. protected:
  327. //{{AFX_MSG(CVDWPPermissions)
  328. //}}AFX_MSG
  329. DECLARE_MESSAGE_MAP()
  330. void SetControlStates();
  331. private:
  332. CIISFtpWizSettings * m_pwsSettings;
  333. BOOL m_bVDir;
  334. };
  335. #endif // __FTP_WIZ_H__