|
JS8Call-Improved master
|
Sends spots and spot-related commands to a remote host. More...
#include <SpotClient.h>


Public Member Functions | |
| SpotClient (QString const &host, quint16 port, QString const &version, QObject *parent=nullptr) | |
| Construct a SpotClient. | |
| void | start () |
| void | setLocalStation (QString const &callsign, QString const &grid, QString const &info) |
| Set local station identity included in outgoing messages. | |
| void | enqueueCmd (QString const &cmd, QString const &from, QString const &to, QString const &relayPath, QString const &text, QString const &grid, QString const &extra, int const submode, Radio::Frequency const dial, int const offset, int const snr) |
| Enqueue a command-style message for transmission. | |
| void | enqueueSpot (QString const &callsign, QString const &grid, int const submode, Radio::Frequency const dial, int const offset, int const snr) |
| Enqueue a simple spot (callsign/grid) for transmission. | |
| Q_SIGNAL void | error (QString const &) const |
Sends spots and spot-related commands to a remote host.
| SpotClient::SpotClient | ( | QString const & | name, |
| quint16 | port, | ||
| QString const & | version, | ||
| QObject * | parent = nullptr ) |
Construct a SpotClient.
Constructs a SpotClient object.
| host | Remote host name or IP. |
| port | Remote TCP port. |
| version | Protocol/version string included in handshakes. |
| parent | Optional QObject parent. |
| name | The hostname of the spot server. |
| port | The port number of the spot server. |
| version | The version string of the client. |
| parent | The parent QObject. |
| void SpotClient::enqueueCmd | ( | QString const & | cmd, |
| QString const & | from, | ||
| QString const & | to, | ||
| QString const & | relayPath, | ||
| QString const & | text, | ||
| QString const & | grid, | ||
| QString const & | extra, | ||
| int const | submode, | ||
| Radio::Frequency const | dial, | ||
| int const | offset, | ||
| int const | snr ) |
Enqueue a command-style message for transmission.
Enqueues a command to be sent to the spot server.
| cmd | Command verb. |
| from | Originator callsign. |
| to | Destination callsign (or group). |
| relayPath | Relay path string. |
| text | Message payload. |
| grid | Maidenhead grid for the sender. |
| extra | Extra data string. |
| submode | Numeric submode identifier. |
| dial | Dial frequency. |
| offset | Offset from dial in Hz. |
| snr | Measured SNR value. |
| cmd | The command string. |
| from | The sender callsign. |
| to | The recipient callsign. |
| relayPath | The relay path. |
| text | The message text. |
| grid | The grid locator. |
| extra | Additional information. |
| submode | The submode identifier. |
| dial | The dial frequency. |
| offset | The frequency offset. |
| snr | The signal-to-noise ratio. |

| void SpotClient::enqueueSpot | ( | QString const & | callsign, |
| QString const & | grid, | ||
| int const | submode, | ||
| Radio::Frequency const | dial, | ||
| int const | offset, | ||
| int const | snr ) |
Enqueue a simple spot (callsign/grid) for transmission.
Enqueues a spot to be sent to the spot server.
| callsign | The callsign of the spotted station. |
| grid | The grid locator of the spotted station. |
| submode | The submode identifier. |
| dial | The dial frequency. |
| offset | The frequency offset. |
| snr | The signal-to-noise ratio. |

| Q_SIGNAL void SpotClient::error | ( | QString const & | ) | const |
Emitted when an error occurs while sending or connecting.
| void SpotClient::setLocalStation | ( | QString const & | callsign, |
| QString const & | grid, | ||
| QString const & | info ) |
Set local station identity included in outgoing messages.
Sets the local station information.
| callsign | Local callsign. |
| grid | Local Maidenhead grid. |
| info | Optional free-form station info string. |
| callsign | The callsign of the local station. |
| grid | The grid locator of the local station. |
| info | Additional info about the local station. |

| void SpotClient::start | ( | ) |
Start the client and establish the network connection.
