Changeset 1362 in ntrip
- Timestamp:
- Dec 27, 2008, 9:39:50 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncsocket.cpp ¶
r1361 r1362 31 31 app->connect(this, SIGNAL(newMessage(QByteArray,bool)), 32 32 app, SLOT(slotMessage(const QByteArray,bool))); 33 _socket = 0; 34 _http = 0; 35 _buffer = 0; 33 _socket = 0; 34 _http = 0; 35 _buffer = 0; 36 _eventLoop = 0; 36 37 } 37 38 … … 43 44 delete _http; 44 45 delete _buffer; 46 delete _eventLoop; 45 47 } 46 48 -
TabularUnified 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.