19 namespace swift::misc::network
24 : m_textCodec(codec), m_sendReceive(sendReceive)
29 return static_cast<SendReceiveDetails
>(m_sendReceive);
35 static const QString s(
"Codec: '%1' details: '%2'");
41 static const QString ds(
42 "Send parts; %1 gnd: %2 interim: %3 Receive parts: %4 gnd: %5 interim: %6 3letter: %7 ICAO equipment %8");
53 bool interimSend,
bool interimReceive,
bool visualSend,
54 bool euroscopeSimDataReceive,
bool icaoEquipment)
100 if (index.
isMyself()) {
return QVariant::fromValue(*
this); }
104 case IndexTextCodec:
return QVariant::fromValue(m_textCodec);
105 case IndexSendReceiveDetails:
return QVariant::fromValue(m_sendReceive);
120 case IndexTextCodec: this->
setTextCodec(variant.value<QString>());
break;
121 case IndexSendReceiveDetails: this->
setSendReceiveDetails(variant.value<SendReceiveDetails>());
break;
133 case IndexSendReceiveDetails:
return Compare::compare(m_sendReceive, compareValue.m_sendReceive);
A sequence of log categories.
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 push_back(const T &value)
Appends an element at the end of the sequence.
Streamable status message, e.g.
constexpr static auto SeverityError
Status severities.
Status messages, e.g. from Core -> GUI.
void addCategories(const CLogCategoryList &categories)
Add some categories to all messages in the list.
ColumnIndex
Base class enums.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
Value object for a FSD setup.
static const CFsdSetup & vatsimStandard()
Standard FSD setup for official VATSIM servers.
static QString sendReceiveDetailsToString(SendReceiveDetails details)
Details as string.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
CFsdSetup()
Default constructor.
void setSendReceiveDetails(SendReceiveDetails sendReceive)
Set send / receive details.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
const QString & getTextCodec() const
Get codec.
int comparePropertyByIndex(CPropertyIndexRef index, const CFsdSetup &compareValue) const
Compare for index.
SendReceiveDetails getSendReceiveDetails() const
Get send / receive details.
void setForce3LetterAirlineCodes(bool force)
Airline codes.
QString convertToQString(bool i18n=false) const
Cast as QString.
CStatusMessageList validate() const
Validate, provide details about issues.
void setTextCodec(const QString &codec)
Set codec.
@ ReceiveAircraftParts
aircraft parts in
@ SendFplWithIcaoEquipment
send flightplan with ICAO equipment code instead of FAA code
@ SendVisualPositions
visual positions out
@ SendInterimPositions
interim positions out
@ ReceiveInterimPositions
fast position updates in
@ SendGndFlag
gnd.flag out (position)
@ SendAircraftParts
aircraft parts out
@ ReceiveGndFlag
gnd.flag in (position)
@ Force3LetterAirlineICAO
force 3 letter airline ICAO code
@ ReceiveEuroscopeSimData
euroscope SIMDATA in
Free functions in swift::misc.
SWIFT_MISC_EXPORT QStringList textCodecNames(bool simpleNames, bool mibNames)
Strip a designator from a combined string.
SWIFT_MISC_EXPORT const QString & boolToYesNo(bool v)
Bool to yes/no.
#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.