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

kopete/protocols/messenger/libpapillon

Papillon::ByteStreamBase

Papillon::ByteStreamBase Class Reference

#include <bytestreambase.h>

Inheritance diagram for Papillon::ByteStreamBase:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 29 of file bytestreambase.h.


Signals

void bytesWritten (const qint64 count)
void readyRead ()

Public Member Functions

 ByteStreamBase (QObject *parent)
 ~ByteStreamBase ()
virtual qint64 bytesAvailable () const
virtual qint64 bytesToWrite () const
virtual bool isOpen () const =0
virtual void close ()
virtual QByteArray read (qint64 count)=0
virtual qint64 write (const QByteArray &buffer)=0

Constructor & Destructor Documentation

Papillon::ByteStreamBase::ByteStreamBase ( QObject *  parent  ) 

Creates a new instance of the ByteStream class.

Definition at line 23 of file bytestreambase.cpp.

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.

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.

void Papillon::ByteStreamBase::close (  )  [virtual]

Closes the stream.

Reimplemented in Papillon::NetworkStream.

Definition at line 41 of file bytestreambase.cpp.

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.

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.

void Papillon::ByteStreamBase::bytesWritten ( const qint64  count  )  [signal]

void Papillon::ByteStreamBase::readyRead (  )  [signal]


The documentation for this class was generated from the following files:
  • bytestreambase.h
  • bytestreambase.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