forked from svn2github/FDM
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CreateBatchDownload.h
125 lines (92 loc) · 2.78 KB
/
CreateBatchDownload.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#if !defined(AFX_CREATEBATCHDOWNLOAD_H__FB47F1B8_CAF4_49A0_AA5C_265C287F6373__INCLUDED_)
#define AFX_CREATEBATCHDOWNLOAD_H__FB47F1B8_CAF4_49A0_AA5C_265C287F6373__INCLUDED_
#include "fsScheduleMgr.h"
#include "fsDownloadsMgr.h"
#include "DownloadsGroupsComboBox.h"
#if _MSC_VER > 1000
#pragma once
#endif
#include "vmsBatchList.h"
class CCreateBatchDownload : public CDialog
{
public:
fsScheduleEx m_schScheduleParam;
CCreateBatchDownload(CWnd* pParent = NULL);
//{{AFX_DATA(CCreateBatchDownload)
enum { IDD = IDD_CREATEBATCHDOWNLOAD };
CButton m_btnOutFolderSetDefault;
CComboBox m_wndZ;
CComboBox m_wndA;
CDownloadsGroupsComboBox m_wndGroups;
CButton m_btnSetTime;
CButton m_btnCreateGroup;
CButton m_btnChooseFolder;
//}}AFX_DATA
//{{AFX_VIRTUAL(CCreateBatchDownload)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
vmsBatchList m_bl, m_blSaveAs;
bool m_bBLParametersChanged;
void FillZ();
void FreeDownloads();
static DWORD WINAPI _threadCalculateSize (LPVOID lp);
static DWORD WINAPI _threadCalcSize (LPVOID lp);
DLDS_LIST* GenerateDownloads();
void GenerateAndAddDownloads();
BOOL ReadAuth();
BOOL CheckUrl();
void WrongUrl();
BOOL BuildBatchList();
int m_iAlphaFrom, m_iAlphaTo;
void PrepareCHMgr (CPoint point);
BOOL m_bScheduled;
BOOL m_bAuthorization;
vmsDownloadSmartPtr m_dld;
int m_iAutostart;
void ApplyLanguage();
void ReadAutostart();
void UrlChanged();
void Update_User_Password();
void UpdateEnabled();
BOOL m_bGroupChanged, m_bAuthChanged;
void OnChangeGroups();
CString m_strUrl;
DLDS_LIST* m_pvDownloads;
//{{AFX_MSG(CCreateBatchDownload)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeGroups();
afx_msg void OnEditchangeUrl();
afx_msg void OnSelchangeUrl();
afx_msg void OnUselogin();
afx_msg void OnChangeUser();
afx_msg void OnChangePassword();
afx_msg void OnStartnow();
afx_msg void OnStartmanual();
afx_msg void OnStartschedule();
afx_msg void OnCreategroup();
afx_msg void OnChoosefolder();
afx_msg void OnSettime();
afx_msg void OnAdvanced();
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
afx_msg void OnWhatisthis();
afx_msg void OnResults();
virtual void OnOK();
afx_msg void OnQuerysize();
virtual void OnCancel();
afx_msg void OnSelchangeA();
afx_msg void OnSelchangeZ();
afx_msg void OnChangeNumbers();
afx_msg void OnSetnumbers();
afx_msg void OnFileauto();
afx_msg void OnOutfolderSetdefault();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
#endif