swift
Loading...
Searching...
No Matches
swift::misc::aviation::CAirlineIcaoCodeList Class Reference

Value object encapsulating a list of ICAO codes. More...

#include <airlineicaocodelist.h>

Inheritance diagram for swift::misc::aviation::CAirlineIcaoCodeList:
[legend]

Public Member Functions

 CAirlineIcaoCodeList ()=default
 Default constructor.
 CAirlineIcaoCodeList (const CSequence< CAirlineIcaoCode > &other)
 Construct from a base class object.
 CAirlineIcaoCodeList (std::initializer_list< CAirlineIcaoCode > il)
 Construct from initializer list.
CAirlineIcaoCodeList findByDesignator (const QString &designator) const
 Find by designator Not unique because of virtual airlines.
CAirlineIcaoCodeList findByVDesignator (const QString &designator) const
 Find by v-designator, this should be unique.
CAirlineIcaoCode findByUniqueVDesignatorOrDefault (const QString &designator, bool preferOperatingAirlines) const
 Find by ICAO code if this is unique, otherwise return default object.
CAirlineIcaoCodeList findByIataCode (const QString &iata) const
 Find by IATA code Not unique because of virtual airlines and ceased airlines.
CAirlineIcaoCode findByUniqueIataCodeOrDefault (const QString &iata) const
 Find by IATA code if this is unique, otherwise return default object.
CAirlineIcaoCodeList findByDesignatorOrIataCode (const QString &designatorOrIata) const
 Find by designator or IATA code.
CAirlineIcaoCodeList findByVDesignatorOrIataCode (const QString &designatorOrIata) const
 Find by v-designator or IATA code.
CAirlineIcaoCodeList findByCountryIsoCode (const QString &isoCode) const
 Find by country code.
CAirlineIcaoCodeList findBySimplifiedNameContaining (const QString &containedString) const
 Find if simplified name contains search string.
CAirlineIcaoCodeList findByTelephonyDesignator (const QString &candidate) const
 Find by names or telephony designator (aka callsign, not to be confused with CCallsign).
CAirlineIcaoCodeList findByNamesOrTelephonyDesignator (const QString &candidate) const
 Find by names or telephony designator (aka callsign, not to be confused with CCallsign).
CAirlineIcaoCodeList findByMilitary (bool military) const
 Find by military flag.
CAirlineIcaoCodeList findByValidDesignator () const
 The ones with a valid designator.
CAirlineIcaoCodeList findByInvalidDesignator () const
 The ones with an invalid designator.
CAirlineIcaoCode findBestMatchByCallsign (const CCallsign &callsign) const
 Use callsign to conclude airline.
CAirlineIcaoCode smartAirlineIcaoSelector (const CAirlineIcaoCode &icaoPattern, const CCallsign &callsign) const
 Best selection by given pattern.
CAirlineIcaoCodeList ifPossibleReduceNameTelephonyCountry (const swift::misc::aviation::CCallsign &cs, const QString &airlineName, const QString &telephony, const QString &countryIso, bool &reduced, const QString &logInfo, CStatusMessageList *log) const
 Reduce by airline name/telephone designator, ISO country.
CAirlineIcaoCodeList ifPossibleReduceByCountry (const QString &countryIso) const
 Reduce by ISO country.
CAirlineIcaoCodeList ifPossibleReduceByTelephonyDesignator (const QString &telephonyDesignator) const
 Reduce by telephony designator.
QStringList toIcaoDesignatorCompleterStrings (bool combinedString=true, bool sort=true) const
 String list for completion by ICAO designator.
QStringList toIcaoDesignatorNameCountryCompleterStrings (bool sort=true) const
 String list for completion by ICAO designator plus Name.
QStringList toNameCompleterStrings (bool sort=true) const
 String list for completion by name.
QSet< QString > allDesignators () const
 All designators.
QSet< QString > allVDesignators () const
 All designators.
bool containsDesignator (const QString &designator) const
 Contains given designator?
bool containsVDesignator (const QString &vDesignator) const
 Contains given designator?
AirlineIcaoIdMap toIdMap () const
 To id map.
 CSequence ()=default
 Default constructor.
 CSequence (std::initializer_list< T > il)
 Initializer list constructor.
 CSequence (QList< T > &&list)
 By QList of type T.
 CSequence (const QList< T > &list)
 By QList of type T.
