12#include "dr1801uv_interface.hh"
13#include "dr1801uv_codeplug.hh"
14#include "dr1801uv_limits.hh"
31 const QString &
name()
const;
48 virtual bool download();
49 virtual bool upload();
Controls the selection of callsigns from the UserDatabase to be encoded into the callsign db.
Definition callsigndb.hh:22
Certain flags passed to CodePlug::encode to control the transfer and encoding of the codeplug.
Definition codeplug.hh:24
This class defines the interface all device-specific code-plugs must implement.
Definition codeplug.hh:18
The config class, representing the codeplug configuration.
Definition config.hh:70
Implements the binary codeplug representation of a BTECH DR-1801UV (a.k.a, BF-1801-A6).
Definition dr1801uv_codeplug.hh:64
Implements the actual interface to the DR-1801UV, which builds upon the AuctusA6Interface.
Definition dr1801uv_interface.hh:15
Implements the BTECH DR-1801UV (BF-1801 A6).
Definition dr1801uv.hh:20
bool startUpload(Config *config, const Codeplug::Flags &flags, const ErrorStack &err)
Derives the device-specific codeplug from the generic configuration and uploads that codeplug to the ...
Definition dr1801uv.cc:71
bool startUploadSatelliteConfig(SatelliteDatabase *db, const TransferFlags &flags, const ErrorStack &err)
Assembles the satellite config and writes it to the device.
Definition dr1801uv.cc:103
const QString & name() const
Returns the name of the radio (e.g., device identifier).
Definition dr1801uv.cc:27
bool startDownload(const TransferFlags &flags, const ErrorStack &err)
Starts the download of the codeplug.
Definition dr1801uv.cc:49
Config * _config
The generic configuration.
Definition dr1801uv.hh:59
DR1801UVCodeplug _codeplug
The binary codeplug.
Definition dr1801uv.hh:57
QString _name
Holds the device name, once it got identified.
Definition dr1801uv.hh:55
DR1801UVInterface * _device
Owns the interface to the device.
Definition dr1801uv.hh:53
Codeplug::Flags _codeplugFlags
Some codeplug flags.
Definition dr1801uv.hh:61
void run()
Thread main routine, performs all blocking IO operations for codeplug up- and download.
Definition dr1801uv.cc:113
static RadioInfo defaultRadioInfo()
Returns the default radio info.
Definition dr1801uv.cc:19
const RadioLimits & limits() const
Returns the limits for this radio.
Definition dr1801uv.cc:42
const Codeplug & codeplug() const
Returns the codeplug instance.
Definition dr1801uv.cc:32
bool startUploadCallsignDB(UserDatabase *db, const CallsignDB::Flags &selection, const ErrorStack &err)
Assembles the callsign DB from the given one and uploads it to the device.
Definition dr1801uv.cc:95
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
Provides some information about a radio model.
Definition radioinfo.hh:16
Represents the limits or the entire codeplug.
Definition radiolimits.hh:712
Base class for all Radio objects.
Definition radio.hh:32
A table holding all known satellites.
Definition satellitedatabase.hh:108
Controls the transfer of codeplugs, callsign DBs etc to the device.
Definition transferflags.hh:7
Auto-updating DMR user database.
Definition userdatabase.hh:24