summaryrefslogtreecommitdiff
path: root/NetworkMessage.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 23:01:50 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 23:01:50 +0100
commit5c60c77adff9a54fd5f94f9915b22ccd8c4c5a3b (patch)
tree410fa358a5f73260a579b4d669730f319a4d2609 /NetworkMessage.hpp
parent6c82050de806dcdafaed0077400a6c3396a4a159 (diff)
parente0737c56c1e384e05064a0c6e1ac46979371041b (diff)
Update upstream source from tag 'upstream/2.0.0+repack'
Update to upstream version '2.0.0+repack' with Debian dir 55dbb3a6a7eb189e187dd79f732623ca0b56116d
Diffstat (limited to 'NetworkMessage.hpp')
-rw-r--r--NetworkMessage.hpp86
1 files changed, 83 insertions, 3 deletions
diff --git a/NetworkMessage.hpp b/NetworkMessage.hpp
index e59a9a4b..a4d9ba0d 100644
--- a/NetworkMessage.hpp
+++ b/NetworkMessage.hpp
@@ -124,6 +124,7 @@
* Tx Watchdog bool
* Sub-mode utf8
* Fast mode bool
+ * Special operation mode quint8
*
* WSJT-X sends this status message when various internal state
* changes to allow the server to track the relevant state of each
@@ -142,10 +143,22 @@
* At the start and end of decoding,
* When the Rx DF changes,
* When the Tx DF changes,
- * When the DE call or grid changes (currently when settings are exited),
+ * When settings are exited,
* When the DX call or grid changes,
* When the Tx watchdog is set or reset.
*
+ * The Special operation mode is an enumeration that indicates the
+ * setting selected in the WSJT-X "Settings->Advanced->Special
+ * operating activity" panel. The values are as follows:
+ *
+ * 0 -> NONE
+ * 1 -> NA VHF
+ * 2 -> EU VHF
+ * 3 -> FIELD DAY
+ * 4 -> RTTY RU
+ * 5 -> FOX
+ * 6 -> HOUND
+ *
*
* Decode Out 2 quint32
* Id (unique key) utf8
@@ -229,14 +242,19 @@
* Date & Time Off QDateTime
* DX call utf8
* DX grid utf8
- * Dial frequency (Hz) quint64
+ * Tx frequency (Hz) quint64
* Mode utf8
- * Report send utf8
+ * Report sent utf8
* Report received utf8
* Tx power utf8
* Comments utf8
* Name utf8
* Date & Time On QDateTime
+ * Operator call utf8
+ * My call utf8
+ * My grid utf8
+ * Exchange sent utf8
+ * Exchange received utf8
*
* The QSO logged message is sent to the server(s) when the
* WSJT-X user accepts the "Log QSO" dialog by clicking the "OK"
@@ -304,6 +322,7 @@
* command to determine the contents of the current free text
* message.
*
+ *
* WSPRDecode Out 10 quint32
* Id (unique key) utf8
* New bool
@@ -327,6 +346,64 @@
* from a played back recording.
*
*
+ * Location In 11
+ * Id (unique key) utf8
+ * Location utf8
+ *
+ * This message allows the server to set the current current
+ * geographical location of operation. The supplied location is
+ * not persistent but is used as a session lifetime replacement
+ * loction that overrides the Maidenhead grid locater set in the
+ * application settings. The intent is to allow an external
+ * application to update the operating location dynamically
+ * during a mobile period of operation.
+ *
+ * Currently only Maidenhead grid squares or sub-squares are
+ * accepted, i.e. 4- or 6-digit locators. Other formats may be
+ * accepted in future.
+ *
+ *
+ * Logged ADIF Out 12 quint32
+ * Id (unique key) utf8
+ * ADIF text utf8
+ *
+ * The logged ADIF message is sent to the server(s) when the
+ * WSJT-X user accepts the "Log QSO" dialog by clicking the "OK"
+ * button. The "ADIF text" field consists of a valid ADIF file
+ * such that the WSJT-X UDP header information is encapsulated
+ * into a valid ADIF header. E.g.:
+ *
+ * <magic-number><schema-number><type><id><32-bit-count> # binary encoded fields
+ * # the remainder is the contents of the ADIF text field
+ * <adif_ver:5>3.0.7
+ * <programid:6>WSJT-X
+ * <EOH>
+ * ADIF log data fields ...<EOR>
+ *
+ * Note that receiving applications can treat the whole message
+ * as a valid ADIF file with one record without special parsing.
+ *
+ *
+ * Highlight Callsign In 13 quint32
+ * Id (unique key) utf8
+ * Callsign utf8
+ * Background Color QColor
+ * Foreground Color QColor
+ * Highlight last bool
+ *
+ * The server may send this message at any time. The message
+ * specifies the background and foreground color that will be
+ * used to highlight the specified callsign in the decoded
+ * messages printed in the Band Activity panel. The WSJT-X
+ * clients maintain a list of such instructions and apply them to
+ * all decoded messages in the band activity window. To clear
+ * highlighting send an invalid QColor value for either or both
+ * of the background and foreground fields.
+ *
+ * The "Highlight last" field allows the sender to request that
+ * the last instance only instead of all instances of the
+ * specified call be highlighted or have it's highlighting
+ * cleared.
*/
#include <QDataStream>
@@ -353,6 +430,9 @@ namespace NetworkMessage
HaltTx,
FreeText,
WSPRDecode,
+ Location,
+ LoggedADIF,
+ HighlightCallsign,
maximum_message_type_ // ONLY add new message types
// immediately before here
};