template<typename It>
 CSequence (It first, It last)
 Range constructor.
 CSequence (const CSequence &other)=default
 Copy constructor.
 CSequence (CSequence &&other)=default
 Move constructor.
Public Member Functions inherited from swift::misc::CSequence< CAirlineIcaoCode >
 CSequence ()=default
 Default constructor.
CSequence & operator= (const CSequence &other)=default
 Copy assignment.
 ~CSequence ()=default
 Destructor.
QVector< CAirlineIcaoCode > toVector () const &
 Copy of internal vector.
iterator begin ()
 Returns iterator at the beginning of the sequence.
const_iterator cbegin () const
 Returns const iterator at the beginning of the sequence.
iterator end ()
 Returns iterator one past the end of the sequence.
const_iterator cend () const
 Returns const iterator one past the end of the sequence.
reverse_iterator rbegin ()
 Returns iterator at the beginning of the reversed sequence.
const_reverse_iterator crbegin () const
 Returns const iterator at the beginning of the reversed sequence.
reverse_iterator rend ()
 Returns iterator at the end of the reversed sequence.
const_reverse_iterator crend () const
 Returns const iterator at the end of the reversed sequence.
void swap (CSequence &other) noexcept
 Swap this sequence with another.
reference operator[] (size_type index)
 Access an element by its index.
reference front ()
 Access the first element.
const_reference frontOrDefault () const
 Access the first element, or a default-initialized value if the sequence is empty.
reference back ()
 Access the last element.
const_reference backOrDefault () const
 Access the last element, or a default value if the sequence is empty.
size_type size () const
 Returns number of elements in the sequence.
int sizeInt () const
 Avoid compiler warnings when using with int.
QString sizeString () const
 Convenience function.
bool empty () const
 Returns true if the sequence is empty.
bool isEmpty () const
 Synonym for empty.
void clear ()
 Removes all elements in the sequence.
void truncate (size_type maxSize)
 Changes the size of the sequence, if it is bigger than the given size.
iterator insert (iterator before, const CAirlineIcaoCode &value)
 Inserts an element into the sequence.
void push_back (const CAirlineIcaoCode &value)
 Appends an element at the end of the sequence.
void push_front (const CAirlineIcaoCode &value)
 Insert as first element.
void push_frontMaxElements (const CAirlineIcaoCode &value, int maxElements)
 Insert as first element by keep maxElements.
void push_backMaxElements (const CAirlineIcaoCode &value, int maxElements)
 Insert as last element by keep maxElements.
CSequence join (const CSequence &other) const
 Concatenates two sequences and returns the result.
void pop_back ()
 Removes an element at the end of the sequence.
void pop_front ()
 Removes an element at the front of the sequence.
iterator erase (iterator pos)
 Remove the element pointed to by the given iterator.
iterator find (const CAirlineIcaoCode &object)
 Return an iterator to the first element equal to the given object, or the end iterator if not found. O(n).
CSequence findBy (Predicate p) const
 Return a copy containing only those elements for which a given predicate returns true.
int applyIf (Predicate p, const VariantMap &newValues, bool skipEqualValues=false)
 Modify by applying a value map to each element for which a given predicate returns true.
int remove (const CAirlineIcaoCode &object)
 Remove all elements equal to the given object, if it is contained.
int removeIf (Predicate p)
 Remove elements for which a given predicate returns true.
int removeIfIn (const CSequence &other)
 Remove all elements if they are in other.
void removeIfInSubset (const CSequence &other)
 Remove all elements if they are in other.
int replace (const CAirlineIcaoCode &original, const CAirlineIcaoCode &replacement)
 Replace elements matching the given element with a replacement.
int replaceIf (Predicate p, const CAirlineIcaoCode &replacement)
 Replace elements for which a given predicate returns true.
void replaceOrAdd (const CAirlineIcaoCode &original, const CAirlineIcaoCode &replacement)
 Replace elements matching the given element. If there is no match, push the new element on the end.
void reverse ()
 In-place reverse.
Q_REQUIRED_RESULT CSequence reversed () const
 Reversed order.
void sort (Predicate p)
 In-place sort by a given comparator predicate.
void sortBy (K1 key1, Keys... keys)
 In-place sort by some particular key(s).
Q_REQUIRED_RESULT CSequence sorted (Predicate p) const
 Return a copy sorted by a given comparator predicate.
