libdrmconf  0.10.4
A library to program DMR radios.
md2017.hh
1 
22 #ifndef MD2017_HH
23 #define MD2017_HH
24 
25 #include "tyt_radio.hh"
26 #include "md2017_codeplug.hh"
27 #include "md2017_callsigndb.hh"
28 
35 class MD2017 : public TyTRadio
36 {
37  Q_OBJECT
38 
39 public:
43  MD2017(TyTInterface *device=nullptr, QObject *parent=nullptr);
45  virtual ~MD2017();
46 
47  const QString &name() const;
48  const RadioLimits &limits() const;
49 
50  const Codeplug &codeplug() const;
51  Codeplug &codeplug();
52 
53  const CallsignDB *callsignDB() const;
55 
58  static RadioInfo defaultRadioInfo();
59 
60 private:
62  QString _name;
64  MD2017Codeplug _codeplug;
66  MD2017CallsignDB _callsigndb;
67 
68 private:
70  static RadioLimits *_limits;
71 };
72 
73 #endif // MD2017_HH
Abstract base class of all callsign database implementations.
Definition: callsigndb.hh:14
This class defines the interface all device-specific code-plugs must implement.
Definition: codeplug.hh:18
Device specific implementation of the call-sign DB for the TyT MD-2017.
Definition: md2017_callsigndb.hh:12
Device specific implementation of the codeplug for the TyT MD-2017.
Definition: md2017_codeplug.hh:52
Implements an USB interface to the TYT MD-2017 & Retevis RT82 VHF/UHF 5W DMR (Tier I&II) radios.
Definition: md2017.hh:36
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition: md2017.cc:18
MD2017(TyTInterface *device=nullptr, QObject *parent=nullptr)
Constructor.
Definition: md2017.cc:7
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition: md2017.cc:30
const CallsignDB * callsignDB() const
Returns the call-sign DB instance.
Definition: md2017.cc:40
virtual ~MD2017()
Desturctor.
Definition: md2017.cc:13
const RadioLimits & limits() const
Returns the limits for this radio.
Definition: md2017.cc:23
static RadioInfo defaultRadioInfo()
Returns the default radio information.
Definition: md2017.cc:50
Provides some information about a radio model.
Definition: radioinfo.hh:16
Represents the limits or the entire codeplug.
Definition: radiolimits.hh:678
Interface to TyT (and Retevis) devices.
Definition: tyt_interface.hh:64
Implements an USB interface to TYT & Retevis radios.
Definition: tyt_radio.hh:15