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

kopete/protocols/messenger/libpapillon

networkstream.h

Go to the documentation of this file.
00001 //
00002 // NetworkStream class
00003 //
00004 // Authors:
00005 //   Gregg Edghill (Gregg.Edghill@gmail.com)
00006 //
00007 // Copyright (C) 2007, Kopete (http://kopete.kde.org)
00008 //
00009 // The above copyright notice and this permission notice shall be
00010 // included in all copies or substantial portions of this software.
00011 //
00012 // THIS LIBRARY IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR
00013 // MODIFY IT UNDER THE TERMS OF THE GNU LESSER GENERAL PUBLIC
00014 // LICENSE AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION; EITHER
00015 // VERSION 2 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
00016 //
00017 
00018 #ifndef PAPILLON_NETWORKSTREAM_H
00019 #define PAPILLON_NETWORKSTREAM_H
00020 
00021 #include <Papillon/Base/ByteStreamBase>
00022 class QTcpSocket;
00023 
00024 namespace Papillon
00025 {
00026 
00029 class NetworkStream : public ByteStreamBase
00030 {
00031     Q_OBJECT
00032 
00033     public:
00035         NetworkStream(QTcpSocket *socket, bool ownsSocket, QObject *parent);
00037         virtual ~NetworkStream();
00038 
00039     public:
00041         qint64 bytesAvailable() const;
00043         bool isOpen() const;
00045         void close();
00047         QByteArray read(qint64 count);
00049         QByteArray readAll();
00051         qint64 write(const QByteArray & buffer);
00052 
00053     private Q_SLOTS:
00055         void socket_OnRead();
00056 
00057     private:
00058         class NetworkStreamPrivate;
00059         NetworkStreamPrivate *d;
00060 
00061 }; // NetworkStream
00062 }
00063 
00064 #endif

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