#include <fsSitesMgr.h>
Public Member Functions | |
| void | CheckGroups () |
| void | DeleteAllPasswords () |
| void | SiteUpdated (fsSiteInfo *pSite) |
| BOOL | SaveToFile (HANDLE hFile) |
| BOOL | LoadFromFile (HANDLE hFile) |
| int | GetTempSiteCount () |
| void | SetEventsFunc (fntSitesMgrEvents pfn, LPVOID lpParam) |
| int | GetSiteCount () |
| void | DeleteAllTempSites () |
| void | DeleteSite (fsSiteInfo *pSite) |
| fsSiteInfo * | FindSite2 (LPCSTR pszSite, DWORD dwValidFor, BOOL bAllReq=TRUE) |
| int | FindSite (LPCSTR pszName, DWORD dwValidFor, BOOL bAllReq=TRUE) |
| fsSiteInfo * | GetSite (int iIndex) |
| int | AddSite (fsSiteInfo &site) |
| fsSitesMgr () | |
| virtual | ~fsSitesMgr () |
Protected Member Functions | |
| void | Event (fsSitesMgrEvent ev, fsSiteInfo *site) |
Protected Attributes | |
| fntSitesMgrEvents | m_pfnEvents |
| LPVOID | m_lpEventsParam |
| fs::list< fsSiteInfo > | m_vSites |
Definition at line 83 of file fsSitesMgr.h.
| fsSitesMgr::fsSitesMgr | ( | ) |
| fsSitesMgr::~fsSitesMgr | ( | ) | [virtual] |
Definition at line 23 of file fsSitesMgr.cpp.
| void fsSitesMgr::CheckGroups | ( | ) |
Definition at line 328 of file fsSitesMgr.cpp.
References m_vSites, NULL, fsSiteInfo::pGroup, and SiteUpdated().
Referenced by CDownloadsWnd::DeleteGroup().
| void fsSitesMgr::DeleteAllPasswords | ( | ) |
Definition at line 317 of file fsSitesMgr.cpp.
References m_vSites, NULL, SiteUpdated(), fsSiteInfo::strPassword, and fsSiteInfo::strUser.
Referenced by CSiteManager_PasswordsPage::OnDelall().
| void fsSitesMgr::SiteUpdated | ( | fsSiteInfo * | pSite | ) |
Definition at line 312 of file fsSitesMgr.cpp.
References Event(), and SM_SITEUPDATED.
Referenced by CCreateDownloadDlg::_SavePassword(), CheckGroups(), DeleteAllPasswords(), CSpiderAddPageDlg::OnOK(), fsDownloadsMgr::OnSectionStop(), and fsDownloadsMgr::RebuildServerList().
| BOOL fsSitesMgr::SaveToFile | ( | HANDLE | hFile | ) |
Definition at line 115 of file fsSitesMgr.cpp.
References _App, BOOL, fsSiteInfo::bTemp, fsSiteInfo::cConnsNow, fsSiteInfo::cMaxConns, fsSiteInfo::dwFtpFlags, fsSiteInfo::dwValidFor, FALSE, fsSaveStrToFile(), GetSite(), GetSiteCount(), GetTempSiteCount(), m_vSites, NULL, fsSiteInfo::pGroup, fsAppSettings::SM_DontSavePwdsToDisk(), fsAppSettings::SM_KeepPasswords(), fsSiteInfo::strName, fsSiteInfo::strPassword, fsSiteInfo::strUser, and TRUE.
Referenced by CSitesWnd::SaveSites().
| BOOL fsSitesMgr::LoadFromFile | ( | HANDLE | hFile | ) |
Definition at line 212 of file fsSitesMgr.cpp.
References _DldsGrps, AddSite(), fsSiteInfo_v1::bFtpPassive, BOOL, fsSiteInfo_v2::bTemp, fsSiteInfo_v1::bTemp, fsSiteInfo::bTemp, fsSiteInfo_v2::cConnsNow, fsSiteInfo_v1::cConnsNow, fsSiteInfo::cConnsNow, fsSiteInfo_v2::cMaxConns, fsSiteInfo_v1::cMaxConns, fsSiteInfo::cMaxConns, fsSiteInfo_v2::dwFtpFlags, fsSiteInfo::dwFtpFlags, fsSiteInfo_v2::dwValidFor, fsSiteInfo::dwValidFor, FALSE, vmsDownloadsGroupsMgr::FindGroup(), fsReadStrFromFile(), m_vSites, NULL, fsSiteInfo::pGroup, fsString::pszString, SITE_VALIDFOR_FTP, SITE_VALIDFOR_HTTP, SITE_VALIDFOR_HTTPS, SITE_VALIDFOR_SUBDOMAINS, SITESFILE_CURRENT_VERSION, SITESFILE_SIG, fsSiteInfo_v2::strGroup, fsSiteInfo::strName, fsSiteInfo::strPassword, fsSiteInfo::strUser, fsSitesFileHdr::szSig, TRUE, and fsSitesFileHdr::wVer.
Referenced by CSitesWnd::LoadSites().
| int fsSitesMgr::GetTempSiteCount | ( | ) |
| void fsSitesMgr::SetEventsFunc | ( | fntSitesMgrEvents | pfn, | |
| LPVOID | lpParam | |||
| ) |
Definition at line 103 of file fsSitesMgr.cpp.
References m_lpEventsParam, and m_pfnEvents.
Referenced by CSitesWnd::CSitesWnd().
| int fsSitesMgr::GetSiteCount | ( | ) |
Definition at line 98 of file fsSitesMgr.cpp.
References m_vSites.
Referenced by fsDownloadsMgr::GetAmountConnections(), CSitesWnd::OnForceUpdate(), fsDownloadsMgr::ProcessDownloads(), fsDownloadsMgr::RebuildServerList(), and SaveToFile().
| void fsSitesMgr::DeleteAllTempSites | ( | ) |
| void fsSitesMgr::DeleteSite | ( | fsSiteInfo * | pSite | ) |
Definition at line 73 of file fsSitesMgr.cpp.
References fsSiteInfo::dwValidFor, Event(), FindSite(), m_vSites, SM_SITEDELETED, and fsSiteInfo::strName.
Referenced by CSitesWnd::OnSitesDelete().
| fsSiteInfo * fsSitesMgr::FindSite2 | ( | LPCSTR | pszSite, | |
| DWORD | dwValidFor, | |||
| BOOL | bAllReq = TRUE | |||
| ) |
Definition at line 63 of file fsSitesMgr.cpp.
References FindSite(), m_vSites, and NULL.
Referenced by CCreateDownloadDlg::_SavePassword(), fsInternetFileListMgr::_threadGetList(), fsDownloadsMgr::Add(), CDownloadsWnd::CreateDownloadWithDefSettings(), fsDownloadsMgr::IsServerFilled(), fsDownloadsMgr::OnSectionStop(), CSpiderAddPageDlg::OnUrlChanged(), fsDownloadsMgr::ProcessDownloads(), fsDownloadsMgr::RebuildServerList(), CCreateDownloadDlg::UrlChanged(), CCreateBatchDownload::UrlChanged(), and CCreateDownloadListDlg::WriteUrlsToDialog().
| int fsSitesMgr::FindSite | ( | LPCSTR | pszName, | |
| DWORD | dwValidFor, | |||
| BOOL | bAllReq = TRUE | |||
| ) |
Definition at line 40 of file fsSitesMgr.cpp.
References fsSiteInfo::dwValidFor, fsIsServersEqual(), m_vSites, SITE_VALIDFOR_SUBDOMAINS, and fsSiteInfo::strName.
Referenced by DeleteSite(), FindSite2(), CSites_GeneralPage::OnApply(), CSites_AdvancedPage::OnApply(), and CSitesWnd::OnSitesProperties().
| fsSiteInfo * fsSitesMgr::GetSite | ( | int | iIndex | ) |
Definition at line 35 of file fsSitesMgr.cpp.
References m_vSites.
Referenced by CCreateDownloadDlg::_SavePassword(), fsDownloadsMgr::GetAmountConnections(), CSitesWnd::OnForceUpdate(), fsDownloadsMgr::ProcessDownloads(), fsDownloadsMgr::RebuildServerList(), and SaveToFile().
| int fsSitesMgr::AddSite | ( | fsSiteInfo & | site | ) |
Definition at line 28 of file fsSitesMgr.cpp.
References Event(), m_vSites, and SM_SITEADDED.
Referenced by CCreateDownloadDlg::_SavePassword(), LoadFromFile(), CSitesWnd::OnSitesAdd(), and fsDownloadsMgr::RebuildServerList().
| void fsSitesMgr::Event | ( | fsSitesMgrEvent | ev, | |
| fsSiteInfo * | site | |||
| ) | [protected] |
Definition at line 109 of file fsSitesMgr.cpp.
References m_lpEventsParam, and m_pfnEvents.
Referenced by AddSite(), DeleteAllTempSites(), DeleteSite(), and SiteUpdated().
fntSitesMgrEvents fsSitesMgr::m_pfnEvents [protected] |
Definition at line 118 of file fsSitesMgr.h.
Referenced by Event(), fsSitesMgr(), and SetEventsFunc().
LPVOID fsSitesMgr::m_lpEventsParam [protected] |
fs::list<fsSiteInfo> fsSitesMgr::m_vSites [protected] |
Definition at line 120 of file fsSitesMgr.h.
Referenced by AddSite(), CheckGroups(), DeleteAllPasswords(), DeleteAllTempSites(), DeleteSite(), FindSite(), FindSite2(), GetSite(), GetSiteCount(), GetTempSiteCount(), LoadFromFile(), and SaveToFile().
1.5.6