2013-04-14 11:09:35 -04:00
|
|
|
#ifndef PSK_REPORTER_H
|
|
|
|
#define PSK_REPORTER_H
|
|
|
|
|
2013-04-16 15:22:53 -04:00
|
|
|
#include <QtCore>
|
|
|
|
#include <QUdpSocket>
|
|
|
|
#include <QHostInfo>
|
2013-04-14 11:09:35 -04:00
|
|
|
|
|
|
|
class PSK_Reporter : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit PSK_Reporter(QObject *parent = 0);
|
2013-07-21 15:54:38 -04:00
|
|
|
void setLocalStation(QString call, QString grid, QString antenna, QString programInfo);
|
2013-04-16 15:22:53 -04:00
|
|
|
void addRemoteStation(QString call, QString grid, QString freq, QString mode, QString snr, QString time);
|
2013-04-14 11:09:35 -04:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
2013-04-16 15:22:53 -04:00
|
|
|
void sendReport();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_header_h;
|
|
|
|
QString m_rxInfoDescriptor_h;
|
|
|
|
QString m_txInfoDescriptor_h;
|
|
|
|
QString m_randomId_h;
|
|
|
|
QString m_linkId_h;
|
|
|
|
|
|
|
|
QString m_rxCall;
|
|
|
|
QString m_rxGrid;
|
2013-07-21 15:54:38 -04:00
|
|
|
QString m_rxAnt;
|
2013-04-16 15:22:53 -04:00
|
|
|
QString m_progId;
|
|
|
|
|
|
|
|
QQueue< QHash<QString,QString> > m_spotQueue;
|
|
|
|
|
|
|
|
QUdpSocket *m_udpSocket;
|
|
|
|
|
|
|
|
QTimer *reportTimer;
|
|
|
|
|
|
|
|
int m_sequenceNumber;
|
2013-04-14 11:09:35 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PSK_REPORTER_H
|