|
JS8Call-Improved master
|
Integrates ADIF, CTY and worked-state utilities for logbook queries. More...
#include <LogBook.h>
Public Member Functions | |
| void | init () |
| Initialize internal helpers and data. | |
| bool | hasWorkedBefore (const QString &call, const QString &band) |
| Check whether a call on a specific band has been worked before. | |
| void | match (const QString call, QString &countryName, bool &callWorkedBefore, bool &countryWorkedBefore) const |
| Resolve callsign to a country and determine worked-before flags. | |
| bool | findCallDetails (const QString call, QString &grid, QString &date, QString &name, QString &comment) const |
| Find detailed call information (grid, date, name, comment). | |
| void | addAsWorked (const QString call, const QString band, const QString mode, const QString submode, const QString grid, const QString date, const QString name, const QString comment) |
| Mark the given call as worked and add it to the ADIF/log store. | |
Integrates ADIF, CTY and worked-state utilities for logbook queries.
| void LogBook::addAsWorked | ( | const QString | call, |
| const QString | band, | ||
| const QString | mode, | ||
| const QString | submode, | ||
| const QString | grid, | ||
| const QString | date, | ||
| const QString | name, | ||
| const QString | comment ) |
Mark the given call as worked and add it to the ADIF/log store.
Add a new QSO to the logbook and mark the country as worked.
| 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. |
| bool LogBook::findCallDetails | ( | const QString | call, |
| QString & | grid, | ||
| QString & | date, | ||
| QString & | name, | ||
| QString & | comment ) const |
Find detailed call information (grid, date, name, comment).
Find details associated with a callsign in the logbook.
| call | Input callsign to search for. |
| grid | Output: Maidenhead grid if found. |
| date | Output: QSO date string if found. |
| name | Output: operator name if present. |
| comment | Output: comment if present. |
| call | The callsign to search for. |
| grid | Output parameter to hold the grid locator. |
| date | Output parameter to hold the date of the QSO. |
| name | Output parameter to hold the name of the operator. |
| comment | Output parameter to hold any comments associated with the QSO. |
| bool LogBook::hasWorkedBefore | ( | const QString & | call, |
| const QString & | band ) |
Check whether a call on a specific band has been worked before.
Check if a call has been worked before on a specific band.
| call | Callsign to check. |
| band | Band string to check. |
| call | The callsign to check. |
| band | The band to check. |
| void LogBook::init | ( | ) |
Initialize internal helpers and data.
Initialize the logbook by loading country data and existing log entries.
| void LogBook::match | ( | const QString | call, |
| QString & | countryName, | ||
| bool & | callWorkedBefore, | ||
| bool & | countryWorkedBefore ) const |
Resolve callsign to a country and determine worked-before flags.
Match a callsign to its country and check if it has been worked before.
| call | Input callsign. |
| countryName | Output: resolved country/entity name. |
| callWorkedBefore | Output: whether this call has been worked. |
| countryWorkedBefore | Output: whether the country has been worked. |
| call | The callsign to match. |
| countryName | Output parameter to hold the matched country name. |
| callWorkedBefore | Output parameter indicating if the call has been worked before. |
| countryWorkedBefore | Output parameter indicating if the country has been worked before. |