-
Notifications
You must be signed in to change notification settings - Fork 1
/
FtpTransferDialog.h
66 lines (53 loc) · 1.88 KB
/
FtpTransferDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#if !defined(AFX_FTPTRANSFERDIALOG_H__C979611F_0310_4951_B9CF_F82BD3DE99F1__INCLUDED_)
#define AFX_FTPTRANSFERDIALOG_H__C979611F_0310_4951_B9CF_F82BD3DE99F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FtpTransferDialog.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFtpTransferDialog dialog
class CFtpTransferDialog : public CDialog
{
// Construction
public:
CFtpTransferDialog(BOOL bDownload, CFtpAccount & rAccount, LPCTSTR lpszRemoteFile, LPCTSTR lpszLocalFile, DWORD dwFileSize, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CFtpTransferDialog)
enum { IDD = IDD_FTP_TRANSFER };
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFtpTransferDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
static BOOL m_bDownload;
static CFtpAccount m_clsFtpAccount;
static CString m_szRemoteFile;
static CString m_szLocalFile;
static DWORD m_dwFileSize;
static BOOL m_bTransferCanceledByUser;
static BOOL m_bTransferCompleted;
static CFtpTransferDialog * m_pActiveDialog;
static CProgressCtrl * m_pActiveProgressCtrl;
static CWinThread * m_pRunningWinThread;
public:
static BOOL IsTransferCompleted() { return m_bTransferCompleted; }
protected:
static UINT TransferThreadMain(LPVOID pParam);
static BOOL TransferProgress(UINT nTotalRead);
protected:
// Generated message map functions
//{{AFX_MSG(CFtpTransferDialog)
virtual BOOL OnInitDialog();
virtual void OnCancel();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FTPTRANSFERDIALOG_H__C979611F_0310_4951_B9CF_F82BD3DE99F1__INCLUDED_)