CCreateDownloadDlg Class Reference

#include <CreateDownloadDlg.h>

List of all members.

Public Types

enum  { IDD = IDD_CREATEDOWNLOAD }

Public Member Functions

 CCreateDownloadDlg (vmsDownloadSmartPtr dld, LPCSTR pszStartUrl, LPCSTR pszComment, LPCSTR pszReferer, CWnd *pParent=NULL)

Static Public Member Functions

static BOOL _CheckFolderName (CDialog *pdlg, UINT nIdCtrl)
static BOOL _CheckFileName (CDialog *pdlg, UINT nIdCtrl)
static BOOL _SetDownloadOutputFolderAsDefault (CWnd *pwndParent, LPCSTR pszFolder, vmsDownloadsGroupSmartPtr pGroup)
static fsSiteInfo_SavePassword (vmsDownloadSmartPtr dld)
static fsSiteInfo_SavePassword (LPCSTR pszServer, fsNetworkProtocol np, LPCSTR pszUser, LPCSTR pszPwd)
static int _CheckDownloadAlrExists (vmsDownloadSmartPtr dld, BOOL bNeedTopMost=FALSE, BOOL bShowUI=TRUE)

Public Attributes

LPCSTR m_pszPostData
LPCSTR m_pszCookies
bool m_bPlaceAtTop
bool m_bSetFocusToOKBtn
vmsDownloadsGroupSmartPtr m_pGroup
BOOL m_bReqTopMostDialog
fsSchedule m_task
BOOL m_bScheduled
BOOL m_bAuthorization
CString m_strUrl
CButton m_btnOutFolderSetDefault
CComboBox m_wndDldType
CButton m_btnSetTime
CButton m_btnCreateGroup
CButton m_btnChooseFolder

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
void PrepareCHMgr (CPoint point)
void ReadAutostart ()
void ApplyLanguage ()
void OnChangeGroups ()
void UrlChanged ()
void Update_User_Password ()
BOOL ReadDNP ()
void WrongUserName ()
void WrongURL ()
void UpdateEnabled ()
virtual void OnOK ()
virtual BOOL OnInitDialog ()
afx_msg void OnChangeSaveas ()
afx_msg void OnAuthorization ()
afx_msg void OnSelchangeGroups ()
afx_msg void OnStartnow ()
afx_msg void OnStartmanual ()
afx_msg void OnStartschedule ()
afx_msg void OnCreategroup ()
afx_msg void OnAdvanced ()
afx_msg void OnChoosefolder ()
afx_msg void OnSettime ()
afx_msg void OnEditchangeUrl ()
afx_msg void OnSelchangeUrl ()
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnWhatisthis ()
afx_msg void OnChangeUser ()
afx_msg void OnChangePassword ()
afx_msg BOOL OnHelpInfo (HELPINFO *pHelpInfo)
afx_msg void OnQsize ()
virtual void OnCancel ()
afx_msg void OnFileauto ()
afx_msg void OnMirrors ()
afx_msg void OnSelchangeDldtype ()
afx_msg void OnMalicious ()
afx_msg void OnOutfolderSetdefault ()

Static Protected Member Functions

static DWORD WINAPI _threadQSize (LPVOID lp)

Protected Attributes

BOOL m_bUrlChanged
CString m_strReferer
CString m_strComment
volatile BOOL m_bNeedExit
volatile BOOL m_bThread
int m_iAutostart
BOOL m_bGroupChanged
BOOL m_bAuthChanged
CDownloadsGroupsComboBox m_wndGroups
vmsDownloadSmartPtr m_dld


Detailed Description

Definition at line 19 of file CreateDownloadDlg.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 53 of file CreateDownloadDlg.h.


Constructor & Destructor Documentation

CCreateDownloadDlg::CCreateDownloadDlg ( vmsDownloadSmartPtr  dld,
LPCSTR  pszStartUrl,
LPCSTR  pszComment,
LPCSTR  pszReferer,
CWnd *  pParent = NULL 
)


Member Function Documentation

BOOL CCreateDownloadDlg::_CheckFolderName ( CDialog *  pdlg,
UINT  nIdCtrl 
) [static]

BOOL CCreateDownloadDlg::_CheckFileName ( CDialog *  pdlg,
UINT  nIdCtrl 
) [static]

Definition at line 1191 of file CreateDownloadDlg.cpp.

References FALSE, L_INPERR, L_INVFILENAME, LS, and TRUE.

Referenced by OnOK().

BOOL CCreateDownloadDlg::_SetDownloadOutputFolderAsDefault ( CWnd *  pwndParent,
LPCSTR  pszFolder,
vmsDownloadsGroupSmartPtr  pGroup 
) [static]

fsSiteInfo * CCreateDownloadDlg::_SavePassword ( vmsDownloadSmartPtr  dld  )  [static]

fsSiteInfo * CCreateDownloadDlg::_SavePassword ( LPCSTR  pszServer,
fsNetworkProtocol  np,
LPCSTR  pszUser,
LPCSTR  pszPwd 
) [static]

int CCreateDownloadDlg::_CheckDownloadAlrExists ( vmsDownloadSmartPtr  dld,
BOOL  bNeedTopMost = FALSE,
BOOL  bShowUI = TRUE 
) [static]

void CCreateDownloadDlg::DoDataExchange ( CDataExchange *  pDX  )  [protected, virtual]

DWORD WINAPI CCreateDownloadDlg::_threadQSize ( LPVOID  lp  )  [static, protected]

void CCreateDownloadDlg::PrepareCHMgr ( CPoint  point  )  [protected]

void CCreateDownloadDlg::ReadAutostart (  )  [protected]

void CCreateDownloadDlg::ApplyLanguage (  )  [protected]

void CCreateDownloadDlg::OnChangeGroups (  )  [protected]

void CCreateDownloadDlg::UrlChanged (  )  [protected]

void CCreateDownloadDlg::Update_User_Password (  )  [protected]

BOOL CCreateDownloadDlg::ReadDNP (  )  [protected]

void CCreateDownloadDlg::WrongUserName (  )  [protected]

Definition at line 424 of file CreateDownloadDlg.cpp.

References IDC_USER, L_ENTERUSER, L_INPERR, and LS.

Referenced by ReadDNP().

void CCreateDownloadDlg::WrongURL (  )  [protected]

Definition at line 418 of file CreateDownloadDlg.cpp.

References IDC_URL, L_CHECKURL, L_INPERR, and LS.

Referenced by OnAdvanced(), OnMirrors(), and ReadDNP().

void CCreateDownloadDlg::UpdateEnabled (  )  [protected]

void CCreateDownloadDlg::OnOK (  )  [protected, virtual]

BOOL CCreateDownloadDlg::OnInitDialog (  )  [protected, virtual]

Definition at line 207 of file CreateDownloadDlg.cpp.

References _App, _ClipbrdMgr, _DldsGrps, _DldsMgr, _LastFolders, _LastUrlFiles, fsDownloadsMgr::Apply_MirrParameters(), ApplyLanguage(), fsURL::Crack(), fsURL::Create(), fsSchedule::dwFlags, _FILETIME::dwHighDateTime, _FILETIME::dwLowDateTime, fsWhenToStart::enType, FALSE, CDownloadsGroupsComboBox::Fill(), vmsDownloadsGroupsMgr::FindGroup(), fsSetForegroundWindow(), fsURL::GetHostName(), fsURL::GetInternetScheme(), fsURL::GetPath(), fsURL::GetPort(), fsCmdHistoryMgr::GetRecord(), fsCmdHistoryMgr::GetRecordCount(), fsURL::GetUserName(), fsSchedule::hts, HTS_ONCE, IDC_COMMENT, IDC_FILEAUTO, IDC_OUTFOLDER, IDC_PASSWORD, IDC_STARTNOW, IDC_STARTSCHEDULE, IDC_URL, IDC_USELOGIN, IDC_USER, IDI_CHOOSEFOLDER, IDI_CREATEGROUP, IDI_SETFOLDERDEFAULT, IDI_SETTIME, IR_SUCCESS, L_OPENFILE, L_SAVEFILE, L_SAVEFILEANDOPENIT, fsWhenToStart::last, LOG, LS, m_bAuthChanged, m_bAuthorization, m_bGroupChanged, m_bReqTopMostDialog, m_bSetFocusToOKBtn, m_btnChooseFolder, m_btnCreateGroup, m_btnOutFolderSetDefault, m_btnSetTime, m_dld, m_pGroup, m_strComment, m_strReferer, m_strUrl, m_task, m_wndDldType, m_wndGroups, fsAppSettings::NewDL_GenerateNameAutomatically(), fsAppSettings::NewDL_GroupId(), fsWhenToStart::next, nl, NULL, OnChangeGroups(), OnFileauto(), ReadAutostart(), SAFE_DELETE_ARRAY, SCHEDULE_ENABLED, CDownloadsGroupsComboBox::SelectGroup(), SICO, fsClipboardMgr::Text(), TRUE, Update_User_Password(), UpdateEnabled(), UrlChanged(), fsAppSettings::UserName(), fsAppSettings::UserPassword(), and fsSchedule::uWaitForConfirmation.

void CCreateDownloadDlg::OnChangeSaveas (  )  [protected]

Definition at line 358 of file CreateDownloadDlg.cpp.

void CCreateDownloadDlg::OnAuthorization (  )  [protected]

Definition at line 385 of file CreateDownloadDlg.cpp.

References IDC_USELOGIN, m_bAuthorization, and UpdateEnabled().

void CCreateDownloadDlg::OnSelchangeGroups (  )  [protected]

Definition at line 391 of file CreateDownloadDlg.cpp.

References m_bGroupChanged, OnChangeGroups(), and TRUE.

void CCreateDownloadDlg::OnStartnow (  )  [protected]

Definition at line 397 of file CreateDownloadDlg.cpp.

References FALSE, m_bScheduled, m_dld, m_iAutostart, and TRUE.

void CCreateDownloadDlg::OnStartmanual (  )  [protected]

