Changeset 1345 in ntrip for trunk/BNC/bncsocket.h


Ignore:
Timestamp:
Dec 27, 2008, 12:23:20 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsocket.h

    r1344 r1345  
    44#include <QtNetwork>
    55
    6 class bncSocket : public QIODevice {
    7  Q_OBJECT
     6class bncSocket : public QObject {
    87
    98 public:
     
    1110  ~bncSocket();
    1211
    13   void connectToHost(const QString &hostName, quint16 port,
    14                      OpenMode mode = QIODevice::ReadWrite);
    15 
    16   bool waitForConnected(int msecs = 30000);
    17 
     12  void       close();
     13  qint64     bytesAvailable() const;
     14  bool       canReadLine() const;
     15  QByteArray readLine(qint64 maxlen = 0);
     16  bool       waitForReadyRead(int msecs = 30000);
     17  qint64     read(char *data, qint64 maxlen);
     18  qint64     write(const char *data, qint64 len);
     19  bool       waitForBytesWritten(int msecs = 30000);
     20  void       connectToHost(const QString &hostName, quint16 port,
     21                           QIODevice::OpenMode mode = QIODevice::ReadWrite);
     22  bool       waitForConnected(int msecs = 30000);
    1823  QAbstractSocket::SocketState state() const;
    19 
    20  protected:
    21   virtual qint64 readData(char* data, qint64 maxSize);
    22   virtual qint64 writeData(const char* data, qint64 maxSize);
    23 
    24  signals:
    25 
    26  private slots:
    2724
    2825 private:
Note: See TracChangeset for help on using the changeset viewer.