|
JS8Call-Improved master
|
Aggregates station spots and posts them to PSK Reporter. More...
#include <PSKReporter.h>


Public Member Functions | |
| PSKReporter (Configuration const *, QString const &program_info) | |
| Create a PSKReporter. | |
| void | start () |
| Starts the PSKReporter. | |
| void | reconnect () |
| Reconnects to the PSKReporter server. | |
| void | setLocalStation (QString const &call, QString const &grid, QString const &antenna) |
| Set the local station information used in outgoing reports. | |
| void | addRemoteStation (QString const &call, QString const &grid, Radio::Frequency freq, QString const &mode, int snr, QDateTime const &utcTimestamp) |
| Add a remote station reception to the aggregated report. | |
| void | sendReport (bool last=false) |
| Flush any pending spots to PSK Reporter. | |
| Q_SIGNAL void | errorOccurred (QString const &reason) |
Aggregates station spots and posts them to PSK Reporter.
Constructed with a Configuration pointer and program info string used in HTTP headers. The object emits errorOccurred when network/serialization failures happen.
|
explicit |
Create a PSKReporter.
Construct a new PSKReporter::PSKReporter object.
| config | Pointer to global configuration (not owned). |
| program_info | Short program identifier embedded in reports. |
| config | |
| program_info |
| void PSKReporter::addRemoteStation | ( | QString const & | call, |
| QString const & | grid, | ||
| Radio::Frequency | freq, | ||
| QString const & | mode, | ||
| int | snr, | ||
| QDateTime const & | utcTimestamp ) |
Add a remote station reception to the aggregated report.
Adds a remote station spot to be reported.
| call | Remote callsign. |
| grid | Remote grid locator. |
| freq | Dial frequency where the signal was observed. |
| mode | Mode string for the observation. |
| snr | Measured SNR value. |
| utcTimestamp | UTC timestamp for the reception. |
| call | |
| grid | |
| freq | |
| mode | |
| snr | |
| utcTimestamp |


| Q_SIGNAL void PSKReporter::errorOccurred | ( | QString const & | reason | ) |
Emitted when an error occurs.

| void PSKReporter::reconnect | ( | ) |
Reconnects to the PSKReporter server.
Attempt to re-establish any network connections used by the reporter.

| void PSKReporter::sendReport | ( | bool | last = false | ) |
Flush any pending spots to PSK Reporter.
Sends the report to PSK Reporter.
| last | When true indicates this is the final report (shutdown). |
| last |

| void PSKReporter::setLocalStation | ( | QString const & | call, |
| QString const & | grid, | ||
| QString const & | ant ) |
Set the local station information used in outgoing reports.
Sets the local station information.
| call | Callsign string. |
| grid | Maidenhead grid locator. |
| antenna | Antenna description string. |
| call | |
| grid | |
| ant |

| void PSKReporter::start | ( | ) |
Starts the PSKReporter.
Start the reporter's background processing.
