12namespace 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");
80 case IndexSystem: m_system = variant.
toInt();
break;
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.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
CEcosystem()=default
Default constructor.
@ 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.
ColumnIndex
Properties by index.
QString convertToQString(bool i18n=false) const
Cast as QString.
const QString & getSystemString() const
Get the system string.
int compare(T a, T b)
Compare arithmetic values.
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.