diff options
Diffstat (limited to 'MessageClient.hpp')
| -rw-r--r-- | MessageClient.hpp | 28 |
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_; |
