-
Notifications
You must be signed in to change notification settings - Fork 29
/
CreateTPDownloadDlg.h
109 lines (75 loc) · 2.54 KB
/
CreateTPDownloadDlg.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#if !defined(AFX_CREATETPDOWNLOADDLG_H__03F2DDF0_42A2_447A_A6F5_59C47F718201__INCLUDED_)
#define AFX_CREATETPDOWNLOADDLG_H__03F2DDF0_42A2_447A_A6F5_59C47F718201__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "DownloadsGroupsComboBox.h"
#define ID_DLNOTADDED (IDCANCEL+100)
class CCreateTPDownloadDlg : public CDialog
{
public:
static BOOL _CheckFolderName(CDialog *pdlg, UINT nIdCtrl);
static BOOL _CheckFileName (CDialog* pdlg, UINT nIdCtrl);
static BOOL _SetDownloadOutputFolderAsDefault (CWnd* pwndParent, LPCTSTR pszFolder, vmsDownloadsGroupSmartPtr pGroup);
bool m_bPlaceAtTop;
vmsDownloadsGroupSmartPtr m_pGroup;
static fsSiteInfo* _SavePassword(LPCSTR pszServer, fsNetworkProtocol np, LPCSTR pszUser, LPCSTR pszPwd);
int _CheckDownloadAlrExists (vmsDownloadSmartPtr dld, BOOL bNeedTopMost = FALSE, BOOL bShowUI = TRUE);
BOOL m_bReqTopMostDialog;
fsScheduleEx m_schScheduleParam;
CString m_strUrl;
CString m_strOutFolder;
CString m_strFileName;
int m_nStreamingSpeed;
CCreateTPDownloadDlg(vmsDownloadSmartPtr dld, CWnd* pParent = NULL);
fsInternetResult Crack(LPCTSTR pszUrl);
//{{AFX_DATA(CCreateDownloadDlg)
enum { IDD = IDD_CREATETPDOWNLOAD };
CButton m_btnOutFolderSetDefault;
CComboBox m_wndDldType;
CButton m_btnCreateGroup;
CButton m_btnChooseFolder;
CSpinButtonCtrl m_wndSpin;
//}}AFX_DATA
//{{AFX_VIRTUAL(CCreateDownloadDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
BOOL m_bUrlChanged;
void ApplyLanguage();
void OnChangeGroups();
BOOL m_bGroupChanged;
BOOL m_bAuthChanged;
void UrlChanged();
void WrongURL();
CDownloadsGroupsComboBox m_wndGroups;
vmsDownloadSmartPtr m_dld;
void UpdateEnabled();
BOOL m_bSetSaveAs;
volatile BOOL m_bNeedExit;
volatile BOOL m_bThread;
static DWORD WINAPI _threadQSize (LPVOID lp);
//{{AFX_MSG(CCreateDownloadDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeGroups();
afx_msg void OnCreategroup();
afx_msg void OnChoosefolder();
afx_msg void OnOutfolderSetdefault();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnEditchangeUrl();
afx_msg void OnSelchangeUrl();
afx_msg void OnOk();
afx_msg void OnSelchangeDldtype();
afx_msg void OnCancel();
afx_msg void OnChangeSaveas();
afx_msg void OnFileauto();
afx_msg void OnQsize();
};
//{{AFX_INSERT_LOCATION}}
#endif