6 #ifndef SWIFT_CORE_VATSIM_SETTINGS_H
7 #define SWIFT_CORE_VATSIM_SETTINGS_H
20 namespace swift::core::vatsim
31 IndexInitialTime = swift::misc::CPropertyIndexRef::GlobalIndexCSettingsReaders,
65 QString convertToQString(
bool i18n =
false)
const;
75 bool m_neverUpdate =
false;
88 static const char *
key() {
return "vatsimreaders/datafile"; }
93 static const QString name(
"VATSIM data file");
112 static const char *
key() {
return "vatsimreaders/metars"; }
117 static const QString name(
"VATSIM METARs");
149 IndexRawFsdMessagesEnabled = swift::misc::CPropertyIndexRef::GlobalIndexRawFsdMessageSettings,
176 QString convertToQString(
bool i18n =
false)
const;
179 bool m_rawFsdMessagesEnabled =
false;
181 FileWriteMode m_fileWriteMode = None;
194 static const char *
key() {
return "network/rawfsdmessagelog"; }
199 static const QString name(
"FSD message Logging");
ColumnIndex
Properties by index.
QString getFileDir() const
Get file directory.
FileWriteMode
File writing mode.
FileWriteMode getFileWriteMode() const
Get file write mode.
bool areRawFsdMessagesEnabled() const
Are raw FSD messages enabled?
Settings used with readers.
const swift::misc::physical_quantities::CTime & getInitialTime() const
Get time.
void setPeriodicTime(const swift::misc::physical_quantities::CTime &time)
Set time.
ColumnIndex
Properties by index.
bool isNeverUpdate() const
Never ever update?
const swift::misc::physical_quantities::CTime & getPeriodicTime() const
Get time.
void setInitialTime(const swift::misc::physical_quantities::CTime &time)
Set time.
Generic ordered container with value semantics.
Non-owning reference to a CPropertyIndex with a subset of its features.
static const QString & logDirectory()
Directory for log files.
Mix of the most commonly used mixin classes.
static CTimeUnit s()
Second s.
Raw FSD message settings.
static const CRawFsdMessageSettings & 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 const char * key()
Key string of the value. Reimplemented in derived class.
static const QString & humanReadable()
Optional human readable name.
static const swift::core::vatsim::CReaderSettings & defaultValue()
Return the value to use in case the supplied value does not satisfy the validator....
Base class for traits to be used as template argument to swift::misc::CSetting.
#define SWIFT_CORE_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 ...