6 #ifndef SWIFT_MISC_AVIATION_SELCAL_H
7 #define SWIFT_MISC_AVIATION_SELCAL_H
19 namespace swift::misc::physical_quantities
23 namespace swift::misc::aviation
37 CSelcal(
const QString &code) : m_code(unifyCode(code)) {}
40 CSelcal(
const char *code) : m_code(unifyCode(code)) {}
43 bool isValid()
const {
return isValidCode(m_code); }
46 const QString &
getCode()
const {
return m_code; }
50 QList<physical_quantities::CFrequency> getFrequencies()
const;
53 bool equalsString(
const QString &code)
const;
56 QString convertToQString(
bool i18n =
false)
const;
59 static const QString &validCharacters();
62 static bool isValidCharacter(QChar c);
65 static bool isValidCode(
const QString &code);
68 static const QStringList &codePairs();
71 static QString unifyCode(
const QString &selcalCandidate);
78 static const QList<physical_quantities::CFrequency> &audioFrequencyEquivalents();
Mix of the most commonly used mixin classes.
bool isValid() const
Is valid?
const QString & getCode() const
Get SELCAL code.
CSelcal()=default
Default constructor.
CSelcal(const char *code)
Constructor needed to disambiguate implicit conversion from string literal.
CSelcal(const QString &code)
Constructor.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...