|
JS8Call-Improved master
|
Maps JS8Call events to WSJT-X protocol messages. More...
#include <WSJTXMessageMapper.h>


Public Member Functions | |
| WSJTXMessageMapper (WSJTXMessageClient *client, UI_Constructor *main_window, QObject *parent=nullptr) | |
| Construct a WSJT-X message mapper. | |
| void | sendStatusUpdate (Radio::Frequency dial_freq, Radio::Frequency offset, QString const &mode, QString const &dx_call, QString const &de_call, QString const &de_grid, QString const &dx_grid, bool tx_enabled, bool transmitting, bool decoding, QString const &tx_message) |
| Send a Status update message. | |
| void | sendDecode (bool is_new, QTime time, qint32 snr, float delta_time, quint32 delta_frequency, QString const &mode, QString const &message, bool low_confidence) |
| Send a Decode message. | |
| void | sendQSOLogged (QDateTime time_off, QString const &dx_call, QString const &dx_grid, Radio::Frequency dial_frequency, QString const &mode, QString const &report_sent, QString const &report_received, QString const &my_call, QString const &my_grid) |
| Send a QSO Logged message. | |
Maps JS8Call events to WSJT-X protocol messages.
This class translates JS8Call's internal event format to the WSJT-X binary UDP protocol format, allowing JS8Call to communicate with WSJT-X and other applications that support the WSJT-X protocol.
|
explicit |
Construct a WSJT-X message mapper.
| client | WSJT-X message client to send messages through |
| main_window | Main window instance for accessing JS8Call state |
| parent | Parent QObject |
Sets up signal connections to handle incoming WSJT-X protocol messages and map them to JS8Call actions.
| client | WSJT-X message client to send messages through |
| main_window | Main window instance for accessing JS8Call state |
| parent | Parent QObject |


| void WSJTXMessageMapper::sendDecode | ( | bool | is_new, |
| QTime | time, | ||
| qint32 | snr, | ||
| float | delta_time, | ||
| quint32 | delta_frequency, | ||
| QString const & | mode, | ||
| QString const & | message, | ||
| bool | low_confidence ) |
Send a Decode message.
Maps JS8Call's decode information to WSJT-X Decode message format.
| is_new | Whether this is a new decode |
| time | Decode time |
| snr | Signal-to-noise ratio (dB) |
| delta_time | Time offset from expected time (seconds) |
| delta_frequency | Frequency offset from nominal (Hz) |
| mode | Operating mode string |
| message | Decoded message text |
| low_confidence | Whether decode confidence is low |
Maps JS8Call's decode information to WSJT-X Decode message format and sends it through the WSJT-X message client.
| is_new | Whether this is a new decode |
| time | Decode time |
| snr | Signal-to-noise ratio (dB) |
| delta_time | Time offset from expected time (seconds) |
| delta_frequency | Frequency offset from nominal (Hz) |
| mode | Operating mode string |
| message | Decoded message text |
| low_confidence | Whether decode confidence is low |
| void WSJTXMessageMapper::sendQSOLogged | ( | QDateTime | time_off, |
| QString const & | dx_call, | ||
| QString const & | dx_grid, | ||
| Radio::Frequency | dial_frequency, | ||
| QString const & | mode, | ||
| QString const & | report_sent, | ||
| QString const & | report_received, | ||
| QString const & | my_call, | ||
| QString const & | my_grid ) |
Send a QSO Logged message.
Maps JS8Call's QSO log information to WSJT-X QSOLogged message format.
| time_off | QSO end time |
| dx_call | DX station callsign |
| dx_grid | DX station grid square |
| dial_frequency | Dial frequency (Hz) |
| mode | Operating mode |
| report_sent | Report sent to DX station |
| report_received | Report received from DX station |
| my_call | My callsign |
| my_grid | My grid square |
Maps JS8Call's QSO log information to WSJT-X QSOLogged message format and sends it through the WSJT-X message client.
| time_off | QSO end time |
| dx_call | DX station callsign |
| dx_grid | DX station grid square |
| dial_frequency | Dial frequency (Hz) |
| mode | Operating mode |
| report_sent | Report sent to DX station |
| report_received | Report received from DX station |
| my_call | My callsign |
| my_grid | My grid square |
| void WSJTXMessageMapper::sendStatusUpdate | ( | Radio::Frequency | dial_freq, |
| Radio::Frequency | offset, | ||
| QString const & | mode, | ||
| QString const & | dx_call, | ||
| QString const & | de_call, | ||
| QString const & | de_grid, | ||
| QString const & | dx_grid, | ||
| bool | tx_enabled, | ||
| bool | transmitting, | ||
| bool | decoding, | ||
| QString const & | tx_message ) |
Send a Status update message.
Maps JS8Call's status information to WSJT-X Status message format.
| dial_freq | Dial frequency (Hz) |
| offset | Frequency offset (Hz) |
| mode | Operating mode string |
| dx_call | DX station callsign (selected station) |
| de_call | My callsign |
| de_grid | My grid square |
| dx_grid | DX station grid square |
| tx_enabled | Whether TX is enabled |
| transmitting | Whether currently transmitting |
| decoding | Whether currently decoding |
| tx_message | Current TX message text |
Maps JS8Call's status information to WSJT-X Status message format and sends it through the WSJT-X message client.
| dial_freq | Dial frequency (Hz) |
| offset | Frequency offset (Hz) |
| mode | Operating mode string |
| dx_call | DX station callsign (selected station) |
| de_call | My callsign |
| de_grid | My grid square |
| dx_grid | DX station grid square |
| tx_enabled | Whether TX is enabled |
| transmitting | Whether currently transmitting |
| decoding | Whether currently decoding |
| tx_message | Current TX message text |