ReactOS 0.4.16-dev-747-gbc52d5f
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 293 of file settingsdlg.cpp.

294{
296}
#define IDD_SETTINGS_DIALOG
Definition: resource.h:63
HINSTANCE hInst
Definition: dxdiag.c:13
INT_PTR CALLBACK SettingsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4402
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAppInfo pAppInfo)

Definition at line 1144 of file loaddlg.cpp.

1145{
1146 const bool bModal = false;
1147 if (!pAppInfo)
1148 return FALSE;
1149
1151 list.AddTail(pAppInfo);
1152 return DownloadListOfApplications(list, bModal);
1153}
Definition: list.h:37
#define FALSE
Definition: types.h:117
BOOL DownloadListOfApplications(const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
Definition: loaddlg.cpp:1125

Referenced by CMainWindow::InstallApplication().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl,
BOOL  IsOfficial 
)

Definition at line 1156 of file loaddlg.cpp.

1157{
1158 const bool bModal = true;
1160 if (!CDownloadManager::CreateInstance(bModal, pDM))
1161 return;
1162
1163 DownloadInfo DatabaseDLInfo;
1164 DatabaseDLInfo.szUrl = lpUrl;
1165 DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1166 DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1167
1168 pDM->Add(DatabaseDLInfo);
1169 pDM->Show();
1170}
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:222
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 1125 of file loaddlg.cpp.

1126{
1127 if (AppsList.IsEmpty())
1128 return FALSE;
1129
1131 if (!CDownloadManager::CreateInstance(bIsModal, pDM))
1132 return FALSE;
1133
1134 for (POSITION it = AppsList.GetHeadPosition(); it;)
1135 {
1136 const CAppInfo *Info = AppsList.GetNext(it);
1137 pDM->Add(DownloadInfo(*Info));
1138 }
1139 pDM->Show();
1140 return TRUE;
1141}
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().