12 namespace swift::misc::network
52 static const QString u(
"unknown");
53 static const QString v(
"VATSIM");
54 static const QString s(
"swift");
55 static const QString st(
"swift (testing)");
56 static const QString fsd(
"FSD (private)");
57 static const QString no(
"no system");
73 if (index.
isMyself()) {
return QVariant::fromValue(*
this); }
77 case IndexSystem:
return QVariant::fromValue(m_system);
78 case IndexSystemString:
return QVariant::fromValue(this->
getSystemString());
93 case IndexSystem: m_system = variant.toInt();
break;
100 if (index.
isMyself()) {
return Compare::compare(m_system, compareValue.m_system); }
104 case IndexSystem:
return Compare::compare(m_system, compareValue.m_system);
Non-owning reference to a CPropertyIndex with a subset of its features.
QString toQString(bool i18n=false) const
Cast as QString.
CastType frontCasted() const
First element casted to given type, usually the PropertIndex enum.
bool isMyself() const
Myself index, used with nesting.
ColumnIndex
Base class enums.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
Ecosystem of server belonging together.
@ SwiftTest
swift test server
@ NoSystem
no relevant ecosystem
@ PrivateFSD
Private FSD environment.
int comparePropertyByIndex(CPropertyIndexRef index, const CEcosystem &compareValue) const
Compare for index.
static const CEcosystem & vatsim()
VATSIM eco system.
static const CEcosystem & swiftTest()
swift test eco system
void setPropertyByIndex(swift::misc::CPropertyIndexRef index, const QVariant &variant)
Set property by index.
System getSystem() const
Get system.
QVariant propertyByIndex(swift::misc::CPropertyIndexRef index) const
Property by index.
static const CEcosystem & privateFsd()
FSD private.
static const CEcosystem & unspecified()
Unspecified.
static const CEcosystem & swift()
swift eco system
QString convertToQString(bool i18n=false) const
Cast as QString.
const QString & getSystemString() const
Get the system string.
#define SWIFT_DEFINE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template definition of mixins for a CValueObject subclass.
#define SWIFT_VERIFY_X(COND, WHERE, WHAT)
A weaker kind of assert.