6 #ifndef SWIFT_CORE_APPLICATION_APPLICATIONSETTINGS_H
7 #define SWIFT_CORE_APPLICATION_APPLICATIONSETTINGS_H
15 namespace swift::core::application
21 static const char *
key() {
return "application/actionhotkeys"; }
26 static const QString name(
"Hotkeys");
33 return std::all_of(value.
cbegin(), value.
cend(), [](
const auto &actionHotkey) {
34 return !actionHotkey.getApplicableMachine().getMachineName().isEmpty() &&
35 !actionHotkey.getAction().isEmpty() && !actionHotkey.getCombination().isEmpty();
44 static const char *
key() {
return "application/enabledsimulators"; }
49 static const QString name(
"Enabled simulators");
58 return enabledSimulators;
64 return std::all_of(pluginIdentifiers.
cbegin(), pluginIdentifiers.
cend(), [](
const auto &pluginIdentifier) {
65 return misc::simulation::CSimulatorPluginInfo::allIdentifiers().contains(pluginIdentifier);
74 static const char *
key() {
return "application/crashdumpuploadenabled"; }
79 static const QString name(
"Crash dumps");
const_iterator cbegin() const
Returns const iterator at the beginning of the sequence.
const_iterator cend() const
Returns const iterator one past the end of the sequence.
static QStringList guessDefaultPlugins()
Guess default plugins.
QList< T >::const_iterator cbegin() const const
QList< T >::const_iterator cend() const const
static const char * key()
Key string of the value. Reimplemented in derived class.
static const QString & humanReadable()
Optional human readable name.
static bool isValid(const misc::input::CActionHotkeyList &value, QString &)
Validator function. Return true if the argument is valid, false otherwise. Default implementation jus...
Uploading of crash dumps is enabled or disabled.
static const QString & humanReadable()
Optional human readable name.
static const char * key()
Key string of the value. Reimplemented in derived class.
static bool defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
Selected simulator plugins.
static const QStringList & defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
static const char * key()
Key string of the value. Reimplemented in derived class.
static const QString & humanReadable()
Optional human readable name.
static bool isValid(const QStringList &pluginIdentifiers, QString &)
Validator function. Return true if the argument is valid, false otherwise. Default implementation jus...
Base class for traits to be used as template argument to swift::misc::CSetting.