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