1 #pragma once 2 3 #include "available.h" 4 5 #include <windef.h> 6 #include <atlsimpcoll.h> 7 8 // Download dialog (loaddlg.cpp) 9 class CDowloadingAppsListView; 10 struct DownloadInfo; 11 12 class CDownloadManager 13 { 14 static ATL::CSimpleArray<DownloadInfo> AppsToInstallList; 15 static CDowloadingAppsListView DownloadsListView; 16 17 static VOID Download(const DownloadInfo& DLInfo, BOOL bIsModal = FALSE); 18 19 public: 20 static INT_PTR CALLBACK DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 21 static LRESULT CALLBACK DownloadProgressProc(HWND hWnd, 22 UINT uMsg, 23 WPARAM wParam, 24 LPARAM lParam, 25 UINT_PTR uIdSubclass, 26 DWORD_PTR dwRefData); 27 28 static DWORD WINAPI ThreadFunc(LPVOID Context); 29 static BOOL DownloadListOfApplications(const ATL::CSimpleArray<CAvailableApplicationInfo*>& AppsList, BOOL bIsModal = FALSE); 30 static BOOL DownloadApplication(CAvailableApplicationInfo* pAppInfo, BOOL bIsModal = FALSE); 31 static VOID DownloadApplicationsDB(LPCWSTR lpUrl); 32 static VOID LaunchDownloadDialog(BOOL); 33 }; 34 35 // Settings dialog (settingsdlg.cpp) 36 VOID CreateSettingsDlg(HWND hwnd); 37 38 // About dialog (aboutdlg.cpp) 39 VOID ShowAboutDialog(); 40