Changeset 1362 in ntrip


Ignore:
Timestamp:
Dec 27, 2008, 9:39:50 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsocket.cpp

    r1361 r1362  
    3131  app->connect(this, SIGNAL(newMessage(QByteArray,bool)),
    3232               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;
    3637}
    3738
     
    4344  delete _http;
    4445  delete _buffer;
     46  delete _eventLoop;
    4547}
    4648
  • trunk/BNC/bncsocket.h

    r1360 r1362  
    55#include "bncconst.h"
    66
    7 class bncSocket : public QThread {
     7class bncSocket : public QObject {
    88 Q_OBJECT
    99
     
    1818  bool       waitForReadyRead(int msecs = 30000);
    1919  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);
    2520  QAbstractSocket::SocketState state() const;
    2621
     
    3025
    3126 signals:
     27  void quitEventLoop();
    3228  void newMessage(QByteArray msg, bool showOnScreen);
    3329
     
    3632  void slotRequestFinished(int, bool);
    3733  void slotReadyRead();
    38   void slotSslErrors(const QList<QSslError>&);
    3934
    4035 private:
     
    4641  QHttp*      _http;     
    4742  QBuffer*    _buffer;
     43  QEventLoop* _eventLoop;
    4844};
    4945
Note: See TracChangeset for help on using the changeset viewer.