diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 23:01:50 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 23:01:50 +0100 |
| commit | 5c60c77adff9a54fd5f94f9915b22ccd8c4c5a3b (patch) | |
| tree | 410fa358a5f73260a579b4d669730f319a4d2609 /Configuration.hpp | |
| parent | 6c82050de806dcdafaed0077400a6c3396a4a159 (diff) | |
| parent | e0737c56c1e384e05064a0c6e1ac46979371041b (diff) | |
Update upstream source from tag 'upstream/2.0.0+repack'
Update to upstream version '2.0.0+repack'
with Debian dir 55dbb3a6a7eb189e187dd79f732623ca0b56116d
Diffstat (limited to 'Configuration.hpp')
| -rw-r--r-- | Configuration.hpp | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/Configuration.hpp b/Configuration.hpp index c6e8875f..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,8 +118,10 @@ 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; bool clear_DX () const; bool miles () const; bool quick_call () const; @@ -125,17 +133,23 @@ public: bool decode_at_52s () const; bool single_decode () const; bool twoPass() const; + bool bFox() const; + bool bHound() const; bool x2ToneSpacing() const; - bool contestMode() const; - bool realTimeDecode() const; + bool x4ToneSpacing() const; bool MyDx() const; bool CQMyN() const; bool NDxG() const; bool NN() const; bool EMEonly() const; bool post_decodes () const; + QString opCall() const; QString udp_server_name () const; port_type udp_server_port () const; + QString n1mm_server_name () const; + port_type n1mm_server_port () const; + bool valid_n1mm_info () const; + bool broadcast_to_n1mm() const; bool accept_udp_requests () const; bool udpWindowToFront () const; bool udpWindowRestore () const; @@ -152,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 { @@ -184,6 +199,9 @@ public: // Set the calibration parameters and enable calibration corrections. void set_calibration (CalibrationParams); + // Set the dynamic grid which is only used if configuration setting is enabled. + void set_location (QString const&); + // This method queries if a CAT and PTT connection is operational. bool is_transceiver_online () const; @@ -214,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. @@ -240,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 @@ -270,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); |
