6 #ifndef SWIFT_CORE_DATA_VATSIMDATA_H
7 #define SWIFT_CORE_DATA_VATSIMDATA_H
36 IndexServerFiles = swift::misc::CPropertyIndexRef::GlobalIndexCVatsimSetup,
85 QString convertToQString(
bool i18n =
false)
const;
88 QString convertToQString(
const QString &separator,
bool i18n =
false)
const;
117 static const char *
key() {
return "vatsimsetup"; }
125 static const QString name(
"VATSIM setup");
134 static const char *
key() {
return "vatsimserver"; }
142 static const QString name(
"Last VATSIM server");
VATSIM data (servers, URLs) cached as last known good setup.
const swift::misc::network::CServerList & getVoiceServers() const
Voice servers.
const swift::misc::network::CUrl & getServerFileUrl() const
Server file URL.
void setServerFileUrl(const swift::misc::network::CUrl &url)
Set server file URL.
void setDataFileUrl(const swift::misc::network::CUrl &url)
Set VATSIM data file URL.
const swift::misc::network::CServerList & getFsdServers() const
FSD servers.
void setFsdServers(const swift::misc::network::CServerList &servers)
Set FSD servers.
ColumnIndex
Properties by index.
const swift::misc::network::CUrl & getMetarFileUrl() const
METAR file URL.
void setVoiceServers(const swift::misc::network::CServerList &servers)
Set voice servers.
const swift::misc::network::CUrl & getDataFileUrl() const
VATSIM data file URL.
void setMetarFileUrl(const swift::misc::network::CUrl &url)
METAR file URL.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Value object encapsulating a list of servers.
Value object encapsulating information of a location, kind of simplified CValueObject compliant versi...
Core data traits (aka cached values) and classes.
Trait for last (most recently) used VATSIM server and user.
static const QString & humanReadable()
Optional human readable name.
static constexpr bool isPinned()
If true, then value will be synchronously loaded when CDataCache is constructed. Good for small,...
static const char * key()
If true, then value will be synchronously loaded when CDataCache is constructed. Good for small,...
Trait for global setup data.
static const char * key()
Key string of the value. Reimplemented in derived class.
static constexpr bool isPinned()
If true, then value will be synchronously loaded when CDataCache is constructed. Good for small,...
static const QString & humanReadable()
Optional human readable name.
Base class for traits to be used as template argument to swift::misc::CData.
#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 ...