Changeset 1362 in ntrip for trunk/BNC/bncsocket.h
- Timestamp:
- Dec 27, 2008, 9:39:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsocket.h
r1360 r1362 5 5 #include "bncconst.h" 6 6 7 class bncSocket : public Q Thread{7 class bncSocket : public QObject { 8 8 Q_OBJECT 9 9 … … 18 18 bool waitForReadyRead(int msecs = 30000); 19 19 qint64 read(char *data, qint64 maxlen); 20 qint64 write(const char *data, qint64 len);21 bool waitForBytesWritten(int msecs = 30000);22 void connectToHost(const QString &hostName, quint16 port,23 QIODevice::OpenMode mode = QIODevice::ReadWrite);24 bool waitForConnected(int msecs = 30000);25 20 QAbstractSocket::SocketState state() const; 26 21 … … 30 25 31 26 signals: 27 void quitEventLoop(); 32 28 void newMessage(QByteArray msg, bool showOnScreen); 33 29 … … 36 32 void slotRequestFinished(int, bool); 37 33 void slotReadyRead(); 38 void slotSslErrors(const QList<QSslError>&);39 34 40 35 private: … … 46 41 QHttp* _http; 47 42 QBuffer* _buffer; 43 QEventLoop* _eventLoop; 48 44 }; 49 45
Note:
See TracChangeset
for help on using the changeset viewer.