source: ntrip/trunk/BNC/src/bncnetqueryudp.h@ 9768

Last change on this file since 9768 was 8252, checked in by stoecker, 6 years ago

see #105 - reenable Qt4 build options, drop generic version dependend includes, replace by direct requirements, remaining QtCore lines should also be replaced

File size: 751 bytes
Line 
1#ifndef BNCNETQUERYUDP_H
2#define BNCNETQUERYUDP_H
3
4#include <QHostAddress>
5#include <QUdpSocket>
6
7#include "bncnetquery.h"
8
9class bncNetQueryUdp : public bncNetQuery {
10 Q_OBJECT
11 public:
12 bncNetQueryUdp();
13 virtual ~bncNetQueryUdp();
14
15 virtual void stop();
16 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
17 virtual void startRequest(const QUrl& url, const QByteArray& gga);
18 virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
19 virtual void waitForReadyRead(QByteArray& outData);
20
21 private slots:
22 void slotKeepAlive();
23
24 private:
25 QUdpSocket* _udpSocket;
26 QEventLoop* _eventLoop;
27 QHostAddress _address;
28 int _port;
29 char _keepAlive[12];
30 unsigned _session;
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.