6 #ifndef SWIFT_MISC_COUNTRYLIST_H
7 #define SWIFT_MISC_COUNTRYLIST_H
14 #include <QStringList>
44 CCountry findByIsoCode(
const QString &isoCode)
const;
47 CCountry findBestMatchByCountryName(
const QString &candidate)
const;
50 CCountry findFirstByAlias(
const QString &alias)
const;
53 QStringList toIsoNameList(
bool sorted =
false)
const;
56 QStringList toNameIsoList(
bool sorted =
false)
const;
59 QStringList toNameList(
bool sorted =
false)
const;
62 QStringList toIsoList(
bool sorted =
false)
const;
65 QStringList toIso3List(
bool sorted =
false)
const;
68 static CCountryList fromDatabaseJson(
const QJsonArray &array);
Generic ordered container with value semantics.
Value object encapsulating a list of countries.
Generic sequential container with value semantics.
CSequence()=default
Default constructor.
List of objects read from database. Such objects should implement.
Free functions in swift::misc.
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.