diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
| commit | 368f5331a7641772aa7e0cd1feea57d09a394a36 (patch) | |
| tree | b421ac60cc6eb726896ea268ea24e47fc4ce7c88 /UDPExamples/MessageAggregatorMainWindow.hpp | |
| parent | 71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff) | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack'
with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'UDPExamples/MessageAggregatorMainWindow.hpp')
| -rw-r--r-- | UDPExamples/MessageAggregatorMainWindow.hpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/UDPExamples/MessageAggregatorMainWindow.hpp b/UDPExamples/MessageAggregatorMainWindow.hpp new file mode 100644 index 00000000..4039c60a --- /dev/null +++ b/UDPExamples/MessageAggregatorMainWindow.hpp @@ -0,0 +1,51 @@ +#ifndef WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__ +#define WSJTX_MESSAGE_AGGREGATOR_MAIN_WINDOW_MODEL_HPP__ + +#include <QMainWindow> +#include <QHash> +#include <QString> + +#include "MessageServer.hpp" + +class QDateTime; +class QStandardItemModel; +class QMenu; +class DecodesModel; +class BeaconsModel; +class QLineEdit; +class QTableView; +class ClientWidget; + +using Frequency = MessageServer::Frequency; + +class MessageAggregatorMainWindow + : public QMainWindow +{ + Q_OBJECT; + +public: + MessageAggregatorMainWindow (); + + Q_SLOT void log_qso (QString const& /*id*/, 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); + +private: + void add_client (QString const& id, QString const& version, QString const& revision); + void remove_client (QString const& id); + + QStandardItemModel * log_; + QMenu * view_menu_; + DecodesModel * decodes_model_; + BeaconsModel * beacons_model_; + MessageServer * server_; + QLineEdit * multicast_group_line_edit_; + QTableView * log_table_view_; + + // maps client id to widgets + using ClientsDictionary = QHash<QString, ClientWidget *>; + ClientsDictionary dock_widgets_; +}; + +#endif |
