JS8Call-Improved master
Loading...
Searching...
No Matches
ADIF Class Reference

Classes

struct  QSO

Public Member Functions

void init (QString const &filename)
 Initialize the ADIF instance with the specified filename.
void load ()
 Load ADIF records from the specified file into the internal data structure.
void add (QString const &call, QString const &band, QString const &mode, const QString &submode, QString const &grid, QString const &date, const QString &name, const QString &comment)
 Add a new QSO to the internal data structure.
bool match (QString const &call, QString const &band) const
 Check if a callsign and band combination exists in the internal data structure.
QList< ADIF::QSOfind (QString const &call) const
 Find QSOs associated with a given callsign.
QList< QString > getCallList () const
 Get a list of all callsigns in the internal data structure.
qsizetype getCount () const
 Get the count of QSOs in the internal data structure.
bool addQSOToFile (QByteArray const &ADIF_record)
 Open the ADIF file and append the QSO details.
QByteArray QSOToADIF (QString const &hisCall, QString const &hisGrid, QString const &mode, QString const &submode, QString const &rptSent, QString const &rptRcvd, QDateTime const &dateTimeOn, QDateTime const &dateTimeOff, QString const &band, QString const &comments, QString const &name, QString const &strDialFreq, QString const &m_myCall, QString const &m_myGrid, QString const &operator_call, const QMap< QString, QVariant > &additionalFields)
 Convert QSO details into an ADIF record format.

Member Function Documentation

◆ add()

void ADIF::add ( QString const & call,
QString const & band,
QString const & mode,
const QString & submode,
QString const & grid,
QString const & date,
const QString & name,
const QString & comment )

Add a new QSO to the internal data structure.

Parameters
callThe callsign of the contacted station.
bandThe band on which the QSO was made.
modeThe mode of the QSO.
submodeThe submode of the QSO.
gridThe grid locator of the contacted station.
dateThe date of the QSO.
nameThe name of the operator.
commentAny comments associated with the QSO.
Here is the caller graph for this function:

◆ addQSOToFile()

bool ADIF::addQSOToFile ( QByteArray const & ADIF_record)

Open the ADIF file and append the QSO details.

Parameters
ADIF_recordThe ADIF record to append.
Returns
True on success, false otherwise.

◆ find()

QList< ADIF::QSO > ADIF::find ( QString const & call) const

Find QSOs associated with a given callsign.

Parameters
callThe callsign to search for.
Returns
A list of QSOs associated with the callsign.

◆ getCallList()

QList< QString > ADIF::getCallList ( ) const

Get a list of all callsigns in the internal data structure.

Returns
A list of callsigns.

◆ getCount()

qsizetype ADIF::getCount ( ) const

Get the count of QSOs in the internal data structure.

Returns
The number of QSOs.

◆ init()

void ADIF::init ( QString const & filename)

Initialize the ADIF instance with the specified filename.

Parameters
filenameThe path to the ADIF log file.

◆ match()

bool ADIF::match ( QString const & call,
QString const & band ) const

Check if a callsign and band combination exists in the internal data structure.

Parameters
callThe callsign to search for.
bandThe band to search for.
Returns
True if a matching QSO is found, false otherwise.

◆ QSOToADIF()

QByteArray ADIF::QSOToADIF ( QString const & hisCall,
QString const & hisGrid,
QString const & mode,
QString const & submode,
QString const & rptSent,
QString const & rptRcvd,
QDateTime const & dateTimeOn,
QDateTime const & dateTimeOff,
QString const & band,
QString const & comments,
QString const & name,
QString const & strDialFreq,
QString const & m_myCall,
QString const & m_myGrid,
QString const & operator_call,
const QMap< QString, QVariant > & additionalFields )

Convert QSO details into an ADIF record format.

Parameters
hisCallThe callsign of the contacted station.
hisGridThe grid locator of the contacted station.
modeThe mode of the QSO.
submodeThe submode of the QSO.
rptSentThe report sent.
rptRcvdThe report received.
dateTimeOnThe date and time when the QSO started.
dateTimeOffThe date and time when the QSO ended.
bandThe band on which the QSO was made.
commentsAny comments associated with the QSO.
nameThe name of the operator.
strDialFreqThe dial frequency as a string.
m_myCallThe station's own callsign.
m_myGridThe station's own grid locator.
operator_callThe operator's callsign.
additionalFieldsA map of additional ADIF fields to include.
Returns
The ADIF record as a QByteArray.

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