[RAPPS] Move database source URL to settings dialog (#2792)

- Add download source in settings dialog, and apply it when download .cab file
- Now user should specify full rappmgr.cab URL
- Check if URL is vaild in settings dialog
- Move source settings to the end of struct (will refactor settings to one value per option later)
This commit is contained in:
He Yang 2020-05-20 01:06:10 +08:00 committed by GitHub
parent fb2a9bb60d
commit a21d959e90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 515 additions and 283 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <windef.h>
#include <wininet.h>
//TODO: Separate main and settings related definitions
struct SETTINGS_INFO
@ -19,6 +20,9 @@ struct SETTINGS_INFO
INT Proxy;
WCHAR szProxyServer[MAX_PATH];
WCHAR szNoProxyFor[MAX_PATH];
/* Software source settings */
BOOL bUseSource;
WCHAR szSourceURL[INTERNET_MAX_URL_LENGTH];
};
typedef SETTINGS_INFO *PSETTINGS_INFO;