mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 17:04:41 -04:00
Added flag to halt Tx UDP reply
The reply can now be used to turn off auto Tx or to halt Tx immediately. Also enforced the accept UDP requests setting for halt Tx and set free text message replies. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.5@5335 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+6
-3
@@ -126,7 +126,9 @@ void MessageClient::impl::parse_message (QByteArray const& msg)
|
||||
case NetworkMessage::HaltTx:
|
||||
if (check_status (in))
|
||||
{
|
||||
Q_EMIT self_->halt_tx ();
|
||||
bool auto_only;
|
||||
in >> auto_only;
|
||||
Q_EMIT self_->halt_tx (auto_only);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -251,14 +253,15 @@ void MessageClient::send_raw_datagram (QByteArray const& message, QHostAddress c
|
||||
}
|
||||
|
||||
void MessageClient::status_update (Frequency f, QString const& mode, QString const& dx_call
|
||||
, QString const& report, QString const& tx_mode, bool transmitting)
|
||||
, QString const& report, QString const& tx_mode
|
||||
, bool tx_enabled, bool transmitting)
|
||||
{
|
||||
if (m_->server_port_ && !m_->server_.isNull ())
|
||||
{
|
||||
QByteArray message;
|
||||
NetworkMessage::Builder out {&message, NetworkMessage::Status, m_->id_};
|
||||
out << f << mode.toUtf8 () << dx_call.toUtf8 () << report.toUtf8 () << tx_mode.toUtf8 ()
|
||||
<< transmitting;
|
||||
<< tx_enabled << transmitting;
|
||||
if (m_->check_status (out))
|
||||
{
|
||||
m_->writeDatagram (message, m_->server_, m_->server_port_);
|
||||
|
||||
Reference in New Issue
Block a user