6 #include <QDBusMetaType>
13 namespace swift::misc::aviation
19 for (
const QString &c : callsigns)
21 if (c.isEmpty()) {
continue; }
29 if (callsign.
isEmpty()) {
return; }
39 QStringList callsigns;
41 if (sorted) { callsigns.sort(); }
47 if (this->
isEmpty()) {
return {}; }
53 qRegisterMetaType<swift::misc::CSequence<CCallsign>>();
54 qDBusRegisterMetaType<swift::misc::CSequence<CCallsign>>();
55 qRegisterMetaType<swift::misc::CCollection<CCallsign>>();
56 qDBusRegisterMetaType<swift::misc::CCollection<CCallsign>>();
57 qRegisterMetaType<CCallsignSet>();
58 qDBusRegisterMetaType<CCallsignSet>();
59 registerMetaValueType<CCallsignSet>();
bool isEmpty() const
Synonym for empty.
iterator push_back(const CCallsign &value)
Synonym for insert.
bool contains(const T &object) const
Return true if there is an element equal to given object. Uses the most efficient implementation avai...
Value object encapsulating information of a callsign.
const QString & asString() const
Get callsign (normalized)
TypeHint
Representing what.
bool isEmpty() const
Is empty?
static void registerMetadata()
Register metadata.
QStringList getCallsignStrings(bool sorted=false) const
The callsign strings.
QString getCallsignsAsString(bool sorted=false, const QString &separator=", ") const
Callsigns as string.
CCallsignSet()
Default constructor.
bool containsCallsign(const QString &callsign) const
Contains by string.
#define SWIFT_DEFINE_COLLECTION_MIXINS(Namespace, T, Set)
Explicit template definition of mixins for a CCollection subclass.