FtpConnectDlg.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
- // FtpConnectDlg.h : header file
- #ifndef _FTPCONNECT_DLG_H
- #define _FTPCONNECT_DLG_H
- #include "FtpPublic.h"
- #include "..publicInfoTopicBar.h"
- class CFtpConnectDlg : public CDialog
- {
- // Construction
- public:
- CFtpConnectDlg(CWnd* pParent = NULL); // standard constructor
-
- public:
- // Dialog Data
- //{{AFX_DATA(CFtpConnectDlg)
- enum { IDD = IDD_FTPCONNECT };
- BOOL m_bPASVMode; //PASV-Mode flag.
- BOOL m_bAnonymous; //Anonymous-Mode flag.
- CString m_sProfile; //profile name
- CString m_sHost; //ftp server host name.
- CString m_sUser; //user name.
- CString m_sPassword; //user password.
- CString m_sDowntoDir; //downloading dest dir.
- CString m_sDescription; //profile's description.
- CInfoTopicBar m_oTipInfoCtrl; //tip info control.
- CListBox m_oFtpSites; //ftp sites list control.
- BOOL m_bUseDefPort;
- UINT m_nPort;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFtpConnectDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CFtpConnectDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnAddFtpSIte();
- afx_msg void OnRemoveFtpSite();
- afx_msg void OnConnect();
- afx_msg void OnSelchangeListsites();
- afx_msg void OnChkanonymous();
- afx_msg void OnSelectDowntoDir();
- afx_msg void OnChkusedefport();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- //trim left or right space char.
- CString& Trim(CString &strText);
- //clear UI contents.
- void ClearUIContents(void);
- //fill UI contents.
- void FillUIContents(CFtpSite &oFtpSite);
- //make ftp setting information from GUI.
- void MakeCurFtpSiteInfo(CFtpSite &oFtpSite);
- };
- #endif // !_FTPCONNECT_DLG_H