// Download dialog (loaddlg.cpp)
class CDownloadManager
{
- static ATL::CSimpleArray<DownloadInfo> AppsToInstallList;
+ static ATL::CSimpleArray<DownloadInfo> AppsDownloadList;
static CDowloadingAppsListView DownloadsListView;
static CDownloaderProgress ProgressBar;
static BOOL bCancelled;
// CDownloadManager
-ATL::CSimpleArray<DownloadInfo> CDownloadManager::AppsToInstallList;
+ATL::CSimpleArray<DownloadInfo> CDownloadManager::AppsDownloadList;
CDowloadingAppsListView CDownloadManager::DownloadsListView;
CDownloaderProgress CDownloadManager::ProgressBar;
BOOL CDownloadManager::bCancelled = FALSE;
VOID CDownloadManager::Add(DownloadInfo info)
{
- AppsToInstallList.Add(info);
+ AppsDownloadList.Add(info);
}
VOID CDownloadManager::Download(const DownloadInfo &DLInfo, BOOL bIsModal)
{
- AppsToInstallList.RemoveAll();
- AppsToInstallList.Add(DLInfo);
+ AppsDownloadList.RemoveAll();
+ AppsDownloadList.Add(DLInfo);
LaunchDownloadDialog(bIsModal);
}
{
return FALSE;
}
- DownloadsListView.LoadList(AppsToInstallList);
+ DownloadsListView.LoadList(AppsDownloadList);
// Get a dlg string for later use
GetWindowTextW(Dlg, szCaption, _countof(szCaption));
ShowWindow(Dlg, SW_SHOW);
// Start download process
- DownloadParam *param = new DownloadParam(Dlg, AppsToInstallList, szCaption);
+ DownloadParam *param = new DownloadParam(Dlg, AppsDownloadList, szCaption);
unsigned int ThreadId;
HANDLE Thread = (HANDLE)_beginthreadex(NULL, 0, ThreadFunc, (void *) param, 0, &ThreadId);
}
CloseHandle(Thread);
- AppsToInstallList.RemoveAll();
+ AppsDownloadList.RemoveAll();
return TRUE;
}