From 37f727ac0746fd85504aa46c1f023c09b3eff33a Mon Sep 17 00:00:00 2001 From: hibby Date: Fri, 16 Feb 2018 15:17:14 +0000 Subject: New upstream version 1.8.0+repack --- HamlibTransceiver.hpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'HamlibTransceiver.hpp') diff --git a/HamlibTransceiver.hpp b/HamlibTransceiver.hpp index 567ac3db..c8c0f74d 100644 --- a/HamlibTransceiver.hpp +++ b/HamlibTransceiver.hpp @@ -25,17 +25,19 @@ class HamlibTransceiver final public: static void register_transceivers (TransceiverFactory::Transceivers *); + static void unregister_transceivers (); - explicit HamlibTransceiver (int model_number, TransceiverFactory::ParameterPack const&); - explicit HamlibTransceiver (TransceiverFactory::PTTMethod ptt_type, QString const& ptt_port); - ~HamlibTransceiver (); + explicit HamlibTransceiver (int model_number, TransceiverFactory::ParameterPack const&, + QObject * parent = nullptr); + explicit HamlibTransceiver (TransceiverFactory::PTTMethod ptt_type, QString const& ptt_port, + QObject * parent = nullptr); private: - 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) override; void poll () override; @@ -45,12 +47,13 @@ class HamlibTransceiver final QByteArray get_conf (char const * item); Transceiver::MODE map_mode (rmode_t) const; rmode_t map_mode (Transceiver::MODE mode) const; - std::tuple get_vfos () const; + std::tuple get_vfos (bool for_split) const; struct RIGDeleter {static void cleanup (RIG *);}; QScopedPointer rig_; bool back_ptt_port_; + bool one_VFO_; bool is_dummy_; // these are saved on destruction so we can start new instances @@ -60,11 +63,14 @@ class HamlibTransceiver final bool mutable reversed_; + bool freq_query_works_; + bool mode_query_works_; bool split_query_works_; bool tickle_hamlib_; // Hamlib requires a // rig_set_split_vfo() call to // establish the Tx VFO bool get_vfo_works_; // Net rigctl promises what it can't deliver + bool set_vfo_works_; // More rigctl promises which it can't deliver }; #endif -- cgit v1.2.3