JS8Call-Improved master
Loading...
Searching...
No Matches
WSJTXMessageClient Class Reference
Inheritance diagram for WSJTXMessageClient:
Collaboration diagram for WSJTXMessageClient:

Classes

class  impl

Public Types

using Frequency = Radio::Frequency
using port_type = quint16

Public Member Functions

 WSJTXMessageClient (QString const &id, QString const &version, QString const &revision, QString const &server_name, port_type server_port, QStringList const &network_interface_names, int TTL, QObject *parent=nullptr)
 Construct a WSJT-X message client.
QHostAddress server_address () const
 Get the server address.
port_type server_port () const
 Get the server port.
Q_SLOT void set_server (QString const &server_name, QStringList const &network_interface_names)
 Set the server address and network interfaces.
Q_SLOT void set_server_port (port_type server_port=0u)
 Set the server port.
Q_SLOT void set_TTL (int TTL)
 Set the TTL for multicast packets.
Q_SLOT void enable (bool)
 Enable or disable incoming message processing.
Q_SLOT void status_update (Frequency, QString const &mode, QString const &dx_call, QString const &report, QString const &tx_mode, bool tx_enabled, bool transmitting, bool decoding, quint32 rx_df, quint32 tx_df, QString const &de_call, QString const &de_grid, QString const &dx_grid, bool watchdog_timeout, QString const &sub_mode, bool fast_mode, quint8 special_op_mode, quint32 frequency_tolerance, quint32 tr_period, QString const &configuration_name, QString const &tx_message)
 Send a Status message.
Q_SLOT void decode (bool is_new, QTime time, qint32 snr, float delta_time, quint32 delta_frequency, QString const &mode, QString const &message, bool low_confidence, bool off_air)
 Send a Decode message.
Q_SLOT void decodes_cleared ()
 Send a Clear Decodes message.
Q_SLOT void qso_logged (QDateTime time_off, QString const &dx_call, QString const &dx_grid, Frequency dial_frequency, QString const &mode, QString const &report_sent, QString const &report_received, QString const &tx_power, QString const &comments, QString const &name, QDateTime time_on, QString const &operator_call, QString const &my_call, QString const &my_grid, QString const &exchange_sent, QString const &exchange_rcvd, QString const &propmode)
 Send a QSO Logged message.
Q_SLOT void logged_ADIF (QByteArray const &ADIF_record)
 Send a Logged ADIF message.
Signals for incoming messages
Q_SIGNAL void clear_decodes (quint8 window)
 Emitted when a Clear Decodes message is received.
Q_SIGNAL void reply (QTime, qint32 snr, float delta_time, quint32 delta_frequency, QString const &mode, QString const &message_text, bool low_confidence, quint8 modifiers)
 Emitted when a Reply message is received.
Q_SIGNAL void close ()
 Emitted when a Close message is received.
Q_SIGNAL void replay ()
 Emitted when a Replay message is received.
Q_SIGNAL void halt_tx (bool auto_only)
 Emitted when a Halt TX message is received.
Q_SIGNAL void free_text (QString const &, bool send)
 Emitted when a Free Text message is received.
Q_SIGNAL void location (QString const &)
 Emitted when a Location message is received.
Q_SIGNAL void error (QString const &) const
 Emitted when an error occurs.

Constructor & Destructor Documentation

◆ WSJTXMessageClient()

WSJTXMessageClient::WSJTXMessageClient ( QString const & id,
QString const & version,
QString const & revision,
QString const & server_name,
port_type server_port,
QStringList const & network_interface_names,
int TTL,
QObject * parent = nullptr )

Construct a WSJT-X message client.

Instantiates the client and initiates a host lookup on the server.

Parameters
idApplication identifier (e.g., "JS8Call")
versionApplication version string
revisionApplication revision string
server_nameServer hostname or IP address (supports multicast)
server_portUDP port number for communication
network_interface_namesList of network interface names for multicast
TTLTime-to-live for multicast packets
parentParent QObject
Here is the call graph for this function:

