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 for (
const auto &actionHotkey : value)
35 if (actionHotkey.getApplicableMachine().getMachineName().isEmpty() ||
36 actionHotkey.getAction().isEmpty() || actionHotkey.getCombination().isEmpty())
49 static const char *
key() {
return "application/enabledsimulators"; }
54 static const QString name(
"Enabled simulators");
63 return enabledSimulators;
67 static bool isValid(
const QStringList &pluginIdentifiers, QString &)
69 for (
const QString &pluginIdentifier : pluginIdentifiers)
84 static const char *
key() {
return "application/crashdumpuploadenabled"; }
89 static const QString name(
"Crash dumps");
static const QStringList & allIdentifiers()
All valid identifiers.
static QStringList guessDefaultPlugins()
Guess default plugins.
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.