CSequence sortedBy (K1 key1, Keys... keys) const
 Return a copy sorted by some particular key(s).
void partiallySort (size_type n, Predicate p)
 In-place move the smallest n elements to the beginning and sort them.
void partiallySortBy (size_type n, K1 key1, Keys... keys)
 In-place partially sort by some particular key(s).
Q_REQUIRED_RESULT CSequence partiallySorted (size_type n, Predicate p) const
 Return a copy with the smallest n elements at the beginning and sorted.
CSequence partiallySortedBy (size_type n, K1 key1, Keys... keys) const
 Return a copy partially sorted by some particular key(s).
bool unorderedEqualsByKeys (const U &other, Key0 k0, Keys... keys) const
 Return true if this container equals another container, considering only the given element members. Order of elements is not considered; this is implemented using a transient sort, so don't overuse.
auto separate (Predicate p) const -> QMap< decltype(p(std::declval< CAirlineIcaoCode >())), CSequence >
 Split up the sequence into subsequences for which the given predicate returns the same value.
auto separateBy (Key k) const -> QMap< decltype(std::invoke(k, std::declval< CAirlineIcaoCode >())), CSequence >
 Split up the sequence into subsequences of elements having the same value for the given key.
void marshalToDataStream (QDataStream &stream) const
 Marshal a value to a QDataStream.
void unmarshalFromDataStream (QDataStream &stream)
 Unmarshal a value from a QDataStream.
Public Member Functions inherited from swift::misc::CContainerBase< CSequence< CAirlineIcaoCode > >
auto to () const
 Return a new container of a different type, containing the same elements as this one.
int removeIf (K0 k0, V0 v0, KeysValues... keysValues)
 Remove elements matching some particular key/value pair(s).
QJsonObject toJson () const
 Cast to JSON object.
QString toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const
 Convenience function JSON as string.
void convertFromJson (const QJsonObject &json)
 Assign from JSON object.
CStatusMessage convertFromJsonNoThrow (const QJsonObject &json, const CLogCategoryList &categories, const QString &prefix)
 Call convertFromJson, catch any CJsonException that is thrown and return it as CStatusMessage.
QString convertToQString (bool i18n=false) const
 Cast as QString.
QStringList toStringList (bool i18n=false) const
 To string list.
void marshallToDbus (QDBusArgument &argument) const
 Marshall without begin/endStructure, for when composed within another object.
void unmarshallFromDbus (const QDBusArgument &argument)
 Unmarshall without begin/endStructure, for when composed within another object.
Public Member Functions inherited from swift::misc::CRangeBase< CSequence< CAirlineIcaoCode > >
auto transform (F function) const
 Return a new container generated by applying some transformation function to all elements of this one.
auto findBy (Predicate p) const
 Return a copy containing only those elements for which a given predicate returns true.
const auto & findFirstBy (Predicate p) const
 Return a reference to the first element for which a given predicate returns true. Undefined if there is none.
auto findFirstByOrDefault (Predicate p, const Value &def) const
 Return a copy of the first element for which a given predicate returns true, or a default value if there is none.
bool containsBy (Predicate p) const
 Return true if there is an element for which a given predicate returns true.
bool contains (const T &object) const
 Return true if there is an element equal to given object. Uses the most efficient implementation available in the derived container.
bool equalsBy (const T &other, Predicate c) const
 Return true if this container equals another container according to the given element equality predicate.
bool equalsByKeys (const T &other, Key0 k0, Keys... keys) const
 Return true if this container equals another container, considering only the given element members.
T randomElement () const
 Pick one random element.
CSequence< CAirlineIcaoCode > randomElements (int n) const
 Copy n elements from the container at random.
CSequence< CAirlineIcaoCode > sampleElements (int n) const
 Copy n elements from the container, randomly selected but evenly distributed.
Public Member Functions inherited from swift::misc::mixin::MetaType< CSequence< CAirlineIcaoCode > >
int getMetaTypeId () const
 Returns the Qt meta type ID of this object.
QString getClassName () const
 Class name.
bool isA (int metaTypeId) const
 Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses.
Public Member Functions inherited from swift::misc::mixin::String< CSequence< CAirlineIcaoCode > >
QString toQString (bool i18n=false) const
 Cast as QString.
std::string toStdString (bool i18n=false) const
 To std string.
