diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
| commit | 368f5331a7641772aa7e0cd1feea57d09a394a36 (patch) | |
| tree | b421ac60cc6eb726896ea268ea24e47fc4ce7c88 /DXLabSuiteCommanderTransceiver.hpp | |
| parent | 71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff) | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack'
with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'DXLabSuiteCommanderTransceiver.hpp')
| -rw-r--r-- | DXLabSuiteCommanderTransceiver.hpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/DXLabSuiteCommanderTransceiver.hpp b/DXLabSuiteCommanderTransceiver.hpp index c039857b..b02fbef1 100644 --- a/DXLabSuiteCommanderTransceiver.hpp +++ b/DXLabSuiteCommanderTransceiver.hpp @@ -27,27 +27,29 @@ public: static void register_transceivers (TransceiverFactory::Transceivers *, int id); // takes ownership of wrapped Transceiver - explicit DXLabSuiteCommanderTransceiver (std::unique_ptr<TransceiverBase> wrapped, QString const& address, bool use_for_ptt, int poll_interval); - ~DXLabSuiteCommanderTransceiver (); + explicit DXLabSuiteCommanderTransceiver (std::unique_ptr<TransceiverBase> wrapped, + QString const& address, bool use_for_ptt, + int poll_interval, QObject * parent = nullptr); protected: - void do_start () override; + int do_start () override; void do_stop () override; - void do_frequency (Frequency, MODE) override; - void do_tx_frequency (Frequency, bool rationalise_mode) override; - void do_mode (MODE, bool rationalise) 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 poll () override; private: + MODE get_mode (bool no_debug = false); void simple_command (QString const&, bool no_debug = false); QString command_with_reply (QString const&, bool no_debug = false); bool write_to_port (QString const&); QString frequency_to_string (Frequency) const; Frequency string_to_frequency (QString) const; - std::unique_ptr<TransceiverBase> wrapped_; + std::unique_ptr<TransceiverBase> wrapped_; // may be null bool use_for_ptt_; QString server_; QTcpSocket * commander_; |
