kopete/protocols/messenger/libpapillon
Papillon::QtByteStream Class Reference
#include <Papillon/QtByteStream>

Detailed Description
ByteStream for QTcpSocket.
Definition at line 29 of file qtbytestream.h.
Signals | |
| void | connected () |
Public Member Functions | |
| virtual void | close () |
| bool | connect (const QString &host, quint16 port) |
| virtual bool | isOpen () const |
| QtByteStream (QObject *parent=0) | |
| ~QtByteStream () | |
Protected Member Functions | |
| virtual int | tryWrite () |
Constructor & Destructor Documentation
| Papillon::QtByteStream::QtByteStream | ( | QObject * | parent = 0 |
) |
Definition at line 29 of file qtbytestream.cpp.
| Papillon::QtByteStream::~QtByteStream | ( | ) |
Definition at line 42 of file qtbytestream.cpp.
Member Function Documentation
| void Papillon::QtByteStream::close | ( | ) | [virtual] |
Closes the stream.
If there is data in the write buffer then it will be written before actually closing the stream. Once all data has been written, the delayedCloseFinished() signal will be emitted.
- See also:
- delayedCloseFinished()
Reimplemented from Papillon::ByteStream.
Definition at line 58 of file qtbytestream.cpp.
| bool Papillon::QtByteStream::connect | ( | const QString & | host, | |
| quint16 | port | |||
| ) |
Definition at line 47 of file qtbytestream.cpp.
| void Papillon::QtByteStream::connected | ( | ) | [signal] |
| bool Papillon::QtByteStream::isOpen | ( | ) | const [virtual] |
Returns TRUE if the stream is open, meaning that you can write to it.
Reimplemented from Papillon::ByteStream.
Definition at line 53 of file qtbytestream.cpp.
| int Papillon::QtByteStream::tryWrite | ( | ) | [protected, virtual] |
Attempts to try and write some bytes from the write buffer, and returns the number successfully written or -1 on error.
The default implementation returns -1.
Reimplemented from Papillon::ByteStream.
Definition at line 64 of file qtbytestream.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference