6 #ifndef SWIFT_MISC_SIMULATION_SETTINGS_XSWIFTBUSSETTINGS_H
7 #define SWIFT_MISC_SIMULATION_SETTINGS_XSWIFTBUSSETTINGS_H
13 #include "misc/simulation/settings/xswiftbussettingsqtfree.h"
20 namespace swift::misc::simulation::settings
32 IndexDBusServerAddress = CPropertyIndexRef::GlobalIndexCXSwiftBusSettings,
35 IndexBundleTaxiLandingLights,
36 IndexMessageBoxMargins,
37 IndexMaxDrawingDistance,
38 IndexFollowAircraftDistance,
55 QString convertToQString(
bool i18n =
false)
const;
63 this->setDBusServerAddress(dBusAddress.toStdString());
72 this->setNightTextureMode(nightTexture.toStdString());
82 virtual void setCurrentUtcTime()
override;
92 virtual void objectUpdated() override final;
118 static const char *
key() {
return "xswiftbus/settings"; }
123 static const QString name(
"xswiftbus");
Non-owning reference to a CPropertyIndex with a subset of its features.
Status messages, e.g. from Core -> GUI.
bool isSuccess() const
All messages are marked as success.
Mix of the most commonly used mixin classes.
ColumnIndex
Base class enums.
QString toQString(bool i18n=false) const
Cast as QString.
void parseXSwiftBusStringQt(const QString &json)
Load and parse config file.
static const CXSwiftBusSettings & defaultValue()
Default value for settings.
QString toXSwiftBusJsonStringQt() const
As JSON string.
void setDBusServerAddressQt(const QString &dBusAddress)
Set DBus server.
void setNightTextureModeQt(const QString &nightTexture)
The the night texture mode.
CStatusMessageList validate() const
Valid settings?
QString getDBusServerAddressQt() const
DBus server.
QString getNightTextureModeQt() const
The the night texture mode.
xswiftbus/swift side settings class, JSON capable, shared among all services
Base class for traits to be used as template argument to swift::misc::CSetting.
static CXSwiftBusSettings defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
static bool isValid(const CXSwiftBusSettings &settings, QString &reason)
Validator function. Return true if the argument is valid, false otherwise. Default implementation jus...
static const QString & humanReadable()
Optional human readable name.
static const char * key()
Key string of the value. Reimplemented in derived class.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...