libdrmconf  0.10.4
A library to program DMR radios.
rd5r.hh
1 
23 #ifndef RD5R_HH
24 #define RD5R_HH
25 
26 #include "radioddity_radio.hh"
27 #include "rd5r_codeplug.hh"
28 
36 class RD5R: public RadioddityRadio
37 {
38  Q_OBJECT
39 
40 public:
44  RD5R(RadioddityInterface *device=nullptr, QObject *parent=nullptr);
45 
46  virtual ~RD5R();
47 
48  const QString &name() const;
49  const RadioLimits &limits() const;
50  const Codeplug &codeplug() const;
51  Codeplug &codeplug();
52 
54  static RadioInfo defaultRadioInfo();
55 
56 private:
58  QString _name;
60  RD5RCodeplug _codeplug;
61 
62 private:
64  static RadioLimits *_limits;
65 };
66 
67 #endif // RD5R_HH
This class defines the interface all device-specific code-plugs must implement.
Definition: codeplug.hh:18
Represents, encodes and decodes the device specific codeplug for a Baofeng/Radioddity RD-5R.
Definition: rd5r_codeplug.hh:78
Implements an interface to the Baofeng/Radioddity RD-5R VHF/UHF 5W DMR (Tier I/II) radio.
Definition: rd5r.hh:37
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition: rd5r.cc:34
static RadioInfo defaultRadioInfo()
Returns the default info about the radio.
Definition: rd5r.cc:44
const RadioLimits & limits() const
Returns the limits for this radio.
Definition: rd5r.cc:27
RD5R(RadioddityInterface *device=nullptr, QObject *parent=nullptr)
Constructor.
Definition: rd5r.cc:11
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition: rd5r.cc:22
Provides some information about a radio model.
Definition: radioinfo.hh:16
Represents the limits or the entire codeplug.
Definition: radiolimits.hh:678
Implements a radio interface for radios using the HID USB schema (i.e.
Definition: radioddity_interface.hh:18
Base class for all Radioddity radios.
Definition: radioddity_radio.hh:15