libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
opengd77.hh
1#ifndef OPENGD77_HH
2#define OPENGD77_HH
3
4#include "opengd77base.hh"
5#include "opengd77_interface.hh"
6#include "opengd77_codeplug.hh"
7#include "opengd77_callsigndb.hh"
8
9
13class OpenGD77 : public OpenGD77Base
14{
15 Q_OBJECT
16
17public:
19 explicit OpenGD77(OpenGD77Interface *device=nullptr, QObject *parent=nullptr);
20
21 const QString &name() const;
22
23 const Codeplug &codeplug() const;
25
26 const CallsignDB *callsignDB() const;
28
32
33protected:
35 QString _name;
40};
41
42#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
Represents and encodes the binary format for the call-sign database within the radio.
Definition opengd77_callsigndb.hh:20
Represents, encodes and decodes the device specific codeplug for Open GD-77 firmware.
Definition opengd77_codeplug.hh:57
Implements the interface to a radio running the Open GD77 firmware.
Definition opengd77_interface.hh:155
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition opengd77.cc:14
OpenGD77CallsignDB _callsigns
The actual binary callsign DB representation.
Definition opengd77.hh:39
OpenGD77Codeplug _codeplug
The actual binary codeplug representation.
Definition opengd77.hh:37
OpenGD77(OpenGD77Interface *device=nullptr, QObject *parent=nullptr)
Do not construct this class directly, rather use Radio::detect.
Definition opengd77.cc:6
QString _name
The device identifier.
Definition opengd77.hh:35
static RadioInfo defaultRadioInfo()
Returns the default radio information.
Definition opengd77.cc:43
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition opengd77.cc:21
const CallsignDB * callsignDB() const
Returns the call-sign DB instance.
Definition opengd77.cc:32
Provides some information about a radio model.
Definition radioinfo.hh:16