[RAPPS]
[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 struct DownloadInfo;
11
12 class CDownloadManager
13 {
14 static ATL::CSimpleArray<DownloadInfo> AppsToInstallList;
15 static CDowloadingAppsListView DownloadsListView;
16 static INT iCurrentApp;
17
18 static VOID Download(const DownloadInfo& DLInfo, BOOL bIsModal = FALSE);
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
41 // Installation dialog (installdlg.cpp)
42 //BOOL InstallApplication(INT Index);