QString stringForStreaming () const
 String for streaming operators.
Public Member Functions inherited from swift::misc::mixin::Icon< CSequence< CAirlineIcaoCode > >
CIcons::CIcons::StandardIconUnknown16 toIcon () const
 As icon, not implemented by all classes.
Public Member Functions inherited from swift::misc::db::IDatastoreObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList, int >
CAirlineIcaoCode findByKey (int key, const CAirlineIcaoCode &notFound=CAirlineIcaoCode()) const
 Object with key, notFound otherwise.
CAirlineIcaoCodeList findByKeys (const QSet< int > &keys) const
 Object with key, notFound otherwise.
CAirlineIcaoCodeList findObjectsWithDbKey () const
 Objects with DB key.
CAirlineIcaoCodeList findObjectsWithoutDbKey () const
 Objects without DB key.
CAirlineIcaoCode maxKeyObject () const
 Object with max.key.
void sortByKey ()
 Sort by timestamp.
QSet< int > toDbKeySet () const
 All keys as set.
QMap< int, CAirlineIcaoCode > toDbKeyValueMap () const
 As map with DB key/object.
QSet< QString > toDbKeyStringSet () const
 All keys as string set (also integer keys will be converted to string).
QString dbKeysAsString (const QString &separator) const
 The DB keys as string.
int getMaxKey (bool *ok=nullptr) const
 Max.key value (making sense with integer key).
int removeObjectsWithKeys (const QSet< int > &keys)
 Remove objects with keys.
int removeObjectsWithoutDbKey ()
 Remove objects without key.
int replaceOrAddObjectsByKey (const CAirlineIcaoCodeList &container)
 Update or insert data (based on DB key).
QDateTime latestDbTimestamp () const
 Latest DB timestamp (means objects with DB key).
QDateTime oldestDbTimestamp () const
 Latest DB timestamp (means objects with DB key).
int countWithValidDbKey (bool withKey) const
 Number of objects with/without key.
bool containsAnyObjectWithoutKey () const
 Any object without key?
bool containsDbKey (int key) const
 Contains object with key?
Public Member Functions inherited from swift::misc::ITimestampObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList >
CAirlineIcaoCodeList findBefore (const QDateTime &dateTime) const
 List of objects before dateTime (older).
CAirlineIcaoCode findObjectBeforeOrDefault (qint64 msSinceEpoch) const
 Object before timestamp or default (older).
CAirlineIcaoCodeList findBeforeAndRemove (qint64 msSinceEpoch)
 Get objects before msSinceEpoch and remove those.
CAirlineIcaoCodeList findBeforeNowMinusOffset (qint64 msOffset) const
 List of objects before now - offset.
CAirlineIcaoCodeList findAfter (const QDateTime &dateTime) const
 List of objects after dateTime (newer).
CAirlineIcaoCodeList findAfterNowMinusOffset (qint64 msOffset) const
 List of objects before now - offset.
CAirlineIcaoCode findObjectAfterOrDefault (qint64 msSinceEpoch) const
 List of objects after msSinceEpoch (newer).
CAirlineIcaoCodeList findInvalidTimestamps () const
 Objects without valid timestamp.
CAirlineIcaoCode findClosestTimeDistance (qint64 msSinceEpoch) const
 Find closest (or default).
bool hasInvalidTimestamps () const
 Has invalid timestamp.
void setCurrentUtcTime ()
 Set all timestamps to now.
void setUtcTime (qint64 msSinceEpoch)
 Set all timestamps to given time.
void setInvalidTimestampsToCurrentUtcTime ()
 Set invalid timestamps to now.
QDateTime latestTimestamp () const
 Latest timestamp.
qint64 latestTimestampMsecsSinceEpoch () const
 Latest timestamp.
QDateTime oldestTimestamp () const
 Oldest timestamp.
qint64 oldestTimestampMsecsSinceEpoch () const
 Oldest timestamp.
CAirlineIcaoCode latestObject () const
 Latest object.
CAirlineIcaoCode oldestObject () const
 Latest object.
int removeBefore (const QDateTime &dateTime)
 Remove objects with timestamp before dateTime.
int removeOlderThanNowMinusOffset (qint64 offsetMs)
 Remove objects older than seconds.
void sortLatestFirst ()
 Sort by timestamp.
void sortOldestFirst ()
 Sort by timestamp.
