FtpConnectDlg.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
源码类别:

网格计算

开发平台:

Visual C++

  1. // FtpConnectDlg.h : header file
  2. #ifndef _FTPCONNECT_DLG_H
  3. #define _FTPCONNECT_DLG_H
  4. #include "FtpPublic.h"
  5. #include "..publicInfoTopicBar.h"
  6. class CFtpConnectDlg : public CDialog
  7. {
  8. // Construction
  9. public:
  10. CFtpConnectDlg(CWnd* pParent = NULL);   // standard constructor
  11. public:
  12. // Dialog Data
  13. //{{AFX_DATA(CFtpConnectDlg)
  14. enum { IDD = IDD_FTPCONNECT };
  15. BOOL m_bPASVMode; //PASV-Mode flag.
  16. BOOL m_bAnonymous; //Anonymous-Mode flag.
  17. CString m_sProfile; //profile name
  18. CString m_sHost; //ftp server host name.
  19. CString m_sUser; //user name.
  20. CString m_sPassword; //user password.
  21. CString m_sDowntoDir; //downloading dest dir.
  22. CString m_sDescription; //profile's description.
  23. CInfoTopicBar m_oTipInfoCtrl; //tip info control.
  24. CListBox m_oFtpSites; //ftp sites list control.
  25. BOOL m_bUseDefPort;
  26. UINT m_nPort;
  27. //}}AFX_DATA
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CFtpConnectDlg)
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. protected:
  36. // Generated message map functions
  37. //{{AFX_MSG(CFtpConnectDlg)
  38. virtual BOOL OnInitDialog();
  39. afx_msg void OnAddFtpSIte();
  40. afx_msg void OnRemoveFtpSite();
  41. afx_msg void OnConnect();
  42. afx_msg void OnSelchangeListsites();
  43. afx_msg void OnChkanonymous();
  44. afx_msg void OnSelectDowntoDir();
  45. afx_msg void OnChkusedefport();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. private:
  49. //trim left or right space char.
  50. CString& Trim(CString &strText);
  51. //clear UI contents.
  52. void ClearUIContents(void);
  53. //fill UI contents.
  54. void FillUIContents(CFtpSite &oFtpSite);
  55. //make ftp setting information from GUI.
  56. void MakeCurFtpSiteInfo(CFtpSite &oFtpSite);
  57. };
  58. #endif // !_FTPCONNECT_DLG_H