diff options
Diffstat (limited to 'Configuration.hpp')
| -rw-r--r-- | Configuration.hpp | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/Configuration.hpp b/Configuration.hpp index 886bed08..3f76c1b9 100644 --- a/Configuration.hpp +++ b/Configuration.hpp @@ -5,7 +5,7 @@ #include <QFont> #include "Radio.hpp" -#include "IARURegions.hpp" +#include "models/IARURegions.hpp" #include "AudioDevice.hpp" #include "Transceiver.hpp" @@ -16,11 +16,15 @@ class QWidget; class QAudioDeviceInfo; class QString; class QDir; +class QNetworkAccessManager; class Bands; class FrequencyList_v2; class StationList; class QStringListModel; class QHostAddress; +class LotWUsers; +class DecodeHighlightingModel; +class LogBook; // // Class Configuration @@ -56,7 +60,6 @@ class Configuration final : public QObject { Q_OBJECT - Q_ENUMS (DataMode Type2MsgGen) public: using MODE = Transceiver::MODE; @@ -69,8 +72,8 @@ public: enum Type2MsgGen {type_2_msg_1_full, type_2_msg_3_full, type_2_msg_5_only}; Q_ENUM (Type2MsgGen) - explicit Configuration (QDir const& temp_directory, QSettings * settings, - QWidget * parent = nullptr); + explicit Configuration (QNetworkAccessManager *, QDir const& temp_directory, QSettings * settings, + LogBook * logbook, QWidget * parent = nullptr); ~Configuration (); void select_tab (int); @@ -96,6 +99,9 @@ public: QString my_callsign () const; QString my_grid () const; + QString Field_Day_Exchange() const; + QString RTTY_Exchange() const; + void setEU_VHF_Contest(); QFont text_font () const; QFont decoded_text_font () const; qint32 id_interval () const; @@ -112,6 +118,7 @@ public: bool log_as_RTTY () const; bool report_in_comments () const; bool prompt_to_log () const; + bool autoLog() const; bool insert_blank () const; bool DXCC () const; bool ppfx() const; @@ -130,7 +137,6 @@ public: bool bHound() const; bool x2ToneSpacing() const; bool x4ToneSpacing() const; - bool contestMode() const; bool MyDx() const; bool CQMyN() const; bool NDxG() const; @@ -160,13 +166,14 @@ public: QDir azel_directory () const; QString rig_name () const; Type2MsgGen type_2_msg_gen () const; - QColor color_CQ () const; - QColor color_MyCall () const; - QColor color_TxMsg () const; - QColor color_DXCC () const; - QColor color_NewCall () const; bool pwrBandTxMemory () const; bool pwrBandTuneMemory () const; + LotWUsers const& lotw_users () const; + DecodeHighlightingModel const& decode_highlighting () const; + bool highlight_by_mode () const; + + enum class SpecialOperatingActivity {NONE, NA_VHF, EU_VHF, FIELD_DAY, RTTY, FOX, HOUND}; + SpecialOperatingActivity special_op_id () const; struct CalibrationParams { @@ -225,8 +232,6 @@ public: Q_SLOT void transceiver_tx_frequency (Frequency = 0u); // Set transceiver mode. - // - // Rationalise means ensure TX uses same mode as RX. Q_SLOT void transceiver_mode (MODE); // Set/unset PTT. @@ -251,15 +256,17 @@ public: // These signals indicate a font has been selected and accepted for // the application text and decoded text respectively. // - Q_SIGNAL void text_font_changed (QFont); - Q_SIGNAL void decoded_text_font_changed (QFont); + Q_SIGNAL void text_font_changed (QFont) const; + Q_SIGNAL void decoded_text_font_changed (QFont) const; // // This signal is emitted when the UDP server changes // - Q_SIGNAL void udp_server_changed (QString const& udp_server); - Q_SIGNAL void udp_server_port_changed (port_type server_port); + Q_SIGNAL void udp_server_changed (QString const& udp_server) const; + Q_SIGNAL void udp_server_port_changed (port_type server_port) const; + // signal updates to decode highlighting + Q_SIGNAL void decode_highlighting_changed (DecodeHighlightingModel const&) const; // // These signals are emitted and reflect transceiver state changes @@ -281,16 +288,6 @@ private: pimpl<impl> m_; }; -#if QT_VERSION < 0x050500 -Q_DECLARE_METATYPE (Configuration::DataMode); -Q_DECLARE_METATYPE (Configuration::Type2MsgGen); -#endif - -#if !defined (QT_NO_DEBUG_STREAM) -ENUM_QDEBUG_OPS_DECL (Configuration, DataMode); -ENUM_QDEBUG_OPS_DECL (Configuration, Type2MsgGen); -#endif - ENUM_QDATASTREAM_OPS_DECL (Configuration, DataMode); ENUM_QDATASTREAM_OPS_DECL (Configuration, Type2MsgGen); |
