coastline 0.0.4
Loading...
Searching...
No Matches
coastline::WizardServices Struct Reference

The routines the wizard calls to check and import its files. More...

#include <setupwizard.h>

Collaboration diagram for coastline::WizardServices:

Public Attributes

std::function< std::optional< std::string >(const std::filesystem::path &)> checkDisc
 The reason a disc image is not Boss Rally, or nothing when it is.
std::function< std::optional< WizardCartridge >(const std::filesystem::path &)> identifyCartridge
 The release of a ROM image by its SHA-1, or nothing when it is not Top Gear Rally.
std::function< bool(const std::filesystem::path &, const std::filesystem::path &)> preferCartridge
 Whether a newly found ROM should replace one already selected for the same slot.
std::function< void(const std::filesystem::path &, const std::function< bool(WizardCartridge, const std::filesystem::path &)> &, const WizardProgress &)> scanArchive
 Search ZIP entries and report validated ROM images cached outside the archive.
std::function< std::optional< std::string >(const WizardImport &, const WizardProgress &)> import
 Import files on a separate thread and return a message on failure.
std::function< void(const std::string &)> openUrl
 Open an absolute UTF-8 URL in the default browser, or remain empty to disable links.
std::filesystem::path home
std::filesystem::path lastDirectory
std::filesystem::path disc
std::array< std::filesystem::path, WIZARD_CARTRIDGES > roms
 Previously entered ROM paths in their original slots, including empty slots.
std::filesystem::path searchDirectory
std::string buildRevision
std::string buildDate
std::string reimportReason
bool portableAvailable = false
bool portable = false

Detailed Description

The routines the wizard calls to check and import its files.

Member Data Documentation

◆ checkDisc

std::function<std::optional<std::string>(const std::filesystem::path &)> coastline::WizardServices::checkDisc

The reason a disc image is not Boss Rally, or nothing when it is.

◆ identifyCartridge

std::function<std::optional<WizardCartridge>(const std::filesystem::path &)> coastline::WizardServices::identifyCartridge

The release of a ROM image by its SHA-1, or nothing when it is not Top Gear Rally.

◆ preferCartridge

std::function<bool(const std::filesystem::path &, const std::filesystem::path &)> coastline::WizardServices::preferCartridge

Whether a newly found ROM should replace one already selected for the same slot.

◆ scanArchive

std::function<void(const std::filesystem::path &, const std::function<bool(WizardCartridge, const std::filesystem::path &)> &, const WizardProgress &)> coastline::WizardServices::scanArchive

Search ZIP entries and report validated ROM images cached outside the archive.

◆ import

std::function<std::optional<std::string>(const WizardImport &, const WizardProgress &)> coastline::WizardServices::import

Import files on a separate thread and return a message on failure.

◆ openUrl

std::function<void(const std::string &)> coastline::WizardServices::openUrl

Open an absolute UTF-8 URL in the default browser, or remain empty to disable links.

◆ home

std::filesystem::path coastline::WizardServices::home

The directory the file browser starts in at first.

◆ lastDirectory

std::filesystem::path coastline::WizardServices::lastDirectory

The directory last browsed, or empty.

◆ disc

std::filesystem::path coastline::WizardServices::disc

The previously entered disc image path, or empty.

◆ roms

std::array<std::filesystem::path, WIZARD_CARTRIDGES> coastline::WizardServices::roms

Previously entered ROM paths in their original slots, including empty slots.

◆ searchDirectory

std::filesystem::path coastline::WizardServices::searchDirectory

The previously entered search directory, or empty.

◆ buildRevision

std::string coastline::WizardServices::buildRevision

A version tag or short source revision.

◆ buildDate

std::string coastline::WizardServices::buildDate

The ISO 8601 UTC timestamp of the build.

◆ reimportReason

std::string coastline::WizardServices::reimportReason

Why existing assets need another import, or empty.

◆ portableAvailable

bool coastline::WizardServices::portableAvailable = false

Whether a portable installation can be selected.

◆ portable

bool coastline::WizardServices::portable = false

Whether a portable installation is selected.


The documentation for this struct was generated from the following file: