#include <QtCore/qbuffer.h>
#ifndef QBUFFER_H
class QBuffer: public QIODevice{
   /* Some contents are skipped to improve readability */
   public: inline void setData(char const * adata, int alen);
   /* ... */
};
#endif // QBUFFER_H