JS8Call-Improved master
Loading...
Searching...
No Matches
PSKReporter Class Referencefinal

Aggregates station spots and posts them to PSK Reporter. More...

#include <PSKReporter.h>

Inheritance diagram for PSKReporter:
Collaboration diagram for PSKReporter:

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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ PSKReporter()

PSKReporter::PSKReporter ( Configuration const * config,
QString const & program_info )
explicit

Create a PSKReporter.

Construct a new PSKReporter::PSKReporter object.

Parameters
configPointer to global configuration (not owned).
program_infoShort program identifier embedded in reports.
config
program_info

Member Function Documentation

◆ addRemoteStation()

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.

Parameters
callRemote callsign.
gridRemote grid locator.
freqDial frequency where the signal was observed.
modeMode string for the observation.
snrMeasured SNR value.
utcTimestampUTC timestamp for the reception.
call
grid
freq
mode
snr
utcTimestamp
Here is the call graph for this function:
Here is the caller graph for this function:

◆ errorOccurred()

Q_SIGNAL void PSKReporter::errorOccurred ( QString const & reason)

Emitted when an error occurs.

Here is the caller graph for this function:

◆ reconnect()

void PSKReporter::reconnect ( )

Reconnects to the PSKReporter server.

Attempt to re-establish any network connections used by the reporter.

Here is the caller graph for this function:

◆ sendReport()

void PSKReporter::sendReport ( bool last = false)

Flush any pending spots to PSK Reporter.

Sends the report to PSK Reporter.

Parameters
lastWhen true indicates this is the final report (shutdown).
last
Here is the caller graph for this function:

◆ setLocalStation()

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.

Parameters
callCallsign string.
gridMaidenhead grid locator.
antennaAntenna description string.
call
grid
ant
Here is the caller graph for this function:

◆ start()

void PSKReporter::start ( )

Starts the PSKReporter.

Start the reporter's background processing.

Here is the caller graph for this function:

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