1/***************************************************************************
2 * Copyright (C) 2008 by Jakub Stachowski <qbast@go2.pl> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
9
10#ifndef QFILESTREAM_H
11#define QFILESTREAM_H
12
13#include <QFile>
14#include "mobipocket.h"
15
16namespace Mobipocket {
17
18class QMOBIPOCKET_EXPORT QFileStream : public Stream
19{
20public:
21 QFileStream(const QString& name);
22 ~QFileStream();
23 int read(char* buf, int size) override;
24 bool seek(int pos) override;
25private:
26 QFile *d;
27};
28
29}
30#endif
31

source code of kdegraphics-mobipocket/lib/qfilestream.h