6 #ifndef SWIFT_MISC_SIMULATION_SETTINGS_FGSWIFTBUSSETTINGS_H
7 #define SWIFT_MISC_SIMULATION_SETTINGS_FGSWIFTBUSSETTINGS_H
17 namespace swift::misc::simulation::settings
26 IndexDBusServerAddress = CPropertyIndexRef::GlobalIndexCFGSwiftBusSettings,
39 QString convertToQString(
bool i18n =
false)
const;
48 QString m_dBusServerAddress {
"tcp:host=127.0.0.1,port=45003" };
61 static const char *
key() {
return "fgswiftbus/settings"; }
66 static const QString name(
"FGSwiftBus");
static bool isSessionOrSystemAddress(const QString &address)
True if address is session or system bus address.
static bool isQtDBusAddress(const QString &address)
True if a valid Qt DBus address, e.g. "unix:tmpdir=/tmp", "tcp:host=127.0.0.1,port=45000".
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
ColumnIndex
Base class enums.
CFGSwiftBusSettings()=default
Default constructor.
void setDBusServerAddress(const QString &dBusServer)
Set DBus server.
QString getDBusServerAddress() const
DBus server.
Base class for traits to be used as template argument to swift::misc::CSetting.
static CFGSwiftBusSettings 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 bool isValid(const CFGSwiftBusSettings &settings, QString &)
Validator function. Return true if the argument is valid, false otherwise. Default implementation jus...
static const QString & humanReadable()
Optional human readable name.
#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 ...