2017-08-02 12:50:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "available.h"
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <atlsimpcoll.h>
|
|
|
|
|
|
|
|
// Download dialog (loaddlg.cpp)
|
|
|
|
class CDowloadingAppsListView;
|
2017-08-26 22:43:05 +00:00
|
|
|
struct DownloadInfo;
|
2017-08-02 12:50:53 +00:00
|
|
|
|
|
|
|
class CDownloadManager
|
|
|
|
{
|
2017-08-26 22:43:05 +00:00
|
|
|
static ATL::CSimpleArray<DownloadInfo> AppsToInstallList;
|
2017-08-02 12:50:53 +00:00
|
|
|
static CDowloadingAppsListView DownloadsListView;
|
|
|
|
|
2017-08-26 22:43:05 +00:00
|
|
|
static VOID Download(const DownloadInfo& DLInfo, BOOL bIsModal = FALSE);
|
2017-11-12 21:18:57 +00:00
|
|
|
static VOID SetProgressMarquee(HWND Item, BOOL Enable);
|
2017-09-09 20:38:06 +00:00
|
|
|
|
2017-08-02 12:50:53 +00:00
|
|
|
public:
|
|
|
|
static INT_PTR CALLBACK DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
2017-08-15 22:35:45 +00:00
|
|
|
static LRESULT CALLBACK DownloadProgressProc(HWND hWnd,
|
|
|
|
UINT uMsg,
|
|
|
|
WPARAM wParam,
|
|
|
|
LPARAM lParam,
|
|
|
|
UINT_PTR uIdSubclass,
|
2017-08-02 12:50:53 +00:00
|
|
|
DWORD_PTR dwRefData);
|
|
|
|
|
|
|
|
static DWORD WINAPI ThreadFunc(LPVOID Context);
|
2017-10-21 21:00:50 +00:00
|
|
|
static BOOL DownloadListOfApplications(const ATL::CSimpleArray<CAvailableApplicationInfo>& AppsList, BOOL bIsModal = FALSE);
|
2017-08-26 22:43:05 +00:00
|
|
|
static BOOL DownloadApplication(CAvailableApplicationInfo* pAppInfo, BOOL bIsModal = FALSE);
|
2017-08-02 12:50:53 +00:00
|
|
|
static VOID DownloadApplicationsDB(LPCWSTR lpUrl);
|
2017-08-14 17:00:20 +00:00
|
|
|
static VOID LaunchDownloadDialog(BOOL);
|
2017-08-02 12:50:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Settings dialog (settingsdlg.cpp)
|
|
|
|
VOID CreateSettingsDlg(HWND hwnd);
|
|
|
|
|
|
|
|
// About dialog (aboutdlg.cpp)
|
2017-08-15 22:35:45 +00:00
|
|
|
VOID ShowAboutDialog();
|