File indexing completed on 2024-04-28 15:38:20
0001 /*************************************************************************** 0002 * Copyright (C) 2008 by Jakub Stachowski <qbast@go2.pl> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify * 0005 * it under the terms of the GNU General Public License as published by * 0006 * the Free Software Foundation; either version 2 of the License, or * 0007 * (at your option) any later version. * 0008 ***************************************************************************/ 0009 0010 #ifndef QFILESTREAM_H 0011 #define QFILESTREAM_H 0012 0013 #include <QFile> 0014 #include "mobipocket.h" 0015 0016 namespace Mobipocket { 0017 0018 class QMOBIPOCKET_EXPORT QFileStream : public Stream 0019 { 0020 public: 0021 QFileStream(const QString& name); 0022 ~QFileStream(); 0023 int read(char* buf, int size) override; 0024 bool seek(int pos) override; 0025 private: 0026 QFile *d; 0027 }; 0028 0029 } 0030 #endif