void push_frontKeepLatestFirst (const CAirlineIcaoCode &value, bool replaceSameTimestamp=true, int maxElements=-1)
 Insert as first element by keeping maxElements and the latest first.
void push_backIncreaseTimestamp (const CAirlineIcaoCode &newObject)
 Push back and increase the timestamp at least by +1ms if equal to last element.
void push_backOverrideTimestamp (const CAirlineIcaoCode &newObject, qint64 newTsMsSinceEpoch)
 Push back, but set new timestamp.
void setNewTimestampStartingLast (qint64 startTimeStampMs, qint64 deltaTimeMs)
 Set new timestamps starting with the last element.
int replaceIfSameTimestamp (const CAirlineIcaoCode &newObject)
 Replace if an object has the same timestamp.
bool isSortedLatestLast () const
 Is completely sorted: latest last.
bool isSortedLatestFirst () const
 Is completely sorted: latest last.
void addMsecs (qint64 msToAdd)
 Adds a time to all values.
void setSortHint (HintTimestampSort hint)
 Set the hint.
MillisecondsMinMaxMean getTimestampDifferenceMinMaxMean () const
 Difference of timestamp values.
Public Member Functions inherited from swift::misc::mixin::MetaType< CAirlineIcaoCodeList >
int getMetaTypeId () const
 Returns the Qt meta type ID of this object.
QString getClassName () const
 Class name.
bool isA (int metaTypeId) const
 Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses.

Static Public Member Functions

static const QStringList & getLogCategories ()
 Categories.
static CAirlineIcaoCodeList fromDatabaseJson (const QJsonArray &array, bool ignoreIncomplete=true, CAirlineIcaoCodeList *inconsistent=nullptr)
 From our DB JSON.
Static Public Member Functions inherited from swift::misc::CContainerBase< CSequence< CAirlineIcaoCode > >
static CSequence< CAirlineIcaoCode > fromJson (const QJsonObject &json)
 Static version of convertFromJson.
static CSequence< CAirlineIcaoCode > fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg)
 Static version of convertFromJson.
Static Public Member Functions inherited from swift::misc::mixin::MetaType< CSequence< CAirlineIcaoCode > >
static void registerMetadata ()
 Register metadata.
Static Public Member Functions inherited from swift::misc::db::IDatastoreObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList, int >
static CAirlineIcaoCodeList fromMultipleJsonFormats (const QJsonObject &jsonObject)
 From multiple JSON formats.
static CAirlineIcaoCodeList fromDatabaseJson (const QJsonArray &array)
 From DB JSON with default prefixes.
Static Public Member Functions inherited from swift::misc::mixin::MetaType< CAirlineIcaoCodeList >
static void registerMetadata ()
 Register metadata.

Additional Inherited Members

Public Types inherited from swift::misc::CSequence< CAirlineIcaoCode >
using key_type
 STL compatibility.
using value_type
 STL compatilibty.
using reference
 STL compatibility.
using const_reference
 STL compatibility.
using pointer
 STL compatibility.
using const_pointer
 STL compatibility.
using const_iterator
 STL compatibility.
using iterator
 STL compatibility.
using const_reverse_iterator
 STL compatibility.
using reverse_iterator
 STL compatibility.
using difference_type
 STL compatibility.
using size_type
 STL compatibility.
Public Types inherited from swift::misc::ITimestampObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList >
enum  HintTimestampSort
 Hint if the list is sorted. More...
Protected Member Functions inherited from swift::misc::CContainerBase< CSequence< CAirlineIcaoCode > >
int getMetaTypeId () const
 Returns the Qt meta type ID of this object.
Protected Member Functions inherited from swift::misc::db::IDatastoreObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList, int >
 IDatastoreObjectList ()=default
 Constructor.
Protected Member Functions inherited from swift::misc::ITimestampObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList >
 ITimestampObjectList ()=default
 Constructor.
const CAirlineIcaoCodeList & container () const
 Container.
Static Protected Member Functions inherited from swift::misc::CRangeBase< CSequence< CAirlineIcaoCode > >
static bool equalPointers (const T *a, const U *b)
 Efficiently compare addresses of two objects. Return false if types are not compatible.
Protected Attributes inherited from swift::misc::ITimestampObjectList< CAirlineIcaoCode, CAirlineIcaoCodeList >
HintTimestampSort m_tsSortHint
 sort hint

