libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
openuv380.hh
1#ifndef OPENUV380_HH
2#define OPENUV380_HH
3
4#include "opengd77base.hh"
5#include "openuv380_codeplug.hh"
6#include "openuv380_callsigndb.hh"
7
8
12class OpenUV380 : public OpenGD77Base
13{
14 Q_OBJECT
15
16public:
18 explicit OpenUV380(OpenGD77Interface *device=nullptr, QObject *parent=nullptr);
19
20 const QString &name() const;
21
22 const Codeplug &codeplug() const;
24
25 const CallsignDB *callsignDB() const;
27
31
32protected:
34 QString _name;
39};
40
41#endif // OPENGD77_HH
Abstract base class of all callsign database implementations.
Definition callsigndb.hh:16
This class defines the interface all device-specific code-plugs must implement.
Definition codeplug.hh:18
OpenGD77Base(OpenGD77Interface *device=nullptr, QObject *parent=nullptr)
Do not construct this class directly, rather use Radio::detect.
Definition opengd77base.cc:14
Implements the interface to a radio running the Open GD77 firmware.
Definition opengd77_interface.hh:155
Represents and encodes the binary format for the call-sign database within the radio.
Definition openuv380_callsigndb.hh:20
Represents, encodes and decodes the device specific codeplug for Open MD-UV380 firmware.
Definition openuv380_codeplug.hh:14
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition openuv380.cc:20
OpenUV380CallsignDB _callsigns
The actual binary callsign DB representation.
Definition openuv380.hh:38
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition openuv380.cc:14
QString _name
The device identifier.
Definition openuv380.hh:34
OpenUV380(OpenGD77Interface *device=nullptr, QObject *parent=nullptr)
Do not construct this class directly, rather use Radio::detect.
Definition openuv380.cc:5
const CallsignDB * callsignDB() const
Returns the call-sign DB instance.
Definition openuv380.cc:31
OpenUV380Codeplug _codeplug
The actual binary codeplug representation.
Definition openuv380.hh:36
static RadioInfo defaultRadioInfo()
Returns the default radio information.
Definition openuv380.cc:42
Provides some information about a radio model.
Definition radioinfo.hh:16