JS8Call-Improved master
Loading...
Searching...
No Matches
WSJTXMessageMapper Class Reference

Maps JS8Call events to WSJT-X protocol messages. More...

#include <WSJTXMessageMapper.h>

Inheritance diagram for WSJTXMessageMapper:
Collaboration diagram for WSJTXMessageMapper:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ WSJTXMessageMapper()

WSJTXMessageMapper::WSJTXMessageMapper ( WSJTXMessageClient * client,
UI_Constructor * main_window,
QObject * parent = nullptr )
explicit

Construct a WSJT-X message mapper.

Parameters
clientWSJT-X message client to send messages through
main_windowMain window instance for accessing JS8Call state
parentParent QObject

Sets up signal connections to handle incoming WSJT-X protocol messages and map them to JS8Call actions.

Parameters
clientWSJT-X message client to send messages through
main_windowMain window instance for accessing JS8Call state
parentParent QObject
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ sendDecode()

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.

Parameters
is_newWhether this is a new decode
timeDecode time
snrSignal-to-noise ratio (dB)
delta_timeTime offset from expected time (seconds)
delta_frequencyFrequency offset from nominal (Hz)
modeOperating mode string
messageDecoded message text
low_confidenceWhether decode confidence is low

Maps JS8Call's decode information to WSJT-X Decode message format and sends it through the WSJT-X message client.

Parameters
is_newWhether this is a new decode
timeDecode time
snrSignal-to-noise ratio (dB)
delta_timeTime offset from expected time (seconds)
delta_frequencyFrequency offset from nominal (Hz)
modeOperating mode string
messageDecoded message text
low_confidenceWhether decode confidence is low

◆ sendQSOLogged()

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.

Parameters
time_offQSO end time
dx_callDX station callsign
dx_gridDX station grid square
dial_frequencyDial frequency (Hz)
modeOperating mode
report_sentReport sent to DX station
report_receivedReport received from DX station
my_callMy callsign
my_gridMy grid square

Maps JS8Call's QSO log information to WSJT-X QSOLogged message format and sends it through the WSJT-X message client.

Parameters
time_offQSO end time
dx_callDX station callsign
dx_gridDX station grid square
dial_frequencyDial frequency (Hz)
modeOperating mode
report_sentReport sent to DX station
report_receivedReport received from DX station
my_callMy callsign
my_gridMy grid square

◆ sendStatusUpdate()

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.

Parameters
dial_freqDial frequency (Hz)
offsetFrequency offset (Hz)
modeOperating mode string
dx_callDX station callsign (selected station)
de_callMy callsign
de_gridMy grid square
dx_gridDX station grid square
tx_enabledWhether TX is enabled
transmittingWhether currently transmitting
decodingWhether currently decoding
tx_messageCurrent TX message text

Maps JS8Call's status information to WSJT-X Status message format and sends it through the WSJT-X message client.

Parameters
dial_freqDial frequency (Hz)
offsetFrequency offset (Hz)
modeOperating mode string
dx_callDX station callsign (selected station)
de_callMy callsign
de_gridMy grid square
dx_gridDX station grid square
tx_enabledWhether TX is enabled
transmittingWhether currently transmitting
decodingWhether currently decoding
tx_messageCurrent TX message text

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