• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/protocols/messenger/libpapillon

Papillon::QtByteStream

Papillon::QtByteStream Class Reference

#include <Papillon/QtByteStream>

Inheritance diagram for Papillon::QtByteStream:

Inheritance graph
[legend]

List of all members.


Detailed Description

ByteStream for QTcpSocket.

Author:
Michaƫl Larouche

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:
  • qtbytestream.h
  • qtbytestream.cpp

kopete/protocols/messenger/libpapillon

Skip menu "kopete/protocols/messenger/libpapillon"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal