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

kopete/protocols/messenger/libpapillon

bytestreambase.h

Go to the documentation of this file.
00001 //
00002 // ByteStreamBase 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 BYTESTREAMBASE_H
00019 #define BYTESTREAMBASE_H
00020 
00021 #include <QtCore/QObject>
00022 #include <QtCore/QByteArray>
00023 
00024 namespace Papillon
00025 {
00026 
00029 class ByteStreamBase : public QObject
00030 {
00031     Q_OBJECT
00032 
00033     public:
00035         ByteStreamBase(QObject *parent);
00037         ~ByteStreamBase();
00038 
00039     public:
00041         virtual qint64 bytesAvailable() const;
00043         virtual qint64 bytesToWrite() const;
00045         virtual bool isOpen() const = 0;
00047         virtual void close();
00049         virtual QByteArray read(qint64 count) = 0;
00051         virtual qint64 write(const QByteArray & buffer) = 0;
00052 
00053     signals:
00054         void bytesWritten(const qint64 count);
00055         void readyRead();
00056 
00057 }; // ByteStream
00058 }
00059 
00060 #endif // BYTESTREAMBASE_H

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