|
| 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::QSO > | find (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.
|
◆ 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
-
| call | The callsign of the contacted station. |
| band | The band on which the QSO was made. |
| mode | The mode of the QSO. |
| submode | The submode of the QSO. |
| grid | The grid locator of the contacted station. |
| date | The date of the QSO. |
| name | The name of the operator. |
| comment | Any comments associated with the QSO. |
◆ addQSOToFile()
| bool ADIF::addQSOToFile |
( |
QByteArray const & | ADIF_record | ) |
|
Open the ADIF file and append the QSO details.
- Parameters
-
| ADIF_record | The ADIF record to append. |
- Returns
- True on success, false otherwise.
◆ find()
Find QSOs associated with a given callsign.
- Parameters
-
| call | The 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
-
| filename | The 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
-
| call | The callsign to search for. |
| band | The 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
-
| hisCall | The callsign of the contacted station. |
| hisGrid | The grid locator of the contacted station. |
| mode | The mode of the QSO. |
| submode | The submode of the QSO. |
| rptSent | The report sent. |
| rptRcvd | The report received. |
| dateTimeOn | The date and time when the QSO started. |
| dateTimeOff | The date and time when the QSO ended. |
| band | The band on which the QSO was made. |
| comments | Any comments associated with the QSO. |
| name | The name of the operator. |
| strDialFreq | The dial frequency as a string. |
| m_myCall | The station's own callsign. |
| m_myGrid | The station's own grid locator. |
| operator_call | The operator's callsign. |
| additionalFields | A 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: