kopete/protocols/messenger/libpapillon
Papillon::NetworkStream Class Reference
#include <networkstream.h>

Detailed Description
Provides methods to access the underlying network socket's data stream.
Definition at line 29 of file networkstream.h.
Public Member Functions | |
| qint64 | bytesAvailable () const |
| void | close () |
| bool | isOpen () const |
| NetworkStream (QTcpSocket *socket, bool ownsSocket, QObject *parent) | |
| QByteArray | read (qint64 count) |
| QByteArray | readAll () |
| qint64 | write (const QByteArray &buffer) |
| virtual | ~NetworkStream () |
Constructor & Destructor Documentation
| Papillon::NetworkStream::NetworkStream | ( | QTcpSocket * | socket, | |
| bool | ownsSocket, | |||
| QObject * | parent | |||
| ) |
| Papillon::NetworkStream::~NetworkStream | ( | ) | [virtual] |
Frees resources and performs other cleanup operations.
Definition at line 48 of file networkstream.cpp.
Member Function Documentation
| qint64 Papillon::NetworkStream::bytesAvailable | ( | ) | const [virtual] |
Returns the number of incoming bytes that are waiting to be read.
Reimplemented from Papillon::ByteStreamBase.
Definition at line 54 of file networkstream.cpp.
| void Papillon::NetworkStream::close | ( | ) | [virtual] |
Closes the stream.
Reimplemented from Papillon::ByteStreamBase.
Definition at line 64 of file networkstream.cpp.
| bool Papillon::NetworkStream::isOpen | ( | ) | const [virtual] |
Returns a value which indicates whether the network stream is open.
Implements Papillon::ByteStreamBase.
Definition at line 59 of file networkstream.cpp.
| QByteArray Papillon::NetworkStream::read | ( | qint64 | count | ) | [virtual] |
Returns a byte array containing 'count' bytes read from the stream.
Implements Papillon::ByteStreamBase.
Definition at line 77 of file networkstream.cpp.
| QByteArray Papillon::NetworkStream::readAll | ( | ) |
Returns a byte array containing all data available from the stream.
Definition at line 94 of file networkstream.cpp.
| qint64 Papillon::NetworkStream::write | ( | const QByteArray & | buffer | ) | [virtual] |
Writes the contents of the supplied byte array to the stream.
Implements Papillon::ByteStreamBase.
Definition at line 101 of file networkstream.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference