e90d351c1b1b865e2314c564fcc89a89ed68ca6c
[reactos.git] / reactos / base / applications / rapps / include / dialogs.h
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
11 class CDownloadManager
12 {
13 static PAPPLICATION_INFO AppInfo;
14 static ATL::CSimpleArray<PAPPLICATION_INFO> AppsToInstallList;
15 static CDowloadingAppsListView DownloadsListView;
16 static INT iCurrentApp;
17
18 public:
19 static INT_PTR CALLBACK DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
20 static LRESULT CALLBACK DownloadProgressProc(HWND hWnd,
21 UINT uMsg,
22 WPARAM wParam,
23 LPARAM lParam,
24 UINT_PTR uIdSubclass,
25 DWORD_PTR dwRefData);
26
27 static DWORD WINAPI ThreadFunc(LPVOID Context);
28 static BOOL DownloadListOfApplications(const ATL::CSimpleArray<PAPPLICATION_INFO>& AppsList);
29 static BOOL DownloadApplication(PAPPLICATION_INFO pAppInfo, BOOL modal = FALSE);
30 static VOID DownloadApplicationsDB(LPCWSTR lpUrl);
31 static VOID LaunchDownloadDialog(BOOL);
32 };
33
34 // Settings dialog (settingsdlg.cpp)
35 VOID CreateSettingsDlg(HWND hwnd);
36
37 // About dialog (aboutdlg.cpp)
38 VOID ShowAboutDialog(VOID);
39
40 // Installation dialog (installdlg.cpp)
41 //BOOL InstallApplication(INT Index);