Member Function Documentation

◆ clear_decodes()

Q_SIGNAL void WSJTXMessageClient::clear_decodes ( quint8 window)

Emitted when a Clear Decodes message is received.

Parameters
windowWindow number to clear (0 = all windows)

◆ decode()

void WSJTXMessageClient::decode ( bool is_new,
QTime time,
qint32 snr,
float delta_time,
quint32 delta_frequency,
QString const & mode,
QString const & message_text,
bool low_confidence,
bool off_air )

Send a Decode message.

Sends information about a decoded message.

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
off_airWhether this is an off-air decode

Sends information about a decoded message to WSJT-X protocol clients.

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
message_textDecoded message text
low_confidenceWhether decode confidence is low
off_airWhether this is an off-air decode

◆ decodes_cleared()

void WSJTXMessageClient::decodes_cleared ( )

Send a Clear Decodes message.

Notifies clients to clear the decode window.

Notifies WSJT-X protocol clients to clear the decode window.

◆ enable()

void WSJTXMessageClient::enable ( bool flag)

Enable or disable incoming message processing.

Parameters
flagtrue to enable, false to disable
Here is the caller graph for this function:

◆ error()

Q_SIGNAL void WSJTXMessageClient::error ( QString const & ) const

Emitted when an error occurs.

Parameters
messageError message
Here is the caller graph for this function:

◆ free_text()

Q_SIGNAL void WSJTXMessageClient::free_text ( QString const & ,
bool send )

Emitted when a Free Text message is received.

Parameters
textFree text to send
sendWhether to send immediately

◆ halt_tx()

Q_SIGNAL void WSJTXMessageClient::halt_tx ( bool auto_only)

Emitted when a Halt TX message is received.

Parameters
auto_onlyIf true, only halt auto sequences

◆ location()

Q_SIGNAL void WSJTXMessageClient::location ( QString const & )

Emitted when a Location message is received.

Parameters
locationGrid square or location string

◆ logged_ADIF()

void WSJTXMessageClient::logged_ADIF ( QByteArray const & ADIF_record)

Send a Logged ADIF message.

Sends the ADIF record for a logged QSO. This is sent in addition to the QSOLogged message and uses the WSJT-X LoggedADIF message format.

Parameters
ADIF_recordADIF formatted record for the logged QSO

Sends the ADIF record for a logged QSO. This is sent in addition to the QSOLogged message and uses the WSJT-X LoggedADIF message format (type 12). The ADIF record is formatted with a header that includes the ADIF version and program ID for compatibility with WSJT-X clients.

Parameters
ADIF_recordADIF formatted record for the logged QSO (without header)

◆ qso_logged()

void WSJTXMessageClient::qso_logged ( QDateTime time_off,
QString const & dx_call,
QString const & dx_grid,
Frequency dial_frequency,
QString const & mode,
QString const & report_sent,
QString const & report_received,
QString const & tx_power,
QString const & comments,
QString const & name,
QDateTime time_on,
QString const & operator_call,
QString const & my_call,
QString const & my_grid,
QString const & exchange_sent,
QString const & exchange_rcvd,
QString const & propmode )

Send a QSO Logged message.

Sends information about a logged QSO.

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
tx_powerTransmit power
commentsQSO comments
nameDX station name
time_onQSO start time
operator_callOperator callsign
my_callMy callsign
my_gridMy grid square
exchange_sentExchange sent
exchange_rcvdExchange received
propmodePropagation mode

Sends information about a logged QSO to WSJT-X protocol clients.

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
tx_powerTransmit power
commentsQSO comments
nameDX station name
time_onQSO start time
operator_callOperator callsign
my_callMy callsign
my_gridMy grid square
exchange_sentExchange sent
exchange_rcvdExchange received
propmodePropagation mode

