mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Enable flag for modulator. Used with the GUI for MUTE.
This commit is contained in:
@@ -65,6 +65,7 @@ namespace BlackMisc
|
||||
argument << this->m_digits;
|
||||
argument << this->m_volumeInput;
|
||||
argument << this->m_volumeOutput;
|
||||
argument << this->m_enabled;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -78,6 +79,7 @@ namespace BlackMisc
|
||||
argument >> this->m_digits;
|
||||
argument >> this->m_volumeInput;
|
||||
argument >> this->m_volumeOutput;
|
||||
argument >> this->m_enabled;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace BlackMisc
|
||||
BlackMisc::PhysicalQuantities::CFrequency m_frequencyStandby; //!< standby frequency
|
||||
qint32 m_volumeInput; //!< volume input
|
||||
qint32 m_volumeOutput; //!< volume output
|
||||
bool m_enabled; //!< is enabled, used e.g. for mute etc.
|
||||
|
||||
protected:
|
||||
int m_digits; //!< digits used
|
||||
@@ -46,7 +47,7 @@ namespace BlackMisc
|
||||
* \param digits
|
||||
*/
|
||||
CModulator(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency, int digits) :
|
||||
CAvionicsBase(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency), m_volumeInput(0), m_volumeOutput(0), m_digits(digits) {}
|
||||
CAvionicsBase(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency), m_volumeInput(0), m_volumeOutput(0), m_digits(digits), m_enabled(true) {}
|
||||
|
||||
/*!
|
||||
* \brief String for converter
|
||||
@@ -299,6 +300,18 @@ namespace BlackMisc
|
||||
*/
|
||||
void setVolumeInput(qint32 volume) { this->m_volumeInput = volume; }
|
||||
|
||||
/*!
|
||||
* \brief Enabled?
|
||||
* \return
|
||||
*/
|
||||
bool isEnabled() const { return this->m_enabled;}
|
||||
|
||||
/*!
|
||||
* \brief Enabled?
|
||||
* \param
|
||||
*/
|
||||
void setEnabled(bool enable) { this->m_enabled = enable;}
|
||||
|
||||
/*!
|
||||
* \brief Register metadata
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user