libdrmconf  0.12.0
A library to program DMR radios.
Public Member Functions | Protected Member Functions | List of all members
CSVHandler Class Reference

Basic parse-handler interface. More...

#include <csvreader.hh>

Inheritance diagram for CSVHandler:
Inheritance graph
[legend]
Collaboration diagram for CSVHandler:
Collaboration graph
[legend]

Public Member Functions

virtual ~CSVHandler ()
 Destructor.
 
virtual bool handleRadioId (const QList< qint64 > &ids, qint64 line, qint64 column, QString &errorMessage)
 Gets called once the DMR IDs has been parsed.
 
virtual bool handleRadioName (const QString &name, qint64 line, qint64 column, QString &errorMessage)
 Gets called once the radio name has been parsed.
 
virtual bool handleIntroLine1 (const QString &text, qint64 line, qint64 column, QString &errorMessage)
 Gets called once the first intro line has been parsed.
 
virtual bool handleIntroLine2 (const QString &text, qint64 line, qint64 column, QString &errorMessage)
 Gets called once the second intro line has been parsed.
 
virtual bool handleMicLevel (unsigned level, qint64 line, qint64 column, QString &errorMessage)
 Gets called once the MIC level has been parsed.
 
virtual bool handleSpeech (bool speech, qint64 line, qint64 column, QString &errorMessage)
 Gets called once the Speech flag has been parsed.
 
virtual bool handleDTMFContact (qint64 idx, const QString &name, const QString &num, bool rxTone, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a DTMF contact has been parsed.
 
virtual bool handleDigitalContact (qint64 idx, const QString &name, DMRContact::Type type, qint64 id, bool rxTone, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a digital contact has been parsed.
 
virtual bool handleGroupList (qint64 idx, const QString &name, const QList< qint64 > &contacts, qint64 line, qint64 column, QString &errorMessage)
 Gets called once an RX group list has been parsed.
 
virtual bool handleDigitalChannel (qint64 idx, const QString &name, double rx, double tx, Channel::Power power, qint64 scan, qint64 tot, bool ro, DMRChannel::Admit admit, qint64 color, DMRChannel::TimeSlot slot, qint64 gl, qint64 contact, qint64 gps, qint64 roam, qint64 radioID, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a digital channel has been parsed.
 
virtual bool handleAnalogChannel (qint64 idx, const QString &name, double rx, double tx, Channel::Power power, qint64 scan, qint64 aprs, qint64 tot, bool ro, FMChannel::Admit admit, qint64 squelch, Signaling::Code rxTone, Signaling::Code txTone, FMChannel::Bandwidth bw, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a analog channel has been parsed.
 
virtual bool handleZone (qint64 idx, const QString &name, bool a, const QList< qint64 > &channels, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a zone list has been parsed.
 
virtual bool handleGPSSystem (qint64 idx, const QString &name, qint64 contactIdx, qint64 period, qint64 revertChannelIdx, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a GPS system has been parsed.
 
virtual bool handleAPRSSystem (qint64 idx, const QString &name, qint64 channelIdx, qint64 period, const QString &src, unsigned srcSSID, const QString &dest, unsigned destSSID, const QString &path, const QString &icon, const QString &message, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a APRS system has been parsed.
 
virtual bool handleScanList (qint64 idx, const QString &name, qint64 pch1, qint64 pch2, qint64 txch, const QList< qint64 > &channels, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a scan list has been parsed.
 
virtual bool handleRoamingZone (qint64 idx, const QString &name, const QList< qint64 > &channels, qint64 line, qint64 column, QString &errorMessage)
 Gets called once a roaming zone list has been parsed.
 

Protected Member Functions

 CSVHandler (QObject *parent=nullptr)
 Hidden constructor.
 

Detailed Description

Basic parse-handler interface.

That is, a set of callbacks getting called by the parser on the occurrence of a particular statement in the config file.


The documentation for this class was generated from the following files: