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

kopete/protocols/messenger/libpapillon

Papillon::NetworkStream

Papillon::NetworkStream Class Reference

#include <networkstream.h>

Inheritance diagram for Papillon::NetworkStream:

Inheritance graph
[legend]

List of all members.


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 
)

Creates a new instance of the NetworkStream class.

Definition at line 36 of file networkstream.cpp.

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