Detailed Description

Value object encapsulating a list of ICAO codes.

Definition at line 28 of file airlineicaocodelist.h.

Constructor & Destructor Documentation

◆ CAirlineIcaoCodeList() [1/2]

swift::misc::aviation::CAirlineIcaoCodeList::CAirlineIcaoCodeList ( const CSequence< CAirlineIcaoCode > & other)

Construct from a base class object.

Definition at line 23 of file airlineicaocodelist.cpp.

◆ CAirlineIcaoCodeList() [2/2]

swift::misc::aviation::CAirlineIcaoCodeList::CAirlineIcaoCodeList ( std::initializer_list< CAirlineIcaoCode > il)

Construct from initializer list.

Definition at line 27 of file airlineicaocodelist.cpp.

Member Function Documentation

◆ allDesignators()

QSet< QString > swift::misc::aviation::CAirlineIcaoCodeList::allDesignators ( ) const

All designators.

Definition at line 462 of file airlineicaocodelist.cpp.

◆ allVDesignators()

QSet< QString > swift::misc::aviation::CAirlineIcaoCodeList::allVDesignators ( ) const

All designators.

Definition at line 476 of file airlineicaocodelist.cpp.

◆ containsDesignator()

bool swift::misc::aviation::CAirlineIcaoCodeList::containsDesignator ( const QString & designator) const

Contains given designator?

Definition at line 490 of file airlineicaocodelist.cpp.

◆ containsVDesignator()

bool swift::misc::aviation::CAirlineIcaoCodeList::containsVDesignator ( const QString & vDesignator) const

Contains given designator?

Definition at line 499 of file airlineicaocodelist.cpp.

◆ CSequence() [1/4]

swift::misc::CSequence< T >::CSequence ( const QList< T > & list)
inline

By QList of type T.

Definition at line 134 of file sequence.h.

◆ CSequence() [2/4]

template<typename It>
swift::misc::CSequence< T >::CSequence ( It first,
It last )
inline

Range constructor.

Definition at line 138 of file sequence.h.

◆ CSequence() [3/4]

swift::misc::CSequence< T >::CSequence ( QList< T > && list)
inline

By QList of type T.

Definition at line 131 of file sequence.h.

◆ CSequence() [4/4]

swift::misc::CSequence< T >::CSequence ( std::initializer_list< T > il)
inline

Initializer list constructor.

Definition at line 128 of file sequence.h.

◆ findBestMatchByCallsign()

CAirlineIcaoCode swift::misc::aviation::CAirlineIcaoCodeList::findBestMatchByCallsign ( const CCallsign & callsign) const

Use callsign to conclude airline.

Definition at line 339 of file airlineicaocodelist.cpp.

◆ findByCountryIsoCode()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByCountryIsoCode ( const QString & isoCode) const

Find by country code.

Definition at line 95 of file airlineicaocodelist.cpp.

◆ findByDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByDesignator ( const QString & designator) const

Find by designator Not unique because of virtual airlines.

Definition at line 31 of file airlineicaocodelist.cpp.

◆ findByDesignatorOrIataCode()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByDesignatorOrIataCode ( const QString & designatorOrIata) const

Find by designator or IATA code.

Definition at line 55 of file airlineicaocodelist.cpp.

◆ findByIataCode()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByIataCode ( const QString & iata) const

Find by IATA code Not unique because of virtual airlines and ceased airlines.

Definition at line 40 of file airlineicaocodelist.cpp.

◆ findByInvalidDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByInvalidDesignator ( ) const

The ones with an invalid designator.

Definition at line 144 of file airlineicaocodelist.cpp.

◆ findByMilitary()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByMilitary ( bool military) const

Find by military flag.

Definition at line 134 of file airlineicaocodelist.cpp.

◆ findByNamesOrTelephonyDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByNamesOrTelephonyDesignator ( const QString & candidate) const

Find by names or telephony designator (aka callsign, not to be confused with CCallsign).

Definition at line 124 of file airlineicaocodelist.cpp.

◆ findBySimplifiedNameContaining()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findBySimplifiedNameContaining ( const QString & containedString) const

Find if simplified name contains search string.

Definition at line 105 of file airlineicaocodelist.cpp.

◆ findByTelephonyDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByTelephonyDesignator ( const QString & candidate) const

