6#ifndef SWIFT_MISC_SIMULATION_SETTINGS_XSWIFTBUSSETTINGS_H
7#define SWIFT_MISC_SIMULATION_SETTINGS_XSWIFTBUSSETTINGS_H
13#include "misc/simulation/settings/xswiftbussettingsqtfree.h"
20namespace swift::misc::simulation::settings
32 IndexDBusServerAddress = CPropertyIndexRef::GlobalIndexCXSwiftBusSettings,
35 IndexBundleTaxiLandingLights,
36 IndexMessageBoxMargins,
37 IndexMaxDrawingDistance,
38 IndexFollowAircraftDistance,
82 void setCurrentUtcTime()
override;
92 void objectUpdated()
override;
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.
ITimestampBased()=default
Constructor.
QString toQString(bool i18n=false) const
Cast as QString.
QString convertToQString(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.
QVariant propertyByIndex(swift::misc::CPropertyIndexRef index) const
Property by index.
QString toXSwiftBusJsonStringQt() const
As JSON string.
void setDBusServerAddressQt(const QString &dBusAddress)
Set DBus server.
void setNightTextureModeQt(const QString &nightTexture)
The the night texture mode.
void setPropertyByIndex(swift::misc::CPropertyIndexRef index, const QVariant &variant)
Set property by index.
CXSwiftBusSettings()=default
Default constructor.
ColumnIndex
Properties by index.
QString getDBusServerAddressQt() const
DBus server.
QString getNightTextureModeQt() const
The the night texture mode.
const std::string & getNightTextureMode() const
The the night texture mode.
const std::string & getDBusServerAddress() const
DBus server.
void setDBusServerAddress(const std::string &dBusServer)
Set DBus server.
void setNightTextureMode(const std::string &mode)
The the night texture mode.
std::string toXSwiftBusJsonString() const
As JSON string.
bool parseXSwiftBusString(const std::string &json)
Load and parse config file.
CXSwiftBusSettingsQtFree()=default
Constructor.
QString fromStdString(const std::string &str)
std::string toStdString() const const
static const QString & humanReadable()
Optional human readable name.
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 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 ...