#include <UpdateDlg.h>
Public Types | |
| enum | { IDD = IDD_UPDATE } |
Public Member Functions | |
| CUpdateDlg (CWnd *pParent=NULL) | |
Public Attributes | |
| bool | m_bCheckingByUser |
| CStatic | m_wndSpeed |
| CStatic | m_wndSize |
| CStatic | m_wndTimeLeft |
| CProgressCtrl | m_wndProgress |
| CStatic | m_wndMsg |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| void | PrepareCHMgr (CPoint point) |
| void | ApplyLanguage () |
| void | OnUpdateDone () |
| void | ShowGroup (BOOL bFirstGroup) |
| void | ShowUpdateInfo () |
| void | CheckForUpdate () |
| virtual BOOL | OnInitDialog () |
| afx_msg void | OnDesc () |
| afx_msg void | OnUpdate () |
| virtual void | OnCancel () |
| afx_msg void | OnTimer (UINT nIDEvent) |
| afx_msg void | OnSysCommand (UINT nID, LPARAM lParam) |
| afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
| afx_msg void | OnWhatisthis () |
| afx_msg void | OnHelp () |
| afx_msg BOOL | OnHelpInfo (HELPINFO *pHelpInfo) |
Static Protected Member Functions | |
| static void | _UpdateMgrDescEvents (LPCSTR pszEvent, LPVOID lp) |
| static void | _UpdateMgrEvents (fsUpdateMgrEvent ev, LPVOID lp) |
Definition at line 13 of file UpdateDlg.h.
| anonymous enum |
| CUpdateDlg::CUpdateDlg | ( | CWnd * | pParent = NULL |
) |
| void CUpdateDlg::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 28 of file UpdateDlg.cpp.
References IDC_BPS, IDC_FILESIZE, IDC_MESSAGE, IDC_PROGRESS, IDC_TIMELEFT, m_wndMsg, m_wndProgress, m_wndSize, m_wndSpeed, and m_wndTimeLeft.
| void CUpdateDlg::PrepareCHMgr | ( | CPoint | point | ) | [protected] |
Definition at line 351 of file UpdateDlg.cpp.
References _CHMgr, ID_UPDATE, IDC__TYPE, IDC_DESC, IDC_FULLDISTRIB, IDC_UPGDISTRIB, L_DESCHERE, L_UPDATEHERE, L_UPDCANCELHERE, L_UPDHELPHERE, L_UPDTYPEHERE, L_USINGFULLHERE, L_USINGPARTHERE, LS, and fsContextHelpMgr::PrepareContextMenu().
Referenced by OnContextMenu(), and OnHelpInfo().
| void CUpdateDlg::ApplyLanguage | ( | ) | [protected] |
Definition at line 335 of file UpdateDlg.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), ID_UPDATE, IDC__SIZE, IDC__SPEED, IDC__TIMELEFT, IDC__TYPE, IDC_DESC, L_CANCEL, L_DESC, L_HELP, L_SIZE, L_SPEED, L_TIMELEFT, L_TOUPDATE, L_UPDATE, and L_UPDATEUSING.
Referenced by OnInitDialog().
| void CUpdateDlg::OnUpdateDone | ( | ) | [protected] |
Definition at line 296 of file UpdateDlg.cpp.
References _DlgMgr, _UpdateMgr, fsDialogsMgr::EndAllDialogs(), ID_NEED_EXIT, L_CANTFINDUPDATER, L_ERR, L_NEEDRESTART, L_UPDDONE, LS, fsUpdateMgr::StartUpdater(), and fsUpdateMgr::UpdateOnNextStart().
Referenced by _UpdateMgrEvents().
| void CUpdateDlg::ShowGroup | ( | BOOL | bFirstGroup | ) | [protected] |
Definition at line 268 of file UpdateDlg.cpp.
References IDC__SIZE, IDC__SPEED, IDC__TIMELEFT, IDC__TYPE, IDC_FULLDISTRIB, IDC_UPGDISTRIB, m_wndSize, m_wndSpeed, and m_wndTimeLeft.
Referenced by CheckForUpdate(), OnUpdate(), and ShowUpdateInfo().
| void CUpdateDlg::_UpdateMgrEvents | ( | fsUpdateMgrEvent | ev, | |
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 104 of file UpdateDlg.cpp.
References _UpdateMgr, fsDownloadMgr::ApplyProperties(), AUT_DLANDINST, fsIRToStr(), fsUpdateMgr::GetBuildNumber(), fsDownloadMgr::GetDP(), fsDownloadMgr::GetLastError(), fsUpdateMgr::GetVersion(), ID_UPDATE, L_ALRNEWESTVER, L_CHECKINGUPD, L_CONNECTINGTOSERV, L_DONE, L_DOWNLOADING, L_VERAVAIL, LS, m_bCheckingByUser, fsUpdateMgr::m_dldr, fsUpdateMgr::m_enAUT, m_wndMsg, m_wndProgress, NULL, OnTimer(), OnUpdateDone(), ShowUpdateInfo(), fsDownload_Properties::uMaxAttempts, UME_CONNECTING, UME_FATALERROR, UME_NEWVERSIONAVAIL, UME_NEWVERSIONNOTAVAIL, UME_RETREIVINGUPDATE, UME_RETREIVINGUPDLST, UME_UPDATEDONE, and UME_UPDLSTDONE.
Referenced by OnInitDialog().
| void CUpdateDlg::ShowUpdateInfo | ( | ) | [protected] |
Definition at line 189 of file UpdateDlg.cpp.
References _UpdateMgr, FALSE, fsUpdateMgr::GetBuildNumber(), fsUpdateMgr::GetFullSize(), fsUpdateMgr::GetUpgSize(), fsUpdateMgr::GetVersion(), ID_UPDATE, IDC_DESC, IDC_FULLDISTRIB, IDC_UPGDISTRIB, L_FULLDISTR, L_UPGTOVER, L_UPGTOVER2, L_VERAVAIL, LS, m_wndMsg, and ShowGroup().
Referenced by _UpdateMgrEvents().
| void CUpdateDlg::CheckForUpdate | ( | ) | [protected] |
Definition at line 180 of file UpdateDlg.cpp.
References _UpdateMgr, fsUpdateMgr::CheckForUpdate(), FALSE, ID_UPDATE, IDC_DESC, m_bCheckingByUser, ShowGroup(), and TRUE.
Referenced by OnInitDialog().
| BOOL CUpdateDlg::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 53 of file UpdateDlg.cpp.
References _UpdateMgr, _UpdateMgrDescEvents(), _UpdateMgrEvents(), ApplyLanguage(), CheckForUpdate(), FALSE, fsUpdateMgr::IsRunning(), m_wndProgress, fsUpdateMgr::SetDescEventsFunc(), fsUpdateMgr::SetEventsFunc(), and TRUE.
| void CUpdateDlg::OnDesc | ( | ) | [protected] |
Definition at line 73 of file UpdateDlg.cpp.
References _UpdateMgr, fsUpdateMgr::GetWhatNew(), L_DESC, and LS.
| void CUpdateDlg::OnUpdate | ( | ) | [protected] |
Definition at line 87 of file UpdateDlg.cpp.
References _UpdateMgr, FALSE, ID_UPDATE, IDC_FULLDISTRIB, m_wndProgress, ShowGroup(), TRUE, and fsUpdateMgr::Update().
| void CUpdateDlg::OnCancel | ( | ) | [protected, virtual] |
Definition at line 95 of file UpdateDlg.cpp.
References _UpdateMgr, NULL, fsUpdateMgr::SetDescEventsFunc(), fsUpdateMgr::SetEventsFunc(), and fsUpdateMgr::Stop().
Referenced by OnSysCommand().
| void CUpdateDlg::OnTimer | ( | UINT | nIDEvent | ) | [protected] |
Definition at line 224 of file UpdateDlg.cpp.
References _UpdateMgr, BytesToXBytes(), fsTimeInSecondsToStr(), fsInternetDownloader::GetBytesLeft(), fsDownloadMgr::GetDownloader(), fsInternetDownloader::GetSpeed(), fsInternetDownloader::GetSSFileSize(), L_UNKNOWN, LS, fsUpdateMgr::m_dldr, m_wndProgress, m_wndSize, m_wndSpeed, and m_wndTimeLeft.
Referenced by _UpdateMgrEvents().
| void CUpdateDlg::OnSysCommand | ( | UINT | nID, | |
| LPARAM | lParam | |||
| ) | [protected] |
| void CUpdateDlg::OnContextMenu | ( | CWnd * | pWnd, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 319 of file UpdateDlg.cpp.
References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().
| void CUpdateDlg::OnWhatisthis | ( | ) | [protected] |
| void CUpdateDlg::OnHelp | ( | ) | [protected] |
| BOOL CUpdateDlg::OnHelpInfo | ( | HELPINFO * | pHelpInfo | ) | [protected] |
Definition at line 369 of file UpdateDlg.cpp.
References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.
Definition at line 18 of file UpdateDlg.h.
Referenced by _UpdateMgrEvents(), CheckForUpdate(), CUpdateDlg(), and CMainFrame::StartUpdate().
| CStatic CUpdateDlg::m_wndSpeed |
Definition at line 23 of file UpdateDlg.h.
Referenced by DoDataExchange(), OnTimer(), and ShowGroup().
| CStatic CUpdateDlg::m_wndSize |
Definition at line 24 of file UpdateDlg.h.
Referenced by DoDataExchange(), OnTimer(), and ShowGroup().
| CStatic CUpdateDlg::m_wndTimeLeft |
Definition at line 25 of file UpdateDlg.h.
Referenced by DoDataExchange(), OnTimer(), and ShowGroup().
| CProgressCtrl CUpdateDlg::m_wndProgress |
Definition at line 26 of file UpdateDlg.h.
Referenced by _UpdateMgrEvents(), DoDataExchange(), OnInitDialog(), OnTimer(), and OnUpdate().
| CStatic CUpdateDlg::m_wndMsg |
Definition at line 27 of file UpdateDlg.h.
Referenced by _UpdateMgrEvents(), DoDataExchange(), and ShowUpdateInfo().
1.5.6