Find by names or telephony designator (aka callsign, not to be confused with CCallsign).

Definition at line 115 of file airlineicaocodelist.cpp.

◆ findByUniqueIataCodeOrDefault()

CAirlineIcaoCode swift::misc::aviation::CAirlineIcaoCodeList::findByUniqueIataCodeOrDefault ( const QString & iata) const

Find by IATA code if this is unique, otherwise return default object.

Definition at line 49 of file airlineicaocodelist.cpp.

◆ findByUniqueVDesignatorOrDefault()

CAirlineIcaoCode swift::misc::aviation::CAirlineIcaoCodeList::findByUniqueVDesignatorOrDefault ( const QString & designator,
bool preferOperatingAirlines ) const

Find by ICAO code if this is unique, otherwise return default object.

Definition at line 74 of file airlineicaocodelist.cpp.

◆ findByValidDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByValidDesignator ( ) const

The ones with a valid designator.

Definition at line 139 of file airlineicaocodelist.cpp.

◆ findByVDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByVDesignator ( const QString & designator) const

Find by v-designator, this should be unique.

Definition at line 65 of file airlineicaocodelist.cpp.

◆ findByVDesignatorOrIataCode()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::findByVDesignatorOrIataCode ( const QString & designatorOrIata) const

Find by v-designator or IATA code.

Definition at line 85 of file airlineicaocodelist.cpp.

◆ fromDatabaseJson()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::fromDatabaseJson ( const QJsonArray & array,
bool ignoreIncomplete = true,
CAirlineIcaoCodeList * inconsistent = nullptr )
static

From our DB JSON.

Definition at line 356 of file airlineicaocodelist.cpp.

◆ getLogCategories()

const QStringList & swift::misc::aviation::CAirlineIcaoCodeList::getLogCategories ( )
static

Categories.

Definition at line 17 of file airlineicaocodelist.cpp.

◆ ifPossibleReduceByCountry()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::ifPossibleReduceByCountry ( const QString & countryIso) const

Reduce by ISO country.

Definition at line 302 of file airlineicaocodelist.cpp.

◆ ifPossibleReduceByTelephonyDesignator()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::ifPossibleReduceByTelephonyDesignator ( const QString & telephonyDesignator) const

Reduce by telephony designator.

Definition at line 321 of file airlineicaocodelist.cpp.

◆ ifPossibleReduceNameTelephonyCountry()

CAirlineIcaoCodeList swift::misc::aviation::CAirlineIcaoCodeList::ifPossibleReduceNameTelephonyCountry ( const swift::misc::aviation::CCallsign & cs,
const QString & airlineName,
const QString & telephony,
const QString & countryIso,
bool & reduced,
const QString & logInfo,
CStatusMessageList * log ) const

Reduce by airline name/telephone designator, ISO country.

Definition at line 201 of file airlineicaocodelist.cpp.

◆ smartAirlineIcaoSelector()

CAirlineIcaoCode swift::misc::aviation::CAirlineIcaoCodeList::smartAirlineIcaoSelector ( const CAirlineIcaoCode & icaoPattern,
const CCallsign & callsign ) const

Best selection by given pattern.

Definition at line 149 of file airlineicaocodelist.cpp.

◆ toIcaoDesignatorCompleterStrings()

QStringList swift::misc::aviation::CAirlineIcaoCodeList::toIcaoDesignatorCompleterStrings ( bool combinedString = true,
bool sort = true ) const

String list for completion by ICAO designator.

Definition at line 381 of file airlineicaocodelist.cpp.

◆ toIcaoDesignatorNameCountryCompleterStrings()

QStringList swift::misc::aviation::CAirlineIcaoCodeList::toIcaoDesignatorNameCountryCompleterStrings ( bool sort = true) const

String list for completion by ICAO designator plus Name.

Definition at line 416 of file airlineicaocodelist.cpp.

◆ toIdMap()

AirlineIcaoIdMap swift::misc::aviation::CAirlineIcaoCodeList::toIdMap ( ) const

To id map.

Definition at line 512 of file airlineicaocodelist.cpp.

◆ toNameCompleterStrings()

QStringList swift::misc::aviation::CAirlineIcaoCodeList::toNameCompleterStrings ( bool sort = true) const

String list for completion by name.

Definition at line 439 of file airlineicaocodelist.cpp.


The documentation for this class was generated from the following files: