kopete/protocols/messenger/libpapillon
Papillon::ByteStreamBase Class Reference
#include <bytestreambase.h>

Detailed Description
Definition at line 29 of file bytestreambase.h.
Signals | |
| void | bytesWritten (const qint64 count) |
| void | readyRead () |
Public Member Functions | |
| virtual qint64 | bytesAvailable () const |
| virtual qint64 | bytesToWrite () const |
| ByteStreamBase (QObject *parent) | |
| virtual void | close () |
| virtual bool | isOpen () const =0 |
| virtual QByteArray | read (qint64 count)=0 |
| virtual qint64 | write (const QByteArray &buffer)=0 |
| ~ByteStreamBase () | |
Constructor & Destructor Documentation
| Papillon::ByteStreamBase::ByteStreamBase | ( | QObject * | parent | ) |
| Papillon::ByteStreamBase::~ByteStreamBase | ( | ) |
Frees resources and performs other cleanup operations.
Definition at line 27 of file bytestreambase.cpp.
Member Function Documentation
| qint64 Papillon::ByteStreamBase::bytesAvailable | ( | ) | const [virtual] |
Returns the number of incoming bytes that are waiting to be read.
Reimplemented in Papillon::NetworkStream.
Definition at line 31 of file bytestreambase.cpp.
| qint64 Papillon::ByteStreamBase::bytesToWrite | ( | ) | const [virtual] |
Returns the number of bytes that are waiting to be written.
Definition at line 36 of file bytestreambase.cpp.
| void Papillon::ByteStreamBase::bytesWritten | ( | const qint64 | count | ) | [signal] |
| void Papillon::ByteStreamBase::close | ( | ) | [virtual] |
Closes the stream.
Reimplemented in Papillon::NetworkStream.
Definition at line 41 of file bytestreambase.cpp.
| virtual bool Papillon::ByteStreamBase::isOpen | ( | ) | const [pure virtual] |
When overridden in a derived class, returns a value indicating whether the ByteStream is open.
Implemented in Papillon::NetworkStream.
| virtual QByteArray Papillon::ByteStreamBase::read | ( | qint64 | count | ) | [pure virtual] |
When overridden in a derived class, returns a byte array containing count bytes read from the stream.
Implemented in Papillon::NetworkStream.
| void Papillon::ByteStreamBase::readyRead | ( | ) | [signal] |
| virtual qint64 Papillon::ByteStreamBase::write | ( | const QByteArray & | buffer | ) | [pure virtual] |
When overridden in a derived class, writes the contents of the buufer to the stream.
Implemented in Papillon::NetworkStream.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference