#include "stdafx.h"#include "list.h"#include "DownloadsWnd.h"#include "downloadproperties.h"#include "fsDownloadMgr.h"#include "system.h"Go to the source code of this file.
Typedefs | |
| typedef ULONGLONG * | LPULONGLONG |
Functions | |
| void | DrawVerticalFrame (HDC hdc, int xStart, int xEnd, int yStart, int height) |
| void | DrawHorizontalFrame (HDC hdc, int yStart, int yEnd, int xStart, int width) |
| void | BytesToXBytes (UINT64 uBytes, float *pfXBytes, LPSTR pszXVal) |
| CString | BytesToString (UINT64 uSize) |
| void | SystemTimeToStr (SYSTEMTIME *time, LPSTR pszDate, LPSTR pszTime, BOOL bSeconds) |
| void | FileTimeToStr (FILETIME *time, LPSTR pszDate, LPSTR pszTime, BOOL bSeconds) |
| BOOL | fsErrorToStr (LPSTR pszErr, DWORD dwMaxSize, DWORD *pdwLastError) |
| void | fsGetPath (LPCSTR pszFile, LPSTR pszPath) |
| void | fsGetFileName (LPCSTR pszFilePath, LPSTR pszFileName) |
| BOOL | fsBuildPathToFile (LPCSTR pszFileName) |
| BOOL | fsBuildPathToFileW (LPCWSTR pwszFileName) |
| BOOL | DPEntry_IsAllEqual (DLDS_LIST *pv, int offset, int size, BOOL bString) |
| BOOL | DNPEntry_IsAllEqual (DLDS_LIST *pv, int offset, int size, BOOL bString) |
| BOOL | DPEntry_IsAllEqual_BitMask (DLDS_LIST *pv, int offset, DWORD dwBitMask) |
| void | DPEntry_SetValue (DLDS_LIST *pv, int offset, int size, BOOL bString, const void *lpNewVal) |
| void | DPEntry_SetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask) |
| void | DPEntry_UnsetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask) |
| void | DNPEntry_SetValue (DLDS_LIST *pv, int offset, int size, BOOL bString, const void *lpNewVal) |
| BOOL | DNPEntry_IsAllEqual_BitMask (DLDS_LIST *pv, int offset, DWORD dwBitMask) |
| void | DNPEntry_SetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask) |
| void | DNPEntry_UnsetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask) |
| LPCSTR | strcmp_m (LPCSTR pszWhere, LPCSTR pszWhat) |
| LPCSTR | strcmpi_m (LPCSTR pszWhere, LPCSTR pszWhat) |
| BOOL | IsExtStrEq (LPCSTR pszMasked, LPCSTR psz2) |
| BOOL | IsExtInExtsStr (LPCSTR pszExts, LPCSTR pszExt) |
| BOOL | fsSaveStrToFile (LPCSTR pszStr, HANDLE hFile) |
| BOOL | fsReadStrFromFile (LPSTR *ppszStr, HANDLE hFile) |
| BOOL | fsReadStringFromFile (HANDLE hFile, fsString &str) |
| DWORD | fsGetTimeDelta (FILETIME *t1, FILETIME *t2) |
| DWORD | fsGetTimeDelta (const SYSTEMTIME *t1, const SYSTEMTIME *t2) |
| CString | fsTimeInSecondsToStr (DWORD dwAmount) |
| void | fsPathToGoodPath (LPSTR pszPath) |
| void | fsPathToGoodUrlPath (LPSTR pszPath) |
| void | fsOpenBuyPage () |
| CString | fsBytesToStr (UINT64 uBytes) |
| CString | fsGetGrpOTHEROutFolder () |
| void | vmsUtf8ToAscii (LPSTR psz) |
| std::wstring | vmsUtf8Unicode (LPCSTR psz) |
Variables | |
| CDownloadsWnd * | _pwndDownloads |
| typedef ULONGLONG* LPULONGLONG |
| CString BytesToString | ( | UINT64 | uSize | ) |
Definition at line 105 of file misc.cpp.
References BytesToXBytes(), FALSE, fsBytesToStr(), CDownloadsWnd::IsSizesInBytes(), and NULL.
Referenced by CDlgExportHistory::ExportHistory(), CDownloads_Tasks::GetDownloadText(), CDlg_Unpack_AskOverwrite::GetFileInfoString(), CDownloads_Bittorrent_Files::OnGetdispinfo(), CMainFrame::OnUpdateTotalSpeed(), CMainFrame::OnUpdateTrafficThisMonth(), CDownloads_Bittorrent_Files::set_ActiveDownload(), CDownloads_Bittorrent_Peers::UpdatePeersDetails(), CDownloads_Bittorrent_General::UpdateStat(), CDownloads_Bittorrent_General::UpdateUploadStat(), and CDownloads_Bittorrent_General::UpdateWastedStat().
| void BytesToXBytes | ( | UINT64 | uBytes, | |
| float * | pfXBytes, | |||
| LPSTR | pszXVal | |||
| ) |
Definition at line 81 of file misc.cpp.
References L_B, L_KB, L_MB, and LS.
Referenced by CCreateDownloadListDlg::_threadCalculateSize(), CCreateBatchDownload::_threadCalculateSize(), CCreateDownloadDlg::_threadQSize(), BytesToString(), CDownloads_Tasks::GetDownloadText(), CUpdateDlg::OnTimer(), CDlgVidMan::Update(), CDownloads_Deleted::UpdateDownload(), CFloatingInfoWnd::UpdateDownloadSpeed(), CHFE_FileList::UpdateList(), and CDownloads_History::UpdateRecord().
| BOOL DNPEntry_IsAllEqual | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| int | size, | |||
| BOOL | bString | |||
| ) |
| BOOL DNPEntry_IsAllEqual_BitMask | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| DWORD | dwBitMask | |||
| ) |
| void DNPEntry_SetValue | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| int | size, | |||
| BOOL | bString, | |||
| const void * | lpNewVal | |||
| ) |
| void DNPEntry_SetValue_BitMask | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| DWORD | dwMask | |||
| ) |
| void DNPEntry_UnsetValue_BitMask | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| DWORD | dwMask | |||
| ) |
| BOOL DPEntry_IsAllEqual | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| int | size, | |||
| BOOL | bString | |||
| ) |
| BOOL DPEntry_IsAllEqual_BitMask | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| DWORD | dwBitMask | |||
| ) |
| void DPEntry_SetValue | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| int | size, | |||
| BOOL | bString, | |||
| const void * | lpNewVal | |||
| ) |
| void DPEntry_SetValue_BitMask | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| DWORD | dwMask | |||
| ) |
| void DPEntry_UnsetValue_BitMask | ( | DLDS_LIST * | pv, | |
| int | offset, | |||
| DWORD | dwMask | |||
| ) |
| void DrawHorizontalFrame | ( | HDC | hdc, | |
| int | yStart, | |||
| int | yEnd, | |||
| int | xStart, | |||
| int | width | |||
| ) |
| void DrawVerticalFrame | ( | HDC | hdc, | |
| int | xStart, | |||
| int | xEnd, | |||
| int | yStart, | |||
| int | height | |||
| ) |
Definition at line 137 of file misc.cpp.
References simple_client::s, and SystemTimeToStr().
Referenced by fsDownloadsMgr::GenerateDescriptionFile(), CDownloads_Tasks::GetDownloadText(), CDlgExportHistory::TimeToStr(), and CDownloads_History::UpdateRecord().
| BOOL fsBuildPathToFile | ( | LPCSTR | pszFileName | ) |
Definition at line 225 of file misc.cpp.
References FALSE, fsGetPath(), GetLastError(), MY_MAX_PATH, NULL, and TRUE.
Referenced by CDlg_MakePortableVer::_threadCreatePortableVer(), vmsFirefoxExtensionInstaller::Do(), fsGetDataFilePath(), vms7zipArchiveExtractCallback::GetStream(), fsDownloadMgr::InitFile(), CFdmApp::InitInstance(), fsDownloadMgr::MoveFile(), and vms7zipArchiveExtractCallback::vms7zipArchiveExtractCallback().
| BOOL fsBuildPathToFileW | ( | LPCWSTR | pwszFileName | ) |
Definition at line 279 of file misc.cpp.
References MY_MAX_PATH, NULL, and TRUE.
Referenced by vmsBtDownloadManager::MoveToFolder().
| CString fsBytesToStr | ( | UINT64 | uBytes | ) |
Definition at line 703 of file misc.cpp.
Referenced by CCreateDownloadListDlg::_threadCalculateSize(), CCreateBatchDownload::_threadCalculateSize(), CCreateDownloadDlg::_threadQSize(), BytesToString(), CDownloads_Tasks::GetDownloadText(), CDownloads_Deleted::UpdateDownload(), CHFE_FileList::UpdateList(), and CDownloads_History::UpdateRecord().
| BOOL fsErrorToStr | ( | LPSTR | pszErr, | |
| DWORD | dwMaxSize, | |||
| DWORD * | pdwLastError | |||
| ) |
Definition at line 144 of file misc.cpp.
References FALSE, GetLastError(), L_ACCDENIED, L_ALREXISTS, L_BADEXE, L_BADFILENAME, L_DEVNOTREADY, L_DISKFULL, L_FILEINUSE, L_FILENOTFOUND, L_INVALIDDIRNAME, L_PATHNOTFOUND, L_UNKERR, LS, and TRUE.
Referenced by fsDownloadsMgr::_BtDownloadManagerEventHandler(), fsDownloadMgr::_DownloaderEvents(), fsDownloadMgr::DescribeAPIError(), fsScheduleMgr::LaunchProgram(), CDownloadProperties_GeneralPage::OnApply(), CDownloads_VideoPreview::OpenFile(), and fsDownloadsMgr::PerformVirusCheck().
Definition at line 218 of file misc.cpp.
References fsGetPath(), and MY_MAX_PATH.
Referenced by fsDownloadsMgr::_threadIntegrityCheckAndVirCheckAndLaunch(), vms7zipArchive::Extract(), fsFileNameFromUrlPath(), fsWebPageDownloader::GetFileForReplace(), CDownloads_Tasks::GetFileName(), fsWebPageDownloader::GetPtrToFile(), fsDownloadsMgr::LaunchDownload(), fsDownloadsMgr::LoadStateInformation(), fsDownloadMgr::MoveToFolder(), CDownloads_Tasks::OnDldcheckintegrity(), fsDownloadsMgr::OnDownloadStoppedOrDone(), CDlg_Unpack_AskOverwrite::OnInitDialog(), fsDownloadsMgr::PerformVirusCheck(), and fsDownloadMgr::RenameFile().
| CString fsGetGrpOTHEROutFolder | ( | ) |
Definition at line 744 of file misc.cpp.
References _DldsGrps, vmsDownloadsGroupsMgr::FindGroup(), and GRP_OTHER_ID.
Definition at line 206 of file misc.cpp.
Referenced by fsWebPageDownloader::AddPage(), vmsDownloadMgrEx::Do_OpenFolder(), fsBuildPathToFile(), fsGetFileName(), fsWebPageDownloader::GetPtrToFile(), CFdmApp::InitInstance(), CBtDld_General::OnChoosefolder(), fsDownloadsMgr::OnDldDone_CheckDownloadIsBittorrent(), CDownloads_History::OnOpenfolder(), and fsDownloadMgr::ProcessFilePathMacroses().
| DWORD fsGetTimeDelta | ( | const SYSTEMTIME * | t1, | |
| const SYSTEMTIME * | t2 | |||
| ) |
Definition at line 643 of file misc.cpp.
Referenced by CMainFrame::_threadUpdate(), fsGetTimeDelta(), fsScheduleMgr::ManageHalfEvents(), and CMainFrame::ShowSpreadHelpDialogIfRequired().
| void fsOpenBuyPage | ( | ) |
Definition at line 687 of file misc.cpp.
References _LngMgr, fsOpenUrlInBrowser(), fsLangMgr::GetCurLng(), and fsLangMgr::GetLngName().
Referenced by CMainFrame::OnBuyonline(), and CEnterKeyDlg::OnGetkey().
| void fsPathToGoodPath | ( | LPSTR | pszPath | ) |
Definition at line 669 of file misc.cpp.
References LPSTR.
Referenced by fsWebPageDownloader::AddPage(), CSpiderAddPageDlg::OnOK(), CGroupDlg::OnOK(), CCreateDownloadsDlg::OnOK(), CCreateDownloadListDlg::OnOK(), CCreateDownloadFromTorrentFileDlg::OnOK(), CCreateDownloadDlg::OnOK(), and CCreateBatchDownload::OnOK().
| void fsPathToGoodUrlPath | ( | LPSTR | pszPath | ) |
Definition at line 677 of file misc.cpp.
References LPSTR.
Referenced by fsWebPageDownloader::GetFileForReplace().
| BOOL fsReadStrFromFile | ( | LPSTR * | ppszStr, | |
| HANDLE | hFile | |||
| ) |
Definition at line 606 of file misc.cpp.
References FALSE, fsnew, NULL, and TRUE.
Referenced by fsReadStringFromFile(), vmsStringList::Load(), vmsFileRecentList::Load(), fsWebPageDownloader::Load(), fsEventsMgr::Load(), fsWebPageDownloader::Load_OLD(), fsSitesMgr::LoadFromFile(), fsDownloadsHistoryMgr::LoadHistory(), vmsMediaConvertMgr::LoadState(), fsScheduleMgr::LoadStateFromFile(), fsCmdHistoryMgr::ReadFromFile(), and vmsFDM::vmsFile::ReadString().
| BOOL fsReadStringFromFile | ( | HANDLE | hFile, | |
| fsString & | str | |||
| ) |
Definition at line 635 of file misc.cpp.
References fsReadStrFromFile(), fsString::pszString, and SAFE_DELETE_ARRAY.
Referenced by vmsDownloadsGroupsMgr::LoadGroupFromFile().
| BOOL fsSaveStrToFile | ( | LPCSTR | pszStr, | |
| HANDLE | hFile | |||
| ) |
Definition at line 586 of file misc.cpp.
References FALSE, NULL, and TRUE.
Referenced by vmsStringList::Save(), vmsFileRecentList::Save(), fsWebPageDownloader::Save(), fsEventsMgr::Save(), vmsDownloadsGroupsMgr::SaveGroupToFile(), fsDownloadsHistoryMgr::SaveHistory(), vmsMediaConvertMgr::SaveState(), fsScheduleMgr::SaveStateToFile(), fsSitesMgr::SaveToFile(), fsCmdHistoryMgr::SaveToFile(), and vmsFDM::vmsFile::WriteString().
| CString fsTimeInSecondsToStr | ( | DWORD | dwAmount | ) |
Definition at line 656 of file misc.cpp.
Referenced by CDownloads_Tasks::GetDownloadText(), and CUpdateDlg::OnTimer().
Definition at line 123 of file misc.cpp.
References NULL.
Referenced by CWndLog::AddRecord(), CDownloads_Log::AddRecord(), FileTimeToStr(), CDlg_Unpack_AskOverwrite::GetFileInfoString(), fsScheduleMgr::LastTimeToStr(), fsScheduleMgr::NextTimeToStr(), CWndLog::OnCopyToCb(), CDownloads_Log::OnCopyToCb(), and CHFE_FileList::UpdateList().
| void vmsUtf8ToAscii | ( | LPSTR | psz | ) |
Definition at line 750 of file misc.cpp.
Referenced by vmsBtDownloadManager::get_FileName(), vmsBtDownloadManager::get_TorrentComment(), and vmsBtDownloadManager::get_TorrentName().
| std::wstring vmsUtf8Unicode | ( | LPCSTR | psz | ) |
Definition at line 41 of file DownloadsWnd.cpp.
1.5.6