libdrmconf  0.10.4
A library to program DMR radios.
uv390.hh
1 
21 #ifndef UV390_HH
22 #define UV390_HH
23 
24 #include "tyt_radio.hh"
25 #include "uv390_codeplug.hh"
26 #include "uv390_callsigndb.hh"
27 
28 class RadioLimits;
29 
36 class UV390 : public TyTRadio
37 {
38  Q_OBJECT
39 
40 public:
44  UV390(TyTInterface *device=nullptr, QObject *parent=nullptr);
46  virtual ~UV390();
47 
48  const QString &name() const;
49  const RadioLimits &limits() const;
50 
51  const Codeplug &codeplug() const;
52  Codeplug &codeplug();
53 
54  const CallsignDB *callsignDB() const;
56 
59  static RadioInfo defaultRadioInfo();
60 
61 private:
63  QString _name;
65  UV390Codeplug _codeplug;
67  UV390CallsignDB _callsigndb;
68 
69 private:
71  static RadioLimits *_limits;
72 };
73 
74 #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
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
Device specific implementation of the call-sign DB for the TyT MD-UV390.
Definition: uv390_callsigndb.hh:12
Device specific implementation of the codeplug for the TyT MD-UV390.
Definition: uv390_codeplug.hh:51
Implements an USB interface to the TYT MD-UV390 & Retevis RT3S VHF/UHF 5W DMR (Tier I&II) radios.
Definition: uv390.hh:37
virtual ~UV390()
Desturctor.
Definition: uv390.cc:14
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition: uv390.cc:31
static RadioInfo defaultRadioInfo()
Returns the default radio information.
Definition: uv390.cc:51
const CallsignDB * callsignDB() const
Returns the call-sign DB instance.
Definition: uv390.cc:41
UV390(TyTInterface *device=nullptr, QObject *parent=nullptr)
Constructor.
Definition: uv390.cc:8
const RadioLimits & limits() const
Returns the limits for this radio.
Definition: uv390.cc:24
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition: uv390.cc:19