ReactOS 0.4.16-dev-297-gc569aee
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 1135 of file loaddlg.cpp.

1136{
1137 if (!pAppInfo)
1138 return FALSE;
1139
1141 return TRUE;
1142}
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:457
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117

Referenced by CMainWindow::InstallApplication().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl,
BOOL  IsOfficial 
)

Definition at line 1145 of file loaddlg.cpp.

1146{
1147 static DownloadInfo DatabaseDLInfo;
1148 DatabaseDLInfo.szUrl = lpUrl;
1149 DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1150 DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1151 CDownloadManager::Download(DatabaseDLInfo, TRUE);
1152}
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:222
@ DLTYPE_DBUPDATE_UNOFFICIAL
Definition: loaddlg.cpp:64
@ DLTYPE_DBUPDATE
Definition: loaddlg.cpp:63
CStringW szName
Definition: loaddlg.cpp:128
DownloadType DLType
Definition: loaddlg.cpp:125
CStringW szUrl
Definition: loaddlg.cpp:127

Referenced by CAppDB::UpdateAvailable().

◆ DownloadListOfApplications()

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

Definition at line 1116 of file loaddlg.cpp.

1117{
1118 if (AppsList.IsEmpty())
1119 return FALSE;
1120
1121 POSITION CurrentListPosition = AppsList.GetHeadPosition();
1122 while (CurrentListPosition)
1123 {
1124 const CAppInfo *Info = AppsList.GetNext(CurrentListPosition);
1126 }
1127
1128 // Create a dialog and issue a download process
1130
1131 return TRUE;
1132}
bool IsEmpty() const
Definition: atlcoll.h:548
POSITION GetHeadPosition() const
Definition: atlcoll.h:554
E & GetNext(_Inout_ POSITION &pos)
Definition: atlcoll.h:566
static VOID Add(DownloadInfo info)
Definition: loaddlg.cpp:451
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:1101
_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 HandleInstallCommand(), HandleSetupCommand(), and CMainWindow::OnCommand().