Definition at line 404 of file CreateDownloadDlg.cpp.

References FALSE, m_bScheduled, m_dld, and m_iAutostart.

void CCreateDownloadDlg::OnStartschedule (  )  [protected]

Definition at line 411 of file CreateDownloadDlg.cpp.

References FALSE, m_bScheduled, m_dld, m_iAutostart, and TRUE.

void CCreateDownloadDlg::OnCreategroup (  )  [protected]

void CCreateDownloadDlg::OnAdvanced (  )  [protected]

void CCreateDownloadDlg::OnChoosefolder (  )  [protected]

void CCreateDownloadDlg::OnSettime (  )  [protected]

void CCreateDownloadDlg::OnEditchangeUrl (  )  [protected]

Definition at line 580 of file CreateDownloadDlg.cpp.

References IDC_URL, m_strUrl, and UrlChanged().

void CCreateDownloadDlg::OnSelchangeUrl (  )  [protected]

Definition at line 586 of file CreateDownloadDlg.cpp.

References IDC_URL, m_strUrl, and UrlChanged().

void CCreateDownloadDlg::OnContextMenu ( CWnd *  pWnd,
CPoint  point 
) [protected]

Definition at line 677 of file CreateDownloadDlg.cpp.

References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().

void CCreateDownloadDlg::OnWhatisthis (  )  [protected]

Definition at line 683 of file CreateDownloadDlg.cpp.

References _CHMgr, and fsContextHelpMgr::OnWT().

void CCreateDownloadDlg::OnChangeUser (  )  [protected]

Definition at line 688 of file CreateDownloadDlg.cpp.

References m_bAuthChanged, and TRUE.

void CCreateDownloadDlg::OnChangePassword (  )  [protected]

Definition at line 693 of file CreateDownloadDlg.cpp.

References m_bAuthChanged, and TRUE.

BOOL CCreateDownloadDlg::OnHelpInfo ( HELPINFO *  pHelpInfo  )  [protected]

Definition at line 759 of file CreateDownloadDlg.cpp.

References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.

void CCreateDownloadDlg::OnQsize (  )  [protected]

void CCreateDownloadDlg::OnCancel (  )  [protected, virtual]

Definition at line 898 of file CreateDownloadDlg.cpp.

References m_bNeedExit, m_bThread, m_dld, and TRUE.

void CCreateDownloadDlg::OnFileauto (  )  [protected]

void CCreateDownloadDlg::OnMirrors (  )  [protected]

void CCreateDownloadDlg::OnSelchangeDldtype (  )  [protected]

Definition at line 1076 of file CreateDownloadDlg.cpp.

References UpdateEnabled().

void CCreateDownloadDlg::OnMalicious (  )  [protected]

void CCreateDownloadDlg::OnOutfolderSetdefault (  )  [protected]


Member Data Documentation

Definition at line 33 of file CreateDownloadDlg.h.

Referenced by CCreateDownloadDlg(), CDownloadsWnd::CreateDownload(), and OnOK().

Definition at line 37 of file CreateDownloadDlg.h.

Referenced by CDownloadsWnd::CreateDownload(), and OnInitDialog().

Definition at line 44 of file CreateDownloadDlg.h.

Referenced by CDownloadsWnd::CreateDownload(), and OnInitDialog().

Definition at line 45 of file CreateDownloadDlg.h.

Referenced by CDownloadsWnd::CreateDownload(), OnInitDialog(), and OnSettime().

Definition at line 54 of file CreateDownloadDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().

Definition at line 55 of file CreateDownloadDlg.h.

Referenced by DoDataExchange(), OnInitDialog(), OnOK(), and UpdateEnabled().

Definition at line 56 of file CreateDownloadDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().

Definition at line 57 of file CreateDownloadDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().

Definition at line 58 of file CreateDownloadDlg.h.

Referenced by DoDataExchange(), and OnInitDialog().

Definition at line 69 of file CreateDownloadDlg.h.

Referenced by OnQsize(), ReadDNP(), and UrlChanged().

CString CCreateDownloadDlg::m_strReferer [protected]

Definition at line 70 of file CreateDownloadDlg.h.

Referenced by CCreateDownloadDlg(), and OnInitDialog().

CString CCreateDownloadDlg::m_strComment [protected]

Definition at line 71 of file CreateDownloadDlg.h.

Referenced by CCreateDownloadDlg(), and OnInitDialog().

volatile BOOL CCreateDownloadDlg::m_bNeedExit [protected]

Definition at line 72 of file CreateDownloadDlg.h.

Referenced by _threadQSize(), CCreateDownloadDlg(), OnCancel(), and OnOK().

volatile BOOL CCreateDownloadDlg::m_bThread [protected]

Definition at line 73 of file CreateDownloadDlg.h.

Referenced by _threadQSize(), CCreateDownloadDlg(), OnCancel(), OnOK(), and OnQsize().

Definition at line 81 of file CreateDownloadDlg.h.

Referenced by OnInitDialog(), OnSelchangeGroups(), and UrlChanged().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:38 2008 by  doxygen 1.5.6