◆ reply()

Q_SIGNAL void WSJTXMessageClient::reply ( QTime ,
qint32 snr,
float delta_time,
quint32 delta_frequency,
QString const & mode,
QString const & message_text,
bool low_confidence,
quint8 modifiers )

Emitted when a Reply message is received.

Parameters
timeReply time
snrSignal-to-noise ratio (dB)
delta_timeTime offset (seconds)
delta_frequencyFrequency offset (Hz)
modeOperating mode
message_textReply message text
low_confidenceWhether decode confidence is low
modifiersMessage modifiers

◆ server_address()

QHostAddress WSJTXMessageClient::server_address ( ) const

Get the server address.

Returns
QHostAddress of the server, or null if not resolved

◆ server_port()

auto WSJTXMessageClient::server_port ( ) const

Get the server port.

Returns
UDP port number
Here is the caller graph for this function:

◆ set_server()

void WSJTXMessageClient::set_server ( QString const & server_name,
QStringList const & network_interface_names )

Set the server address and network interfaces.

Initiates a new server host lookup and updates the network interfaces used for multicast transmission.

Parameters
server_nameServer hostname or IP address
network_interface_namesList of network interface names for multicast

◆ set_server_port()

void WSJTXMessageClient::set_server_port ( port_type server_port = 0u)

Set the server port.

Parameters
server_portUDP port number (0 to disable)
Here is the call graph for this function:

◆ set_TTL()

void WSJTXMessageClient::set_TTL ( int TTL)

Set the TTL for multicast packets.

Parameters
TTLTime-to-live value

◆ status_update()

void WSJTXMessageClient::status_update ( Frequency f,
QString const & mode,
QString const & dx_call,
QString const & report,
QString const & tx_mode,
bool tx_enabled,
bool transmitting,
bool decoding,
quint32 rx_df,
quint32 tx_df,
QString const & de_call,
QString const & de_grid,
QString const & dx_grid,
bool watchdog_timeout,
QString const & sub_mode,
bool fast_mode,
quint8 special_op_mode,
quint32 frequency_tolerance,
quint32 tr_period,
QString const & configuration_name,
QString const & tx_message )

Send a Status message.

Sends the current station status including frequency, mode, callsigns, and operational state.

Parameters
fOperating frequency (Hz)
modeOperating mode string
dx_callDX station callsign (selected station)
reportReport string
tx_modeTX mode string
tx_enabledWhether TX is enabled
transmittingWhether currently transmitting
decodingWhether currently decoding
rx_dfReceive frequency offset (Hz)
tx_dfTransmit frequency offset (Hz)
de_callMy callsign
de_gridMy grid square
dx_gridDX station grid square
watchdog_timeoutWhether watchdog has timed out
sub_modeSub-mode string
fast_modeWhether fast mode is enabled
special_op_modeSpecial operating mode
frequency_toleranceFrequency tolerance (Hz)
tr_periodTransmit/receive period (seconds)
configuration_nameConfiguration name
tx_messageCurrent TX message text

Sends the current station status including frequency, mode, callsigns, and operational state to WSJT-X protocol clients.

Parameters
fOperating frequency (Hz)
modeOperating mode string
dx_callDX station callsign (selected station)
reportReport string
tx_modeTX mode string
tx_enabledWhether TX is enabled
transmittingWhether currently transmitting
decodingWhether currently decoding
rx_dfReceive frequency offset (Hz)
tx_dfTransmit frequency offset (Hz)
de_callMy callsign
de_gridMy grid square
dx_gridDX station grid square
watchdog_timeoutWhether watchdog has timed out
sub_modeSub-mode string
fast_modeWhether fast mode is enabled
special_op_modeSpecial operating mode
frequency_toleranceFrequency tolerance (Hz)
tr_periodTransmit/receive period (seconds)
configuration_nameConfiguration name
tx_messageCurrent TX message text

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