summaryrefslogtreecommitdiff
path: root/MessageClient.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 /MessageClient.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 'MessageClient.hpp')
-rw-r--r--MessageClient.hpp28
1 files changed, 24 insertions, 4 deletions
diff --git a/MessageClient.hpp b/MessageClient.hpp
index d641a66d..0deb1a49 100644
--- a/MessageClient.hpp
+++ b/MessageClient.hpp
@@ -11,6 +11,7 @@
class QByteArray;
class QHostAddress;
+class QColor;
//
// MessageClient - Manage messages sent and replies received from a
@@ -51,7 +52,7 @@ public:
, QString const& tx_mode, bool tx_enabled, bool transmitting, bool decoding
, qint32 rx_df, qint32 tx_df, QString const& de_call, QString const& de_grid
, QString const& dx_grid, bool watchdog_timeout, QString const& sub_mode
- , bool fast_mode);
+ , bool fast_mode, quint8 special_op_mode);
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);
@@ -62,12 +63,22 @@ public:
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& name, QDateTime time_on, QString const& operator_call
+ , QString const& my_call, QString const& my_grid
+ , QString const& exchange_sent, QString const& exchange_rcvd);
- // this slot may be used to send arbitrary UDP datagrams to and
+ // ADIF_record argument should be valid ADIF excluding any <EOR> end
+ // of record marker
+ Q_SLOT void logged_ADIF (QByteArray const& ADIF_record);
+
+ // this may be used to send arbitrary UDP datagrams to and
// destination allowing the underlying socket to be used for general
// UDP messaging if desired
- Q_SLOT void send_raw_datagram (QByteArray const&, QHostAddress const& dest_address, port_type dest_port);
+ qint64 send_raw_datagram (QByteArray const&, QHostAddress const& dest_address, port_type dest_port);
+
+ // disallowed message destination (does not block datagrams sent
+ // with send_raw_datagram() above)
+ Q_SLOT void add_blocked_destination (QHostAddress const&);
// this signal is emitted if the server sends us a reply, the only
// reply supported is reply to a prior CQ or QRZ message
@@ -86,10 +97,19 @@ public:
// message text
Q_SIGNAL void free_text (QString const&, bool send);
+ // this signal is emitted if the server has sent a highlight
+ // callsign request for the specified call
+ Q_SIGNAL void highlight_callsign (QString const& callsign, QColor const& bg, QColor const& fg, bool last_only);
+
// this signal is emitted when network errors occur or if a host
// lookup fails
Q_SIGNAL void error (QString const&) const;
+ // this signal is emitted if the message obtains a location from a
+ // server. (It doesn't have to be new, could be a periodic location
+ // update)
+ Q_SIGNAL void location (QString const&);
+
private:
class impl;
pimpl<impl> m_;