libdrmconf 0.14.0
A library to program DMR radios.
Loading...
Searching...
No Matches
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, const SelectiveCall &rxTone, const SelectiveCall &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.

Member Function Documentation

◆ handleAnalogChannel()

bool CSVHandler::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,
const SelectiveCall rxTone,
const SelectiveCall txTone,
FMChannel::Bandwidth  bw,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a analog channel has been parsed.

Reimplemented in CSVReader.

◆ handleAPRSSystem()

bool CSVHandler::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 
)
virtual

Gets called once a APRS system has been parsed.

Reimplemented in CSVReader.

◆ handleDigitalChannel()

bool CSVHandler::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 
)
virtual

Gets called once a digital channel has been parsed.

Reimplemented in CSVReader.

◆ handleDigitalContact()

bool CSVHandler::handleDigitalContact ( qint64  idx,
const QString &  name,
DMRContact::Type  type,
qint64  id,
bool  rxTone,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a digital contact has been parsed.

Reimplemented in CSVReader.

◆ handleDTMFContact()

bool CSVHandler::handleDTMFContact ( qint64  idx,
const QString &  name,
const QString &  num,
bool  rxTone,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a DTMF contact has been parsed.

Reimplemented in CSVReader.

◆ handleGPSSystem()

bool CSVHandler::handleGPSSystem ( qint64  idx,
const QString &  name,
qint64  contactIdx,
qint64  period,
qint64  revertChannelIdx,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a GPS system has been parsed.

Reimplemented in CSVReader.

◆ handleGroupList()

bool CSVHandler::handleGroupList ( qint64  idx,
const QString &  name,
const QList< qint64 > &  contacts,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once an RX group list has been parsed.

Reimplemented in CSVReader.

◆ handleIntroLine1()

bool CSVHandler::handleIntroLine1 ( const QString &  text,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once the first intro line has been parsed.

Reimplemented in CSVReader.

◆ handleIntroLine2()

bool CSVHandler::handleIntroLine2 ( const QString &  text,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once the second intro line has been parsed.

Reimplemented in CSVReader.

◆ handleMicLevel()

bool CSVHandler::handleMicLevel ( unsigned  level,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once the MIC level has been parsed.

Reimplemented in CSVReader.

◆ handleRadioId()

bool CSVHandler::handleRadioId ( const QList< qint64 > &  ids,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once the DMR IDs has been parsed.

Reimplemented in CSVReader.

◆ handleRadioName()

bool CSVHandler::handleRadioName ( const QString &  name,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once the radio name has been parsed.

Reimplemented in CSVReader.

◆ handleRoamingZone()

bool CSVHandler::handleRoamingZone ( qint64  idx,
const QString &  name,
const QList< qint64 > &  channels,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a roaming zone list has been parsed.

Reimplemented in CSVReader.

◆ handleScanList()

bool CSVHandler::handleScanList ( qint64  idx,
const QString &  name,
qint64  pch1,
qint64  pch2,
qint64  txch,
const QList< qint64 > &  channels,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a scan list has been parsed.

Reimplemented in CSVReader.

◆ handleSpeech()

bool CSVHandler::handleSpeech ( bool  speech,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once the Speech flag has been parsed.

Reimplemented in CSVReader.

◆ handleZone()

bool CSVHandler::handleZone ( qint64  idx,
const QString &  name,
bool  a,
const QList< qint64 > &  channels,
qint64  line,
qint64  column,
QString &  errorMessage 
)
virtual

Gets called once a zone list has been parsed.

Reimplemented in CSVReader.


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