6 #ifndef SWIFT_MISC_SIMULATION_FSCOMMON_VPILOTMODELRULE_H
7 #define SWIFT_MISC_SIMULATION_FSCOMMON_VPILOTMODELRULE_H
22 namespace swift::misc::simulation::fscommon
32 IndexModelName = CPropertyIndexRef::GlobalIndexCVPilotModelRule,
42 CVPilotModelRule(
const QString &modelName,
const QString &folder,
const QString &typeCode,
43 const QString &callsignPrefix, qint64 updated);
49 const QString &
getFolder()
const {
return this->m_folder; }
52 QString getDistributor()
const;
55 const QString &
getTypeCode()
const {
return this->m_typeCode; }
61 void setModelName(
const QString &name) { this->m_modelName = name.trimmed().toUpper(); }
64 void setTypeCode(
const QString &code) { this->m_typeCode = code.trimmed().toUpper(); }
67 void setFolder(
const QString &folder) { this->m_folder = folder.trimmed().toUpper(); }
70 void setCallsignPrefix(
const QString &callsign) { this->m_callsignPrefix = callsign.trimmed().toUpper(); }
79 QString convertToQString(
bool i18n =
false)
const;
88 QString m_callsignPrefix;
89 qint64 m_updatedMsSinceEpoch;
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
ColumnIndex
Base class enums.
Aircraft model (used by another pilot, my models on disk)
Value object encapsulating information of software distributor.
const QString & getCallsignPrefix() const
Get callsign prefix.
void setModelName(const QString &name)
Model name.
void setTypeCode(const QString &code)
Type code.
const QString & getFolder() const
Get folder.
void setCallsignPrefix(const QString &callsign)
Callsign prefix.
void setFolder(const QString &folder)
Folder.
const QString & getTypeCode() const
Get type code.
const QString & getModelName() const
Get model name.
#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 ...