Home · Modules · All Classes · All Namespaces
io-device.h
1 
23 #ifndef _TelepathyQt_io_device_h_HEADER_GUARD_
24 #define _TelepathyQt_io_device_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/Global>
31 
32 #include <QIODevice>
33 
34 namespace Tp
35 {
36 
37 class TP_QT_EXPORT IODevice : public QIODevice
38 {
39  Q_OBJECT
40 public:
41  explicit IODevice(QObject *parent = 0);
42  ~IODevice();
43  bool isSequential() const;
44  qint64 bytesAvailable() const;
45 
46 protected:
47  qint64 readData(char *data, qint64 maxSize);
48  qint64 writeData(const char *data, qint64 maxSize);
49 
50 private:
51  struct Private;
52  friend struct Private;
53  Private *mPriv;
54 };
55 
56 } // namespace Tp
57 
58 #endif // _TelepathyQt_io_device_h_HEADER_GUARD_
The IODevice class represents a buffer with independent read-write.
Definition: io-device.h:37
Definition: abstract-adaptor.cpp:31