libdrmconf  0.10.4
A library to program DMR radios.
md390.hh
1 
19 #ifndef MD390_HH
20 #define MD390_HH
21 
22 #include "tyt_radio.hh"
23 #include "md390_codeplug.hh"
24 
31 class MD390 : public TyTRadio
32 {
33  Q_OBJECT
34 
35 public:
40  MD390(TyTInterface *device=nullptr, const ErrorStack &err=ErrorStack(), QObject *parent=nullptr);
41 
42  const QString &name() const;
43  const RadioLimits &limits() const;
44  const Codeplug &codeplug() const;
45  Codeplug &codeplug();
46 
47  const CallsignDB *callsignDB() const;
49 
52  static RadioInfo defaultRadioInfo();
53 
54 private:
56  QString _name;
58  MD390Codeplug _codeplug;
59 
60 private:
63  RadioLimits *_limits;
64 };
65 
66 #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
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Device specific implementation of the codeplug for the TyT MD-390(U/V).
Definition: md390_codeplug.hh:37
Implements an USB interface to the TYT MD-390 VHF/UHF 5W DMR (Tier I&II) radio.
Definition: md390.hh:32
const RadioLimits & limits() const
Returns the limits for this radio.
Definition: md390.cc:84
const CallsignDB * callsignDB() const
Returns the call-sign DB instance.
Definition: md390.cc:99
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition: md390.cc:79
MD390(TyTInterface *device=nullptr, const ErrorStack &err=ErrorStack(), QObject *parent=nullptr)
Constructor.
Definition: md390.cc:13
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition: md390.cc:89
static RadioInfo defaultRadioInfo()
Returns the default radio information.
Definition: md390.cc:109
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