00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_CREATEBATCHDOWNLOAD_H__FB47F1B8_CAF4_49A0_AA5C_265C287F6373__INCLUDED_) 00007 #define AFX_CREATEBATCHDOWNLOAD_H__FB47F1B8_CAF4_49A0_AA5C_265C287F6373__INCLUDED_ 00008 00009 #include "fsScheduleMgr.h" 00010 #include "fsDownloadsMgr.h" 00011 #include "DownloadsGroupsComboBox.h" 00012 #if _MSC_VER > 1000 00013 #pragma once 00014 #endif 00015 00016 #include "vmsBatchList.h" 00017 00018 class CCreateBatchDownload : public CDialog 00019 { 00020 00021 public: 00022 fsSchedule m_task; 00023 CCreateBatchDownload(CWnd* pParent = NULL); 00024 00025 //{{AFX_DATA(CCreateBatchDownload) 00026 enum { IDD = IDD_CREATEBATCHDOWNLOAD }; 00027 CButton m_btnOutFolderSetDefault; 00028 CComboBox m_wndZ; 00029 CComboBox m_wndA; 00030 CDownloadsGroupsComboBox m_wndGroups; 00031 CButton m_btnSetTime; 00032 CButton m_btnCreateGroup; 00033 CButton m_btnChooseFolder; 00034 //}}AFX_DATA 00035 00036 00037 //{{AFX_VIRTUAL(CCreateBatchDownload) 00038 protected: 00039 virtual void DoDataExchange(CDataExchange* pDX); 00040 //}}AFX_VIRTUAL 00041 00042 protected: 00043 00044 vmsBatchList m_bl, m_blSaveAs; 00045 00046 bool m_bBLParametersChanged; 00047 00048 00049 void FillZ(); 00050 00051 void FreeDownloads(); 00052 00053 static DWORD WINAPI _threadCalculateSize (LPVOID lp); 00054 static DWORD WINAPI _threadCalcSize (LPVOID lp); 00055 00056 00057 DLDS_LIST* GenerateDownloads(); 00058 00059 void GenerateAndAddDownloads(); 00060 00061 BOOL ReadAuth(); 00062 00063 BOOL CheckUrl(); 00064 00065 void WrongUrl(); 00066 00067 BOOL BuildBatchList(); 00068 int m_iAlphaFrom, m_iAlphaTo; 00069 void PrepareCHMgr (CPoint point); 00070 BOOL m_bScheduled; 00071 BOOL m_bAuthorization; 00072 vmsDownloadSmartPtr m_dld; 00073 int m_iAutostart; 00074 void ApplyLanguage(); 00075 00076 void ReadAutostart(); 00077 00078 void UrlChanged(); 00079 00080 void Update_User_Password(); 00081 00082 void UpdateEnabled(); 00083 BOOL m_bGroupChanged, m_bAuthChanged; 00084 00085 00086 void OnChangeGroups(); 00087 CString m_strUrl; 00088 DLDS_LIST* m_pvDownloads; 00089 00090 00091 //{{AFX_MSG(CCreateBatchDownload) 00092 virtual BOOL OnInitDialog(); 00093 afx_msg void OnSelchangeGroups(); 00094 afx_msg void OnEditchangeUrl(); 00095 afx_msg void OnSelchangeUrl(); 00096 afx_msg void OnUselogin(); 00097 afx_msg void OnChangeUser(); 00098 afx_msg void OnChangePassword(); 00099 afx_msg void OnStartnow(); 00100 afx_msg void OnStartmanual(); 00101 afx_msg void OnStartschedule(); 00102 afx_msg void OnCreategroup(); 00103 afx_msg void OnChoosefolder(); 00104 afx_msg void OnSettime(); 00105 afx_msg void OnAdvanced(); 00106 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 00107 afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 00108 afx_msg void OnWhatisthis(); 00109 afx_msg void OnResults(); 00110 virtual void OnOK(); 00111 afx_msg void OnQuerysize(); 00112 virtual void OnCancel(); 00113 afx_msg void OnSelchangeA(); 00114 afx_msg void OnSelchangeZ(); 00115 afx_msg void OnChangeNumbers(); 00116 afx_msg void OnSetnumbers(); 00117 afx_msg void OnFileauto(); 00118 afx_msg void OnOutfolderSetdefault(); 00119 //}}AFX_MSG 00120 DECLARE_MESSAGE_MAP() 00121 }; 00122 00123 //{{AFX_INSERT_LOCATION}//}} 00124 00125 #endif
1.5.6