This is patch sequence I started sometime in 2020, but only got around to finishing off recently.
This includes various small tidy-ups, and then lays some groundwork for a command line installation tool. At the moment, all this can do is retrieve a (compressed) setup.ini from a selected mirror and parse it. Package fetching and installation etc. remain to be looked at. Jon Turney (16): Drop forward declaration of non-existent class IniState Move setup_exts[] to the only place it's used Split GuiParseFeedback out from ini fetcher Split out site into SiteSettings and SitePage Don't call Antivirus::AtExit() directly from Logger::exit() Simplify invocation of UserSettings::open_settings() Split out URL fetching progress reporting Instantiate found_ini_list in ini.cc Move is_64bit to state Move setup.ini pathame components to ini.cc Drop hinstance global Spit out GetNetAuth from NetIO Split out hash checking progress reporting Push check_for_cached into package_source Put various shared subcomponents into a convenience library Add beginnings of a command line installation tool AntiVirus.cc | 4 +- CliParseFeedback.h | 28 -- Feedback.h | 58 ++++ GetNetAuth.h | 30 ++ IniDBBuilderPackage.cc | 4 +- IniDBBuilderPackage.h | 6 +- IniParseFeedback.h | 38 --- LogFile.cc | 18 +- LogFile.h | 8 +- Makefile.am | 284 ++++++++++-------- SiteSetting.cc | 193 ++++++++++++ site.h => SiteSetting.h | 57 +--- UserSettings.cc | 12 +- UserSettings.h | 4 +- choose.cc | 4 +- cli/CliFeedback.h | 60 ++++ cli/CliGetNetAuth.cc | 45 +++ cli/CliGetNetAuth.h | 32 ++ cli/CliGetUrlFeedback.cc | 91 ++++++ cli/CliHashCheckFeedback.cc | 30 ++ .../CliParseFeedback.cc | 28 +- cli/cyclops.cc | 186 ++++++++++++ crypto.cc | 18 +- crypto.h | 9 +- dialog.h | 3 - download.cc | 121 +------- download.h | 6 - fromcwd.cc | 11 +- geturl.cc | 130 ++------ geturl.h | 13 +- gui/GuiFeedback.h | 69 +++++ gui/GuiGetNetAuth.cc | 138 +++++++++ gui/GuiGetNetAuth.h | 38 +++ gui/GuiGetUrlFeedback.cc | 119 ++++++++ gui/GuiHashCheckFeedback.cc | 34 +++ gui/GuiParseFeedback.cc | 149 +++++++++ site.cc => gui/SitePage.cc | 191 +----------- gui/SitePage.h | 45 +++ ini.cc | 178 +++-------- ini.h | 19 +- inilex.ll | 6 +- inilintmain.cc | 10 +- install.cc | 6 +- main.cc | 50 ++- msg.cc | 5 +- net.cc | 5 + netio.cc | 125 +------- netio.h | 19 +- nio-ie5.cc | 4 +- package_db.cc | 6 +- package_db.h | 3 +- package_meta.cc | 11 +- package_meta.h | 5 +- package_source.cc | 126 ++++++-- package_source.h | 12 +- splash.cc | 2 +- state.cc | 6 + state.h | 2 + threebar.cc | 2 +- 59 files changed, 1853 insertions(+), 1063 deletions(-) delete mode 100644 CliParseFeedback.h create mode 100644 Feedback.h create mode 100644 GetNetAuth.h delete mode 100644 IniParseFeedback.h create mode 100644 SiteSetting.cc rename site.h => SiteSetting.h (74%) create mode 100644 cli/CliFeedback.h create mode 100644 cli/CliGetNetAuth.cc create mode 100644 cli/CliGetNetAuth.h create mode 100644 cli/CliGetUrlFeedback.cc create mode 100644 cli/CliHashCheckFeedback.cc rename CliParseFeedback.cc => cli/CliParseFeedback.cc (58%) create mode 100644 cli/cyclops.cc create mode 100644 gui/GuiFeedback.h create mode 100644 gui/GuiGetNetAuth.cc create mode 100644 gui/GuiGetNetAuth.h create mode 100644 gui/GuiGetUrlFeedback.cc create mode 100644 gui/GuiHashCheckFeedback.cc create mode 100644 gui/GuiParseFeedback.cc rename site.cc => gui/SitePage.cc (75%) create mode 100644 gui/SitePage.h -- 2.43.0