ReactOS 0.4.15-dev-8127-g6338913
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 279 of file settingsdlg.cpp.

280{
282}
#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:4399
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAppInfo pAppInfo)

Definition at line 1128 of file loaddlg.cpp.

1129{
1130 if (!pAppInfo)
1131 return FALSE;
1132
1134 return TRUE;
1135}
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 1138 of file loaddlg.cpp.

1139{
1140 static DownloadInfo DatabaseDLInfo;
1141 DatabaseDLInfo.szUrl = lpUrl;
1142 DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
1143 DatabaseDLInfo.DLType = IsOfficial ? DLTYPE_DBUPDATE : DLTYPE_DBUPDATE_UNOFFICIAL;
1144 CDownloadManager::Download(DatabaseDLInfo, TRUE);
1145}
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:217
@ 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 1109 of file loaddlg.cpp.

1110{
1111 if (AppsList.IsEmpty())
1112 return FALSE;
1113
1114 POSITION CurrentListPosition = AppsList.GetHeadPosition();
1115 while (CurrentListPosition)
1116 {
1117 const CAppInfo *Info = AppsList.GetNext(CurrentListPosition);
1119 }
1120
1121 // Create a dialog and issue a download process
1123
1124 return TRUE;
1125}
bool IsEmpty() const
Definition: atlcoll.h:545
POSITION GetHeadPosition() const
Definition: atlcoll.h:551
E & GetNext(_Inout_ POSITION &pos)
Definition: atlcoll.h:563
static VOID Add(DownloadInfo info)
Definition: loaddlg.cpp:451
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:1094
_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().