forked from foldynl/QLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapWebChannelHandler.h
42 lines (36 loc) · 1.41 KB
/
MapWebChannelHandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef QLOG_UI_MAPWEBCHANNELHANDLER_H
#define QLOG_UI_MAPWEBCHANNELHANDLER_H
#include <QObject>
#include <QWebEnginePage>
class MapWebChannelHandler : public QObject
{
Q_OBJECT
public:
explicit MapWebChannelHandler(const QString &configID,
QObject *parent = nullptr);
void restoreLayerControlStates(QWebEnginePage *page);
QString generateMapMenuJS(bool gridLayer = true,
bool grayline = false,
bool aurora = false,
bool muf = false,
bool ibp = false,
bool antpath = false,
bool chatStations = false,
bool wsjtxStations = false,
bool paths = false);
signals:
void chatCallsignPressed(QString);
void wsjtxCallsignPressed(QString);
void IBPPressed(QString, double);
public slots:
void handleLayerSelectionChanged(const QVariant &data,
const QVariant &state);
void chatCallsignClicked(const QVariant &data);
void wsjtxCallsignClicked(const QVariant &data);
void IBPCallsignClicked(const QVariant &callsign,
const QVariant &freq);
private:
QString configID;
void connectWebChannel(QWebEnginePage *page);
};
#endif // QLOG_UI_MAPWEBCHANNELHANDLER_H