libdrmconf  0.11.3
A library to program DMR radios.
dm1701.hh
1 
20 #ifndef DM1701_HH
21 #define DM1701_HH
22 
23 #include "radio.hh"
24 #include "tyt_radio.hh"
25 #include "tyt_codeplug.hh"
26 #include "tyt_callsigndb.hh"
27 #include "dm1701_codeplug.hh"
28 #include "dm1701_callsigndb.hh"
29 
30 
38 class DM1701: public TyTRadio
39 {
40  Q_OBJECT
41 
42 public:
44  explicit DM1701(TyTInterface *device=nullptr, QObject *parent=nullptr);
45 
46  const QString &name() const;
47  const RadioLimits &limits() const;
48  const Codeplug &codeplug() const;
49  Codeplug &codeplug();
50  const CallsignDB *callsignDB() const;
52 
55  static RadioInfo defaultRadioInfo();
56 
57 protected:
59  QString _name;
64 
65 private:
67  static RadioLimits *_limits;
68 };
69 
70 #endif // DM1701_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 BTECH DM1701 and Retevis RT84.
Definition: dm1701_callsigndb.hh:12
Device specific implementation of the codeplug for the Baofeng DM-1701.
Definition: dm1701_codeplug.hh:49
Implements an USB interface to the Baofeng DM-1701 and Retevis RT84 VHF/UHF 5W DMR (Tier I&II) radios...
Definition: dm1701.hh:39
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition: dm1701.cc:18
QString _name
The device identifier.
Definition: dm1701.hh:59
DM1701(TyTInterface *device=nullptr, QObject *parent=nullptr)
Do not construct this class directly, rather use Radio::detect.
Definition: dm1701.cc:11
DM1701Codeplug _codeplug
The actual binary codeplug representation.
Definition: dm1701.hh:61
const RadioLimits & limits() const
Returns the limits for this radio.
Definition: dm1701.cc:23
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition: dm1701.cc:39
static RadioInfo defaultRadioInfo()
Returns the default radio information.
Definition: dm1701.cc:30
DM1701CallsignDB _callsigndb
The callsign DB object.
Definition: dm1701.hh:63
const CallsignDB * callsignDB() const
Returns the call-sign DB instance.
Definition: dm1701.cc:49
Provides some information about a radio model.
Definition: radioinfo.hh:16
Represents the limits or the entire codeplug.
Definition: radiolimits.hh:692
Interface to TyT (and Retevis) devices.
Definition: tyt_interface.hh:64
Implements an USB interface to TYT & Retevis radios.
Definition: tyt_radio.hh:15