12 namespace swift::misc::network
40 static const QString u(
"unknown");
41 static const QString v(
"VATSIM");
42 static const QString fsd(
"FSD");
43 static const QString no(
"no system");
77 case IndexSystem: m_system = variant.
toInt();
break;
84 if (index.
isMyself()) {
return Compare::compare(m_system, compareValue.m_system); }
88 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.
@ 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.
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.
QString convertToQString(bool i18n=false) const
Cast as QString.
const QString & getSystemString() const
Get the system string.
QVariant fromValue(T &&value)
int toInt(bool *ok) const const
#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.