#include <fsFindDownloadMgr.h>
Public Member Functions | |
| BOOL | IsFindNextAvail () |
| BOOL | FindNext () |
| void | PrepareFind () |
| void | ReadSettings () |
| fsFindDownloadMgr () | |
| virtual | ~fsFindDownloadMgr () |
Protected Types | |
| enum | fsFDM_WhereIsIndex { WII_LISTOFDLDS, WII_HISTOFDLDS, WII_DELETED } |
Protected Member Functions | |
| BOOL | IsSatisfies (fsDLHistoryRecord *rec) |
| BOOL | IsSatisfies (vmsDownloadSmartPtr dld) |
| void | FindNext_InDeleted (BOOL *pbCancel, int *piProgress) |
| void | FindNext_InHistoryOfDlds (BOOL *pbCancel, int *piProgress) |
| void | FindNext_InListOfDlds (BOOL *pbCancel, int *piProgress) |
| void | FindNext_imp (BOOL *pbCancel=NULL, int *piProgress=NULL) |
| int | GetElementCount () |
| BOOL | NextFindSource (fsFDM_WhereIsIndex &wi) |
Static Protected Member Functions | |
| static DWORD WINAPI | _threadFindNext (LPVOID lp) |
Protected Attributes | |
| int | m_iIndex |
| fsFDM_WhereIsIndex | m_enWI |
| LPVOID | m_pFoundElement |
| vmsDownloadsGroupSmartPtr | m_pGroup |
| FILETIME | m_tFrom |
| FILETIME | m_tTo |
| UINT64 | m_uFileSizeFrom |
| UINT64 | m_uFileSizeTo |
| DWORD | m_dwFlags |
| fsString | m_strWhat |
Definition at line 27 of file fsFindDownloadMgr.h.
enum fsFindDownloadMgr::fsFDM_WhereIsIndex [protected] |
Definition at line 56 of file fsFindDownloadMgr.h.
| fsFindDownloadMgr::fsFindDownloadMgr | ( | ) |
| fsFindDownloadMgr::~fsFindDownloadMgr | ( | ) | [virtual] |
Definition at line 26 of file fsFindDownloadMgr.cpp.
| BOOL fsFindDownloadMgr::IsFindNextAvail | ( | ) |
Definition at line 366 of file fsFindDownloadMgr.cpp.
References m_iIndex.
Referenced by CDownloadsWnd::IsFindNextAvail().
| BOOL fsFindDownloadMgr::FindNext | ( | ) |
Definition at line 63 of file fsFindDownloadMgr.cpp.
References _threadFindNext(), FALSE, FindNext_imp(), GetElementCount(), L_SEARCHISPERFORMED, LS, m_enWI, m_iIndex, m_pFoundElement, CDownloadsWnd::SelectDeletedDownload(), CDownloadsWnd::SelectDownload(), CDownloadsWnd::SelectHistRecord(), CDownloadsWnd::ShowAllDownloads(), CDownloadsWnd::ShowAllHistory(), CDownloadsWnd::ShowDeletedDownloads(), CWaitDlg::StartWaiting(), TRUE, WII_DELETED, WII_HISTOFDLDS, and WII_LISTOFDLDS.
Referenced by CDownloadsWnd::FindDownloads_FindNext(), and CDownloadsWnd::FindDownloads_Start().
| void fsFindDownloadMgr::PrepareFind | ( | ) |
Definition at line 44 of file fsFindDownloadMgr.cpp.
References m_dwFlags, m_enWI, m_iIndex, ReadSettings(), SEARCHWH_DELETED, SEARCHWH_HISTOFDLDS, SEARCHWH_LISTOFDLDS, WII_DELETED, WII_HISTOFDLDS, and WII_LISTOFDLDS.
Referenced by CDownloadsWnd::FindDownloads_Start().
| void fsFindDownloadMgr::ReadSettings | ( | ) |
Definition at line 31 of file fsFindDownloadMgr.cpp.
References _App, _DldsGrps, fsAppSettings::Find_FileSizeFrom(), fsAppSettings::Find_FileSizeTo(), fsAppSettings::Find_Flags(), fsAppSettings::Find_GroupId(), fsAppSettings::Find_TimeFrom(), fsAppSettings::Find_TimeTo(), fsAppSettings::Find_What(), vmsDownloadsGroupsMgr::FindGroup(), GRP_OTHER_ID, m_dwFlags, m_pGroup, m_strWhat, m_tFrom, m_tTo, m_uFileSizeFrom, m_uFileSizeTo, and NULL.
Referenced by PrepareFind().
| BOOL fsFindDownloadMgr::IsSatisfies | ( | fsDLHistoryRecord * | rec | ) | [protected] |
Definition at line 327 of file fsFindDownloadMgr.cpp.
References FALSE, fsStrStrNoCase(), fsDldHistRecFilter_Custom::IsSatisfies(), m_dwFlags, m_strWhat, m_tFrom, m_tTo, m_uFileSizeFrom, m_uFileSizeTo, SEARCHIN_COMMENT, SEARCHIN_FILENAME, SEARCHIN_LOCFILENAME, SEARCHIN_URL, SEARCHU_FILESIZE, SEARCHU_TIME, fsDldHistRecFilter_Custom::SetTimeRange(), fsDLHistoryRecord::strComment, fsDLHistoryRecord::strFileName, fsDLHistoryRecord::strSavedTo, fsDLHistoryRecord::strURL, TRUE, and fsDLHistoryRecord::uFileSize.
Referenced by FindNext_InDeleted(), FindNext_InHistoryOfDlds(), and FindNext_InListOfDlds().
| BOOL fsFindDownloadMgr::IsSatisfies | ( | vmsDownloadSmartPtr | dld | ) | [protected] |
Definition at line 276 of file fsFindDownloadMgr.cpp.
References FALSE, fsStrStrNoCase(), CDownloads_Tasks::GetFileName(), m_dwFlags, m_pGroup, m_strWhat, m_uFileSizeTo, SEARCHIN_COMMENT, SEARCHIN_FILENAME, SEARCHIN_LOCFILENAME, SEARCHIN_URL, SEARCHU_DLDGROUP, SEARCHU_FILESIZE, and TRUE.
| void fsFindDownloadMgr::FindNext_InDeleted | ( | BOOL * | pbCancel, | |
| int * | piProgress | |||
| ) | [protected] |
Definition at line 245 of file fsFindDownloadMgr.cpp.
References _DldsMgr, fsDownloadsMgr::Get_DeletedDownload(), fsDownloadsMgr::Get_DeletedDownloadCount(), fsDownloadsMgr::GetCount(), GetElementCount(), fsDownloadsHistoryMgr::GetRecordCount(), IsSatisfies(), m_dwFlags, fsDownloadsMgr::m_histmgr, m_iIndex, m_pFoundElement, SEARCHWH_HISTOFDLDS, and SEARCHWH_LISTOFDLDS.
Referenced by FindNext_imp().
| void fsFindDownloadMgr::FindNext_InHistoryOfDlds | ( | BOOL * | pbCancel, | |
| int * | piProgress | |||
| ) | [protected] |
Definition at line 215 of file fsFindDownloadMgr.cpp.
References _DldsMgr, fsDownloadsMgr::GetCount(), GetElementCount(), fsDownloadsHistoryMgr::GetRecord(), fsDownloadsHistoryMgr::GetRecordCount(), IsSatisfies(), m_dwFlags, fsDownloadsMgr::m_histmgr, m_iIndex, m_pFoundElement, and SEARCHWH_LISTOFDLDS.
Referenced by FindNext_imp().
| void fsFindDownloadMgr::FindNext_InListOfDlds | ( | BOOL * | pbCancel, | |
| int * | piProgress | |||
| ) | [protected] |
Definition at line 190 of file fsFindDownloadMgr.cpp.
References _DldsMgr, fsDownloadsMgr::GetCount(), fsDownloadsMgr::GetDownload(), GetElementCount(), IsSatisfies(), m_iIndex, and m_pFoundElement.
Referenced by FindNext_imp().
| DWORD WINAPI fsFindDownloadMgr::_threadFindNext | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 155 of file fsFindDownloadMgr.cpp.
References ProcWaitInfo::bNeedStop, ProcWaitInfo::bWaitDone, FindNext_imp(), simple_client::info, ProcWaitInfo::iProgress, ProcWaitInfo::lpParam1, and TRUE.
Referenced by FindNext().
| void fsFindDownloadMgr::FindNext_imp | ( | BOOL * | pbCancel = NULL, |
|
| int * | piProgress = NULL | |||
| ) | [protected] |
Definition at line 126 of file fsFindDownloadMgr.cpp.
References FALSE, FindNext_InDeleted(), FindNext_InHistoryOfDlds(), FindNext_InListOfDlds(), m_enWI, m_iIndex, NextFindSource(), WII_DELETED, WII_HISTOFDLDS, and WII_LISTOFDLDS.
Referenced by _threadFindNext(), and FindNext().
| int fsFindDownloadMgr::GetElementCount | ( | ) | [protected] |
Definition at line 110 of file fsFindDownloadMgr.cpp.
References _DldsMgr, fsDownloadsMgr::Get_DeletedDownloadCount(), fsDownloadsMgr::GetCount(), fsDownloadsHistoryMgr::GetRecordCount(), m_dwFlags, fsDownloadsMgr::m_histmgr, SEARCHWH_DELETED, SEARCHWH_HISTOFDLDS, and SEARCHWH_LISTOFDLDS.
Referenced by FindNext(), FindNext_InDeleted(), FindNext_InHistoryOfDlds(), and FindNext_InListOfDlds().
| BOOL fsFindDownloadMgr::NextFindSource | ( | fsFDM_WhereIsIndex & | wi | ) | [protected] |
Definition at line 164 of file fsFindDownloadMgr.cpp.
References FALSE, m_dwFlags, SEARCHWH_DELETED, SEARCHWH_HISTOFDLDS, TRUE, WII_DELETED, WII_HISTOFDLDS, and WII_LISTOFDLDS.
Referenced by FindNext_imp().
int fsFindDownloadMgr::m_iIndex [protected] |
Definition at line 55 of file fsFindDownloadMgr.h.
Referenced by FindNext(), FindNext_imp(), FindNext_InDeleted(), FindNext_InHistoryOfDlds(), FindNext_InListOfDlds(), fsFindDownloadMgr(), IsFindNextAvail(), and PrepareFind().
fsFDM_WhereIsIndex fsFindDownloadMgr::m_enWI [protected] |
Definition at line 62 of file fsFindDownloadMgr.h.
Referenced by FindNext(), FindNext_imp(), and PrepareFind().
LPVOID fsFindDownloadMgr::m_pFoundElement [protected] |
Definition at line 63 of file fsFindDownloadMgr.h.
Referenced by FindNext(), FindNext_InDeleted(), FindNext_InHistoryOfDlds(), and FindNext_InListOfDlds().
vmsDownloadsGroupSmartPtr fsFindDownloadMgr::m_pGroup [protected] |
FILETIME fsFindDownloadMgr::m_tFrom [protected] |
FILETIME fsFindDownloadMgr::m_tTo [protected] |
UINT64 fsFindDownloadMgr::m_uFileSizeFrom [protected] |
UINT64 fsFindDownloadMgr::m_uFileSizeTo [protected] |
DWORD fsFindDownloadMgr::m_dwFlags [protected] |
Definition at line 71 of file fsFindDownloadMgr.h.
Referenced by FindNext_InDeleted(), FindNext_InHistoryOfDlds(), GetElementCount(), IsSatisfies(), NextFindSource(), PrepareFind(), and ReadSettings().
fsString fsFindDownloadMgr::m_strWhat [protected] |
1.5.6