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

Last change on this file since 10460 was 8252, checked in by stoecker, 7 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
RevLine 
[1718]1#ifndef BNCNETQUERYUDP_H
2#define BNCNETQUERYUDP_H
3
[8252]4#include <QHostAddress>
5#include <QUdpSocket>
6
[1718]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);
[6787]18 virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
[1718]19 virtual void waitForReadyRead(QByteArray& outData);
20
21 private slots:
22 void slotKeepAlive();
23
24 private:
[1720]25 QUdpSocket* _udpSocket;
26 QEventLoop* _eventLoop;
27 QHostAddress _address;
28 int _port;
[1761]29 char _keepAlive[12];
[1818]30 unsigned _session;
[1718]31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.