source: ntrip/trunk/BNC/bncnetqueryv1.h@ 1382

Last change on this file since 1382 was 1382, checked in by mervart, 15 years ago

* empty log message *

File size: 729 bytes
Line 
1#ifndef BNCSOCKET_H
2#define BNCSOCKET_H
3
4#include <QtNetwork>
5#include "bncconst.h"
6
7class bncSocket : public QObject {
8 Q_OBJECT
9
10 public:
11 bncSocket();
12 ~bncSocket();
13
14 void close();
15 qint64 bytesAvailable() const;
16 bool canReadLine() const;
17 QByteArray readLine();
18 void waitForReadyRead(int msecs = 30000);
19 QByteArray read(qint64 maxSize);
20
21 t_irc request(const QUrl& mountPoint, const QByteArray& latitude,
22 const QByteArray& longitude, const QByteArray& nmea,
23 const QByteArray& ntripVersion, int timeOut, QString& msg);
24
25 signals:
26 void newMessage(QByteArray msg, bool showOnScreen);
27
28 private slots:
29
30 private:
31 QTcpSocket* _socket;
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.