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 | |
16 | namespace Mobipocket { |
17 | |
18 | class QMOBIPOCKET_EXPORT QFileStream : public Stream |
19 | { |
20 | public: |
21 | QFileStream(const QString& name); |
22 | ~QFileStream(); |
23 | int read(char* buf, int size) override; |
24 | bool seek(int pos) override; |
25 | private: |
26 | QFile *d; |
27 | }; |
28 | |
29 | } |
30 | #endif |
31 | |