diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /Transceiver/HamlibTransceiver.hpp | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'Transceiver/HamlibTransceiver.hpp')
| -rwxr-xr-x | Transceiver/HamlibTransceiver.hpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/Transceiver/HamlibTransceiver.hpp b/Transceiver/HamlibTransceiver.hpp index b8bd80c9..37765785 100755 --- a/Transceiver/HamlibTransceiver.hpp +++ b/Transceiver/HamlibTransceiver.hpp @@ -1,41 +1,41 @@ -#ifndef HAMLIB_TRANSCEIVER_HPP_
-#define HAMLIB_TRANSCEIVER_HPP_
-
-#include <QString>
-
-#include "TransceiverFactory.hpp"
-#include "PollingTransceiver.hpp"
-#include "pimpl_h.hpp"
-
-// hamlib transceiver and PTT mostly delegated directly to hamlib Rig class
-class HamlibTransceiver final
- : public PollingTransceiver
-{
- Q_OBJECT // for translation context
-
-public:
- static void register_transceivers (logger_type *, TransceiverFactory::Transceivers *);
- static void unregister_transceivers ();
-
- explicit HamlibTransceiver (logger_type *, unsigned model_number, TransceiverFactory::ParameterPack const&,
- QObject * parent = nullptr);
- explicit HamlibTransceiver (logger_type *, TransceiverFactory::PTTMethod ptt_type, QString const& ptt_port,
- QObject * parent = nullptr);
- ~HamlibTransceiver ();
-
-private:
- void load_user_settings ();
- 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) override;
-
- void do_poll () override;
-
- class impl;
- pimpl<impl> m_;
-};
-
-#endif
+#ifndef HAMLIB_TRANSCEIVER_HPP_ +#define HAMLIB_TRANSCEIVER_HPP_ + +#include <QString> + +#include "TransceiverFactory.hpp" +#include "PollingTransceiver.hpp" +#include "pimpl_h.hpp" + +// hamlib transceiver and PTT mostly delegated directly to hamlib Rig class +class HamlibTransceiver final + : public PollingTransceiver +{ + Q_OBJECT // for translation context + +public: + static void register_transceivers (logger_type *, TransceiverFactory::Transceivers *); + static void unregister_transceivers (); + + explicit HamlibTransceiver (logger_type *, unsigned model_number, TransceiverFactory::ParameterPack const&, + QObject * parent = nullptr); + explicit HamlibTransceiver (logger_type *, TransceiverFactory::PTTMethod ptt_type, QString const& ptt_port, + QObject * parent = nullptr); + ~HamlibTransceiver (); + +private: + void load_user_settings (); + 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) override; + + void do_poll () override; + + class impl; + pimpl<impl> m_; +}; + +#endif |
