diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:12 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:12 +0100 |
| commit | 98c02f78b26811ba5d9962ba27ec24cacf82bb22 (patch) | |
| tree | daaf609cde31d8fb3b6c3457c43663d14f0dda80 /Transceiver/DXLabSuiteCommanderTransceiver.hpp | |
| parent | 332d2ce88c2f0bc2908cacdc6707e2f9fa49f26d (diff) | |
| parent | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (diff) | |
Update upstream source from tag 'upstream/2.7.0_rc8+repack'
Update to upstream version '2.7.0~rc8+repack'
with Debian dir 6fce941c8282d35c8df23d3de779a42e27688bc1
Diffstat (limited to 'Transceiver/DXLabSuiteCommanderTransceiver.hpp')
| -rwxr-xr-x | Transceiver/DXLabSuiteCommanderTransceiver.hpp | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/Transceiver/DXLabSuiteCommanderTransceiver.hpp b/Transceiver/DXLabSuiteCommanderTransceiver.hpp index 03ed7942..fc060fb7 100755 --- a/Transceiver/DXLabSuiteCommanderTransceiver.hpp +++ b/Transceiver/DXLabSuiteCommanderTransceiver.hpp @@ -1,59 +1,59 @@ -#ifndef DX_LAB_SUITE_COMMANDER_TRANSCEIVER_HPP__
-#define DX_LAB_SUITE_COMMANDER_TRANSCEIVER_HPP__
-
-#include <memory>
-
-#include "TransceiverFactory.hpp"
-#include "PollingTransceiver.hpp"
-
-class QTcpSocket;
-class QByteArray;
-class QString;
-
-//
-// DX Lab Suite Commander Interface
-//
-// Implemented as a Transceiver decorator because we may want the PTT
-// services of another Transceiver type such as the HamlibTransceiver
-// which can be enabled by wrapping a HamlibTransceiver instantiated
-// as a "Hamlib Dummy" transceiver in the Transceiver factory method.
-//
-class DXLabSuiteCommanderTransceiver final
- : public PollingTransceiver
-{
- Q_OBJECT; // for translation context
-
-public:
- static void register_transceivers (logger_type *, TransceiverFactory::Transceivers *, unsigned id);
-
- // takes ownership of wrapped Transceiver
- explicit DXLabSuiteCommanderTransceiver (logger_type *, std::unique_ptr<TransceiverBase> wrapped,
- QString const& address, bool use_for_ptt,
- int poll_interval, QObject * parent = nullptr);
-
-protected:
- int do_start () override;
- void do_stop () override;
- void do_frequency (Frequency, MODE, bool no_ignore) override;
- void do_tx_frequency (Frequency, MODE, bool no_ignore) override;
- void do_mode (MODE) override;
- void do_ptt (bool on) override;
-
- void do_poll () override;
-
-private:
- MODE get_mode ();
- void simple_command (QString const&);
- QString command_with_reply (QString const&);
- bool write_to_port (QString const&);
- QString frequency_to_string (Frequency) const;
- Frequency string_to_frequency (QString) const;
-
- std::unique_ptr<TransceiverBase> wrapped_; // may be null
- bool use_for_ptt_;
- QString server_;
- QTcpSocket * commander_;
- QLocale locale_;
-};
-
-#endif
+#ifndef DX_LAB_SUITE_COMMANDER_TRANSCEIVER_HPP__ +#define DX_LAB_SUITE_COMMANDER_TRANSCEIVER_HPP__ + +#include <memory> + +#include "TransceiverFactory.hpp" +#include "PollingTransceiver.hpp" + +class QTcpSocket; +class QByteArray; +class QString; + +// +// DX Lab Suite Commander Interface +// +// Implemented as a Transceiver decorator because we may want the PTT +// services of another Transceiver type such as the HamlibTransceiver +// which can be enabled by wrapping a HamlibTransceiver instantiated +// as a "Hamlib Dummy" transceiver in the Transceiver factory method. +// +class DXLabSuiteCommanderTransceiver final + : public PollingTransceiver +{ + Q_OBJECT; // for translation context + +public: + static void register_transceivers (logger_type *, TransceiverFactory::Transceivers *, unsigned id); + + // takes ownership of wrapped Transceiver + explicit DXLabSuiteCommanderTransceiver (logger_type *, std::unique_ptr<TransceiverBase> wrapped, + QString const& address, bool use_for_ptt, + int poll_interval, QObject * parent = nullptr); + +protected: + int do_start () override; + void do_stop () override; + void do_frequency (Frequency, MODE, bool no_ignore) override; + void do_tx_frequency (Frequency, MODE, bool no_ignore) override; + void do_mode (MODE) override; + void do_ptt (bool on) override; + + void do_poll () override; + +private: + MODE get_mode (); + void simple_command (QString const&); + QString command_with_reply (QString const&); + bool write_to_port (QString const&); + QString frequency_to_string (Frequency) const; + Frequency string_to_frequency (QString) const; + + std::unique_ptr<TransceiverBase> wrapped_; // may be null + bool use_for_ptt_; + QString server_; + QTcpSocket * commander_; + QLocale locale_; +}; + +#endif |
