diff options
Diffstat (limited to 'Configuration.hpp')
| -rw-r--r-- | Configuration.hpp | 60 |
1 files changed, 46 insertions, 14 deletions
diff --git a/Configuration.hpp b/Configuration.hpp index e8ccbc30..3b4a9da0 100644 --- a/Configuration.hpp +++ b/Configuration.hpp @@ -2,13 +2,26 @@ #define CONFIGURATION_HPP_ #include <QObject> +#include <QByteArray> #include <QFont> #include <QString> +#include "SpecialOperatingActivity.hpp" #include "Radio.hpp" +#include "RigFrequencyChangePolicy.hpp" +#include "Audio/TxIdentity.hpp" +#include "Audio/TxPlaybackEvidence.hpp" +#include "Audio/TxRequest.hpp" #include "models/IARURegions.hpp" #include "Audio/AudioDevice.hpp" #include "Transceiver/Transceiver.hpp" +#include "Network/CloudlogConfiguration.hpp" + +// Qt 5 moc generates unqualified argument names for these value types. +using TxSessionId = TxEvidence::TxSessionId; +using TxGeneration = TxEvidence::TxGeneration; +using TxStartSnapshot = TxEvidence::TxStartSnapshot; +using TxRawPlayoutSnapshot = TxEvidence::TxRawPlayoutSnapshot; #include "otpgenerator.h" #include "pimpl_h.hpp" @@ -58,7 +71,7 @@ class LogBook; // descriptions. // class Configuration final - : public QObject + : public QObject, public CloudlogConfiguration { Q_OBJECT @@ -146,7 +159,10 @@ public: QString Territory4() const; QString highlight_orange_callsigns() const; QString highlight_blue_callsigns() const; - QString voicesPath() const; + QStringList pass_keywords () const; + QStringList blacklist_keywords () const; + QStringList whitelist_keywords () const; + QDir voice_directory () const; bool PWR_and_SWR() const; bool check_SWR() const; @@ -164,7 +180,7 @@ public: double txDelay() const; bool tci_audio() const; bool id_after_73 () const; - bool tx_QSY_allowed () const; + bool tx_frequency_corrections_allowed () const; bool progressBar_red () const; bool spot_to_psk_reporter () const; bool psk_reporter_tcpip () const; @@ -178,9 +194,9 @@ public: bool report_in_comments () const; bool specOp_in_comments () const; bool cloudlog_enabled () const; - QString cloudlog_api_url() const; - QString cloudlog_api_key() const; - qint32 cloudlog_api_station_id() const; + QString cloudlog_api_url () const override; + QString cloudlog_api_key () const override; + qint32 cloudlog_api_station_id () const override; bool prompt_to_log () const; bool autoLog() const; bool contestingOnly() const; @@ -215,8 +231,6 @@ public: bool auto_astro () const; bool single_decode () const; bool twoPass() const; - bool highDPI() const; - bool largerTabWidget() const; bool superFox() const; bool bFox() const; bool bHound() const; @@ -315,7 +329,7 @@ public: bool ShowOTP() const; unsigned int OTPinterval() const; // 0 1 2 3 4 5 6 7 8 9 - enum class SpecialOperatingActivity {NONE, NA_VHF, EU_VHF, FIELD_DAY, RTTY, WW_DIGI, FOX, HOUND, ARRL_DIGI, Q65_PILEUP}; + using SpecialOperatingActivity = ::SpecialOperatingActivity; SpecialOperatingActivity special_op_id () const; struct CalibrationParams @@ -372,11 +386,11 @@ public: void read_CALL3_version (); // Set transceiver frequency in Hertz. - Q_SLOT void transceiver_frequency (Frequency); + Q_SLOT bool transceiver_frequency (Frequency, RigFrequencyChangePolicy::ChangeKind); // Setting a non zero TX frequency means split operation // rationalise_mode means ensure TX uses same mode as RX. - Q_SLOT void transceiver_tx_frequency (Frequency = 0u); + Q_SLOT bool transceiver_tx_frequency (Frequency, RigFrequencyChangePolicy::ChangeKind); // Set transceiver mode. Q_SLOT void transceiver_mode (MODE); @@ -399,7 +413,7 @@ public: // Set period for TCI audio // - Q_SLOT void transceiver_period (double = 15.0, bool force = false); + Q_SLOT void transceiver_period (double = 15.0); // Set blocksize for TCI audio. // @@ -407,7 +421,10 @@ public: // Set modulation start TCI audio // - Q_SLOT void transceiver_modulator_start (QString="FT8", unsigned = 79, double = 1920.0, double = 1500.0, double = -3.0, bool = true, bool=false, double = 99., double = 60.0); + Q_SLOT void transceiver_modulator_start (TxEvidence::TxRequest request = {}); + + Q_SLOT void transceiver_enqueue_jtty_pcm (QByteArray const&, TxAudioQueueEpoch, qint64); + Q_SLOT void transceiver_clear_jtty_pcm (TxAudioQueueEpoch); // Set modulation start TCI audio // @@ -463,7 +480,22 @@ public: // signals a change in one of the TransceiverState members Q_SIGNAL void transceiver_update (Transceiver::TransceiverState const&) const; Q_SIGNAL void transceiver_TCIframesWritten (qint64) const; + Q_SIGNAL void transceiverReceiveAudio (ReceiveAudio) const; Q_SIGNAL void transceiver_TCImodActive (bool) const; + Q_SIGNAL void txSourceCommitted (TxEvidence::TxStartSnapshot) const; + Q_SIGNAL void rawTxPlayoutSnapshot (TxEvidence::TxRawPlayoutSnapshot) const; + Q_SIGNAL void transceiver_jtty_drained (TxAudioQueueDrainState drain) const; + Q_SIGNAL void transceiver_jtty_enqueue_accepted (qint64 enqueueId, qint64 sampleCount, + TxAudioQueueProgress progress) const; + Q_SIGNAL void transceiver_jtty_enqueue_failed (TxAudioQueueEpoch epoch, + qint64 enqueueId) const; + Q_SIGNAL void tx_inhibit_status_changed ( + bool supported, bool inhibited, QString const& holder, + quint32 hold_rx, quint32 release_rx, quint32 expiries, quint32 invalid) const; + Q_SIGNAL void tx_inhibit_command (QString const& controller, quint32 ttl_ms, + QString const& station) const; + Q_SIGNAL void tx_inhibit_invalid (quint64 count) const; + Q_SIGNAL void transceiver_closing (bool failed) const; Q_SIGNAL void leavingSettings (bool) const; // Signals a failure of a control rig CAT or PTT connection. @@ -482,7 +514,7 @@ public: public slots: Q_SLOT void transceiver_volume (double = 0); - Q_SLOT void transceiver_txvolume (double = 0); + Q_SLOT void transceiver_txvolume (double = 0, bool force = false); private: class impl; |
