ReactOS 0.4.16-dev-1470-gfbd70c8
dialogs.h File Reference
#include "appinfo.h"
#include <atlsimpcoll.h>
Include dependency graph for dialogs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

VOID CreateSettingsDlg (HWND hwnd)
 
VOID DownloadApplicationsDB (LPCWSTR lpUrl, BOOL IsOfficial)
 
BOOL DownloadApplication (CAppInfo *pAppInfo)
 
BOOL DownloadListOfApplications (const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
 

Function Documentation

◆ CreateSettingsDlg()

VOID CreateSettingsDlg ( HWND  hwnd)

Definition at line 367 of file settingsdlg.cpp.

368{
369 SETTINGS_INFO NewSettingsInfo = SettingsInfo;
370 g_pNewSettingsInfo = &NewSettingsInfo;
371
373}
#define IDD_SETTINGS_DIALOG
Definition: resource.h:64
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:21
HINSTANCE hInst
Definition: dxdiag.c:13
static INT_PTR CALLBACK SettingsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
SETTINGS_INFO * g_pNewSettingsInfo
Definition: settingsdlg.cpp:10
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4475
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAppInfo pAppInfo)

Definition at line 1164 of file loaddlg.cpp.

1165{
1166 const bool bModal = false;
1167 if (!pAppInfo)
1168 return FALSE;
1169
1171 list.AddTail(pAppInfo);
1172 return DownloadListOfApplications(list, bModal);
1173}
Definition: list.h:37
#define FALSE
Definition: types.h:117
BOOL DownloadListOfApplications(const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
Definition: loaddlg.cpp:1145

Referenced by CMainWindow::InstallApplication().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl,
BOOL  IsOfficial 
)

Definition at line 1176 of file loaddlg.cpp.

1177{
1178 const bool bModal = true;
1180 if (!CDownloadManager::CreateInstance(bModal, pDM))
1181 return;
1182
1183 DownloadInfo DatabaseDLInfo;
1184 DatabaseDLInfo.szUrl = lpUrl;
1185 DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1186 DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1187
1188 pDM->Add(DatabaseDLInfo);
1189 pDM->Show();
1190}
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:227
static BOOL CreateInstance(BOOL Modal, CComPtr< CDownloadManager > &Obj)
Definition: loaddlg.cpp:498
@ DLTYPE_DBUPDATE_UNOFFICIAL
Definition: loaddlg.cpp:77
@ DLTYPE_DBUPDATE
Definition: loaddlg.cpp:76
CStringW szName
Definition: loaddlg.cpp:160
DownloadType DLType
Definition: loaddlg.cpp:157
CStringW szUrl
Definition: loaddlg.cpp:159

Referenced by CAppDB::UpdateAvailable().

◆ DownloadListOfApplications()

BOOL DownloadListOfApplications ( const CAtlList< CAppInfo * > &  AppsList,
BOOL  bIsModal 
)

Definition at line 1145 of file loaddlg.cpp.

1146{
1147 if (AppsList.IsEmpty())
1148 return FALSE;
1149
1151 if (!CDownloadManager::CreateInstance(bIsModal, pDM))
1152 return FALSE;
1153
1154 for (POSITION it = AppsList.GetHeadPosition(); it;)
1155 {
1156 const CAppInfo *Info = AppsList.GetNext(it);
1157 pDM->Add(DownloadInfo(*Info));
1158 }
1159 pDM->Show();
1160 return TRUE;
1161}
bool IsEmpty() const
Definition: atlcoll.h:548
POSITION GetHeadPosition() const
Definition: atlcoll.h:554
E & GetNext(_Inout_ POSITION &pos)
Definition: atlcoll.h:566
#define TRUE
Definition: types.h:120
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690

Referenced by DownloadApplication(), HandleInstallCommand(), HandleSetupCommand(), and CMainWindow::OnCommand().