7 #include "usbdevice.hh"
47 const QList<RadioInfo> &
alias=QList<RadioInfo>());
51 const QList<RadioInfo> &
alias=QList<RadioInfo>());
60 const QString &
key()
const;
62 const QString &
name()
const;
72 const QList<RadioInfo> &
alias()
const;
86 static QList<RadioInfo>
allRadios(
bool flat=
true);
Implements an interface to Anytone AT-D578UV VHF/UHF 50W DMR (Tier I & II) radios.
Definition: d578uv.hh:19
Implements an interface to Anytone AT-D868UV VHF/UHF 7W DMR (Tier I & II) radios.
Definition: d868uv.hh:36
Implements an interface to Anytone AT-D878UV VHF/UHF 7W DMR (Tier I & II) radios.
Definition: d878uv.hh:36
Implements an USB interface to the Baofeng DM-1701 and Retevis RT84 VHF/UHF 5W DMR (Tier I&II) radios...
Definition: dm1701.hh:39
Represents a BTECH DMR-6X2UV.
Definition: dmr6x2uv.hh:22
Implements the BTECH DR-1801UV (BF-1801 A6).
Definition: dr1801uv.hh:20
Implements an USB interface to the Radioddity GD-73 UHF 2W DMR (Tier I&II) radio.
Definition: gd73.hh:22
Implements an USB interface to the Radioddity GD-77(S) VHF/UHF 5W DMR (Tier I&II) radios.
Definition: gd77.hh:22
Implements an USB interface to the TYT MD-2017 & Retevis RT82 VHF/UHF 5W DMR (Tier I&II) radios.
Definition: md2017.hh:36
Implements an USB interface to the TYT MD-390 VHF/UHF 5W DMR (Tier I&II) radio.
Definition: md390.hh:32
Implements an USB interface to Open GD-77(S) VHF/UHF 5W DMR (Tier I&II) radios.
Definition: opengd77.hh:18
Implements an USB interface to radios running the Open RTX firmware.
Definition: openrtx.hh:18
Implements an interface to the Baofeng/Radioddity RD-5R VHF/UHF 5W DMR (Tier I/II) radio.
Definition: rd5r.hh:37
Provides some information about a radio model.
Definition: radioinfo.hh:16
static QHash< unsigned, RadioInfo > _radiosById
ID->Info map.
Definition: radioinfo.hh:108
static RadioInfo byID(Radio radio)
Returns the radio info by id.
Definition: radioinfo.cc:145
Radio id() const
Returns the unique device ID (alias radios share ID).
Definition: radioinfo.cc:128
static QHash< QString, Radio > _radiosByName
Key->ID map.
Definition: radioinfo.hh:106
QString _name
Holds the name of the radio.
Definition: radioinfo.hh:96
QList< RadioInfo > _alias
Holds possible identical radios from other manufacturers.
Definition: radioinfo.hh:100
static QList< RadioInfo > allRadios(bool flat=true)
Returns the list of all known radios.
Definition: radioinfo.cc:150
const USBDeviceInfo & interface() const
Returns some information about the interface to the radio.
Definition: radioinfo.cc:114
const QString & key() const
Returns the radio key (used to identify radios in the command line).
Definition: radioinfo.cc:99
bool isValid() const
Returns true if the info is valid.
Definition: radioinfo.cc:94
Radio _radio
Holds the radio id.
Definition: radioinfo.hh:92
static RadioInfo byKey(const QString &key)
Returns the radio info by key.
Definition: radioinfo.cc:138
QString _manufacturer
Holds the name of the manufacturer.
Definition: radioinfo.hh:98
QString _key
Holds the key of the radio.
Definition: radioinfo.hh:94
static bool hasRadioKey(const QString &key)
Returns true if the given key is known.
Definition: radioinfo.cc:133
bool hasAlias() const
Returns true if the radio has aliases.
Definition: radioinfo.cc:119
const QString & manufacturer() const
Returns the manufacturer name.
Definition: radioinfo.cc:109
RadioInfo()
Empty constructor.
Definition: radioinfo.cc:87
USBDeviceInfo _interface
Holds some information about the interface to the radio.
Definition: radioinfo.hh:102
const QList< RadioInfo > & alias() const
Returns the list of alias radios.
Definition: radioinfo.cc:123
const QString & name() const
Returns the radio name.
Definition: radioinfo.cc:104
Base class for all Radio objects.
Definition: radio.hh:32
Generic information about a possible radio interface.
Definition: usbdevice.hh:121
Implements an USB interface to the TYT MD-UV390 & Retevis RT3S VHF/UHF 5W DMR (Tier I&II) radios.
Definition: uv390.hh:37