00001
00023 #ifndef _TelepathyQt_io_device_h_HEADER_GUARD_
00024 #define _TelepathyQt_io_device_h_HEADER_GUARD_
00025
00026 #ifndef IN_TP_QT_HEADER
00027 #error IN_TP_QT_HEADER
00028 #endif
00029
00030 #include <TelepathyQt/Global>
00031
00032 #include <QIODevice>
00033
00034 namespace Tp
00035 {
00036
00037 class TP_QT_EXPORT IODevice : public QIODevice
00038 {
00039 Q_OBJECT
00040 public:
00041 explicit IODevice(QObject *parent = 0);
00042 ~IODevice();
00043 bool isSequential() const;
00044 qint64 bytesAvailable() const;
00045
00046 protected:
00047 qint64 readData(char *data, qint64 maxSize);
00048 qint64 writeData(const char *data, qint64 maxSize);
00049
00050 private:
00051 class Private;
00052 friend class Private;
00053 Private *mPriv;
00054 };
00055
00056 }
00057
00058 #endif // _TelepathyQt_io_device_h_HEADER_GUARD_