16 namespace swift::misc::network
28 return m_rawMessage.startsWith(
"FSD Sent=>" + type) || m_rawMessage.startsWith(
"FSD Recv=>" + type);
35 static const QStringList allPacketTypes = {
"@",
61 return allPacketTypes;
66 if (index.
isMyself()) {
return QVariant::fromValue(*
this); }
72 case IndexRawMessage:
return QVariant::fromValue(m_rawMessage);
93 case IndexRawMessage: this->
setRawMessage(variant.value<QString>());
break;
Non-owning reference to a CPropertyIndex with a subset of its features.
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.
static bool canHandleIndex(CPropertyIndexRef index)
Can given index be handled.
QString getFormattedUtcTimestampHmsz() const
As hh:mm:ss.zzz.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
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 raw FSD message.
void setRawMessage(const QString &rawMessage)
Set raw message.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
bool containsString(const QString &str) const
Does the raw message contain str?
CRawFsdMessage()=default
Default constructor.
QString convertToQString(bool i18n=false) const
Cast as QString.
bool isPacketType(const QString &type) const
Returns true if the raw message is from the given PDU packet type.
static const QStringList & getAllPacketTypes()
Returns a list of all known packet types.
Free functions in swift::misc.
#define SWIFT_DEFINE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template definition of mixins for a CValueObject subclass.