ReactOS 0.4.16-dev-1041-g8b6907f
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:4410
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAppInfo pAppInfo)

Definition at line 1151 of file loaddlg.cpp.

1152{
1153 const bool bModal = false;
1154 if (!pAppInfo)
1155 return FALSE;
1156
1158 list.AddTail(pAppInfo);
1159 return DownloadListOfApplications(list, bModal);
1160}
Definition: list.h:37
#define FALSE
Definition: types.h:117
BOOL DownloadListOfApplications(const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
Definition: loaddlg.cpp:1132

Referenced by CMainWindow::InstallApplication().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl,
BOOL  IsOfficial 
)

Definition at line 1163 of file loaddlg.cpp.

1164{
1165 const bool bModal = true;
1167 if (!CDownloadManager::CreateInstance(bModal, pDM))
1168 return;
1169
1170 DownloadInfo DatabaseDLInfo;
1171 DatabaseDLInfo.szUrl = lpUrl;
1172 DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1173 DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1174
1175 pDM->Add(DatabaseDLInfo);
1176 pDM->Show();
1177}
#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 1132 of file loaddlg.cpp.

1133{
1134 if (AppsList.IsEmpty())
1135 return FALSE;
1136
1138 if (!CDownloadManager::CreateInstance(bIsModal, pDM))
1139 return FALSE;
1140
1141 for (POSITION it = AppsList.GetHeadPosition(); it;)
1142 {
1143 const CAppInfo *Info = AppsList.GetNext(it);
1144 pDM->Add(DownloadInfo(*Info));
1145 }
1146 pDM->Show();
1147 return TRUE;
1148}
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().