#include <fsUpdateMgr.h>
Definition at line 34 of file fsUpdateMgr.h.
| fsUpdateMgr::fsUpdateMgr | ( | ) |
Definition at line 18 of file fsUpdateMgr.cpp.
References FALSE, m_bRunning, m_pfnDescEvents, m_pfnEvents, and NULL.
| fsUpdateMgr::~fsUpdateMgr | ( | ) | [virtual] |
| void fsUpdateMgr::CheckForUpdate | ( | bool | bByUser | ) |
Definition at line 65 of file fsUpdateMgr.cpp.
References _DownloadMgrDescEvents(), _DownloadMgrEvents(), AER_REWRITE, fsDownloadMgr::CreateByUrl(), DPF_DONTRESTARTIFNORESUME, fsDownload_Properties::dwFlags, fsDownload_Properties::enAER, fsDownload_Properties::enSCR, Event(), fsGetDataFilePath(), fsnew, fsnew1, CMainFrame::get_Customizations(), vmsFDMCustomizations::get_Customizer(), fsDownloadMgr::GetDNP(), fsDownloadMgr::GetDP(), IS_PORTABLE_MODE, m_bChecking, m_bCheckingByUser, m_bRunning, m_dldr, m_strUpdateUrl, NULL, PRG_BUILD_NUMBER, fsDownload_Properties::pszAdditionalExt, fsDownload_Properties::pszFileName, fsDownload_NetworkProperties::pszReferer, SAFE_DELETE, SAFE_DELETE_ARRAY, SCR_STOP, fsDownloadMgr::SetEventDescFunc(), fsDownloadMgr::SetEventFunc(), fsDownloadMgr::StartDownloading(), TRUE, fsDownload_Properties::uMaxAttempts, fsDownload_Properties::uMaxSections, and UME_CONNECTING.
Referenced by CUpdateDlg::CheckForUpdate().
| void fsUpdateMgr::Update | ( | BOOL | bByFull | ) |
Definition at line 351 of file fsUpdateMgr.cpp.
References _DownloadMgrDescEvents(), _DownloadMgrEvents(), AER_REWRITE, fsDownloadMgr::CreateByUrl(), fsDownload_Properties::enAER, Event(), FALSE, fsGetDataFilePath(), fsnew, fsnew1, fsDownloadMgr::GetDP(), m_bChecking, m_bRunning, m_dldr, m_strBN, m_strDlFullInstallPath, m_strDlUpgradesPath, m_strUpgFileName, NULL, PRG_BUILD_NUMBER, fsDownload_Properties::pszAdditionalExt, fsDownload_Properties::pszFileName, SAFE_DELETE, SAFE_DELETE_ARRAY, fsDownloadMgr::SetEventDescFunc(), fsDownloadMgr::SetEventFunc(), fsDownloadMgr::StartDownloading(), fsDownload_Properties::uMaxAttempts, and UME_CONNECTING.
Referenced by CUpdateDlg::OnUpdate().
| BOOL fsUpdateMgr::StartUpdater | ( | ) |
Definition at line 43 of file fsUpdateMgr.cpp.
References _pszAppMutex, FALSE, LPSTR, m_strUpdateFile, NULL, TRUE, and vmsGetAppFolder().
Referenced by CFdmApp::InitInstance(), and CUpdateDlg::OnUpdateDone().
| BOOL fsUpdateMgr::IsStartUpdaterNeeded | ( | BOOL | bUpdaterWillBeLaunchedNow = TRUE |
) |
Definition at line 417 of file fsUpdateMgr.cpp.
References m_strUpdateFile.
Referenced by CFdmApp::InitInstance(), and CMainFrame::OnUpdate().
| void fsUpdateMgr::UpdateOnNextStart | ( | ) |
Definition at line 412 of file fsUpdateMgr.cpp.
References m_strUpdateFile.
Referenced by CUpdateDlg::OnUpdateDone().
| fs::list< CString > * fsUpdateMgr::GetWhatNew | ( | ) |
Definition at line 346 of file fsUpdateMgr.cpp.
References m_vWN.
Referenced by CUpdateDlg::OnDesc().
| LPCSTR fsUpdateMgr::GetUpgSize | ( | ) |
Definition at line 341 of file fsUpdateMgr.cpp.
References m_strUpgSize.
Referenced by CUpdateDlg::ShowUpdateInfo().
| LPCSTR fsUpdateMgr::GetFullSize | ( | ) |
Definition at line 336 of file fsUpdateMgr.cpp.
References m_strFullSize.
Referenced by CUpdateDlg::ShowUpdateInfo().
| void fsUpdateMgr::Stop | ( | ) |
Definition at line 328 of file fsUpdateMgr.cpp.
References FALSE, fsDownloadMgr::IsRunning(), m_bRunning, m_dldr, and fsDownloadMgr::StopDownloading().
Referenced by CUpdateDlg::OnCancel(), and CMainFrame::OnClose().
| LPCSTR fsUpdateMgr::GetBuildNumber | ( | ) |
Definition at line 323 of file fsUpdateMgr.cpp.
References m_strBN.
Referenced by CUpdateDlg::_UpdateMgrEvents(), and CUpdateDlg::ShowUpdateInfo().
| LPCSTR fsUpdateMgr::GetVersion | ( | ) |
Definition at line 318 of file fsUpdateMgr.cpp.
References m_strVersion.
Referenced by CUpdateDlg::_UpdateMgrEvents(), ProcessUpdateLstFile(), and CUpdateDlg::ShowUpdateInfo().
| BOOL fsUpdateMgr::IsRunning | ( | ) |
Definition at line 307 of file fsUpdateMgr.cpp.
References m_bRunning.
Referenced by CMainFrame::_threadUpdate(), CUpdateDlg::OnInitDialog(), and CMainFrame::StartUpdate().
| void fsUpdateMgr::SetDescEventsFunc | ( | fntUpdateMgrDescEvents | pfn, | |
| LPVOID | lpParam | |||
| ) |
Definition at line 400 of file fsUpdateMgr.cpp.
References m_lpDescEventsParam, and m_pfnDescEvents.
Referenced by CUpdateDlg::OnCancel(), CMainFrame::OnClose(), and CUpdateDlg::OnInitDialog().
| void fsUpdateMgr::SetEventsFunc | ( | fntUpdateMgrEventsFunc | pfn, | |
| LPVOID | lp | |||
| ) |
Definition at line 312 of file fsUpdateMgr.cpp.
References m_lpEventsParam, and m_pfnEvents.
Referenced by CUpdateDlg::OnCancel(), CMainFrame::OnClose(), and CUpdateDlg::OnInitDialog().
| void fsUpdateMgr::ReadSettings | ( | ) |
Definition at line 30 of file fsUpdateMgr.cpp.
References _App, m_enAUT, m_strDlFullInstallPath, m_strDlUpgradesPath, m_strUpdateUrl, fsAppSettings::Update_AutoUpdateType(), and fsAppSettings::Update_URL().
Referenced by CFdmApp::InitInstance(), and CMainFrame::UpdateSettings().
| void fsUpdateMgr::SaveSettings | ( | ) |
Definition at line 36 of file fsUpdateMgr.cpp.
References _App, m_enAUT, m_strUpdateUrl, fsAppSettings::Update_AutoUpdateType(), and fsAppSettings::Update_URL().
Referenced by CFdmApp::ExitInstance().
| void fsUpdateMgr::FixIniFileFor9x | ( | LPCSTR | pszIni | ) | [static, protected] |
Definition at line 425 of file fsUpdateMgr.cpp.
References FALSE, GetFileSize(), LPSTR, and NULL.
Referenced by ProcessUpdateLstFile().
| void fsUpdateMgr::Event | ( | LPCSTR | pszEvent | ) | [protected] |
Definition at line 406 of file fsUpdateMgr.cpp.
References m_lpDescEventsParam, and m_pfnDescEvents.
Referenced by _DownloadMgrDescEvents(), _DownloadMgrEvents(), CheckForUpdate(), ProcessUpdateLstFile(), and Update().
| void fsUpdateMgr::_DownloadMgrDescEvents | ( | fsDownloadMgr * | pMgr, | |
| fsDownloadMgr_EventDescType | enType, | |||
| LPCSTR | pszDesc, | |||
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 394 of file fsUpdateMgr.cpp.
References Event().
Referenced by CheckForUpdate(), and Update().
| void fsUpdateMgr::Event | ( | fsUpdateMgrEvent | ev | ) | [protected] |
| void fsUpdateMgr::ProcessUpdateLstFile | ( | ) | [protected] |
Definition at line 181 of file fsUpdateMgr.cpp.
References _App, ASSERT, BOOL, Event(), FALSE, FixIniFileFor9x(), fsGetDataFilePath(), GetVersion(), LPSTR, m_bRunning, m_strBN, m_strDlFullInstallPath, m_strDlUpgradesPath, m_strFullSize, m_strUpgFileName, m_strUpgSize, m_strVersion, m_vWN, fsAppSettings::NewVerExists(), PRG_BUILD_NUMBER, UME_NEWVERSIONAVAIL, and UME_NEWVERSIONNOTAVAIL.
Referenced by _DownloadMgrEvents().
| DWORD fsUpdateMgr::_DownloadMgrEvents | ( | fsDownloadMgr * | pMgr, | |
| fsDownloaderEvent | ev, | |||
| UINT | uInfo, | |||
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 119 of file fsUpdateMgr.cpp.
References _App, DE_ERRFROMSERVER, DE_ERROROCCURED, DE_EXTERROR, DE_FAILCONNECT, DE_SECTIONSTARTED, DE_WRITEERROR, DMEE_STOPPEDORDONE, Event(), FALSE, fsDownloadMgr::GetDownloader(), fsDownloadMgr::GetDP(), fsInternetDownloader::GetRunningSectionCount(), fsDownloadMgr::IsDone(), m_bChecking, m_bRunning, m_dldr, m_strUpdateFile, fsAppSettings::NewVerExists(), ProcessUpdateLstFile(), fsDownload_Properties::pszFileName, TRUE, UME_ERROR, UME_FATALERROR, UME_RETREIVINGUPDATE, UME_RETREIVINGUPDLST, UME_UPDATEDONE, UME_UPDLSTDONE, and fsAppSettings::Update_LastCheck().
Referenced by CheckForUpdate(), and Update().
friend class CPrg_UpdatePage [friend] |
Definition at line 36 of file fsUpdateMgr.h.
Definition at line 68 of file fsUpdateMgr.h.
Referenced by CUpdateDlg::_UpdateMgrEvents(), CPrg_UpdatePage::OnApply(), CMainFrame::OnCreate(), CPrg_UpdatePage::OnInitDialog(), ReadSettings(), and SaveSettings().
| CString fsUpdateMgr::m_strUpdateUrl |
Definition at line 69 of file fsUpdateMgr.h.
Referenced by CheckForUpdate(), CPrg_UpdatePage::OnApply(), CPrg_UpdatePage::OnInitDialog(), ReadSettings(), and SaveSettings().
Definition at line 74 of file fsUpdateMgr.h.
Referenced by _DownloadMgrEvents(), CUpdateDlg::_UpdateMgrEvents(), CheckForUpdate(), CUpdateDlg::OnTimer(), Stop(), Update(), and ~fsUpdateMgr().
bool fsUpdateMgr::m_bCheckingByUser [protected] |
CString fsUpdateMgr::m_strUpdateFile [protected] |
Definition at line 81 of file fsUpdateMgr.h.
Referenced by _DownloadMgrEvents(), IsStartUpdaterNeeded(), StartUpdater(), and UpdateOnNextStart().
LPVOID fsUpdateMgr::m_lpEventsParam [protected] |
fntUpdateMgrEventsFunc fsUpdateMgr::m_pfnEvents [protected] |
Definition at line 86 of file fsUpdateMgr.h.
Referenced by Event(), fsUpdateMgr(), and SetEventsFunc().
LPVOID fsUpdateMgr::m_lpDescEventsParam [protected] |
fntUpdateMgrDescEvents fsUpdateMgr::m_pfnDescEvents [protected] |
Definition at line 88 of file fsUpdateMgr.h.
Referenced by Event(), fsUpdateMgr(), and SetDescEventsFunc().
CString fsUpdateMgr::m_strDlFullInstallPath [protected] |
Definition at line 91 of file fsUpdateMgr.h.
Referenced by CPrg_UpdatePage::OnApply(), ProcessUpdateLstFile(), ReadSettings(), and Update().
CString fsUpdateMgr::m_strDlUpgradesPath [protected] |
Definition at line 92 of file fsUpdateMgr.h.
Referenced by CPrg_UpdatePage::OnApply(), ProcessUpdateLstFile(), ReadSettings(), and Update().
CString fsUpdateMgr::m_strUpgSize [protected] |
Definition at line 94 of file fsUpdateMgr.h.
Referenced by GetUpgSize(), and ProcessUpdateLstFile().
CString fsUpdateMgr::m_strUpgFileName [protected] |
CString fsUpdateMgr::m_strFullSize [protected] |
Definition at line 95 of file fsUpdateMgr.h.
Referenced by GetFullSize(), and ProcessUpdateLstFile().
CString fsUpdateMgr::m_strVersion [protected] |
Definition at line 96 of file fsUpdateMgr.h.
Referenced by GetVersion(), and ProcessUpdateLstFile().
CString fsUpdateMgr::m_strBN [protected] |
Definition at line 97 of file fsUpdateMgr.h.
Referenced by GetBuildNumber(), ProcessUpdateLstFile(), and Update().
fs::list<CString> fsUpdateMgr::m_vWN [protected] |
Definition at line 98 of file fsUpdateMgr.h.
Referenced by GetWhatNew(), and ProcessUpdateLstFile().
BOOL fsUpdateMgr::m_bChecking [protected] |
Definition at line 101 of file fsUpdateMgr.h.
Referenced by _DownloadMgrEvents(), CheckForUpdate(), and Update().
BOOL fsUpdateMgr::m_bRunning [protected] |
Definition at line 104 of file fsUpdateMgr.h.
Referenced by _DownloadMgrEvents(), CheckForUpdate(), fsUpdateMgr(), IsRunning(), ProcessUpdateLstFile(), Stop(), and Update().
1.5.6