QxtLineSocket Class Reference
[QxtCore module]
The QxtLineSocket class acts on a QIODevice as baseclass for line-based protocols More...
#include <QxtLineSocket>
Inherits QObject.
Public Functions
- 29 public functions inherited from QObject
Public Slots
- void sendLine ( const QByteArray & line )
- 1 public slot inherited from QObject
Signals
Protected Functions
- virtual void newLine ( const QByteArray & line )
- 7 protected functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
The QxtLineSocket class acts on a QIODevice as baseclass for line-based protocols
Member Function Documentation
QxtLineSocket::QxtLineSocket ( QObject * parent = 0 )
Constructs a new QxtLineSocket with parent.
QxtLineSocket::QxtLineSocket ( QIODevice * socket, QObject * parent = 0 )
Constructs a new QxtLineSocket with socket and parent.
void QxtLineSocket::newLine ( const QByteArray & line ) [virtual protected]
This virtual function is called by QxtLineSocket whenever a line was received. Reimplement this function when creating a subclass of QxtLineSocket.
\note
The default implementation does nothing.
void QxtLineSocket::newLineReceived ( const QByteArray & line ) [signal]
This signal is emitted whenever a new line is received.
void QxtLineSocket::sendLine ( const QByteArray & line ) [slot]
Sends a line.
void QxtLineSocket::setSocket ( QIODevice * socket )
Sets the socket.
See also socket().
QIODevice * QxtLineSocket::socket () const
Returns the socket.
See also setSocket().