#include <QtCore/qbuffer.h>
#ifndef QBUFFER_H
class QBuffer: public QIODevice{
   /* Some contents are skipped to improve readability */
   public: void setData(class QByteArray const & data);
   /* ... */
};
#endif // QBUFFER_H