1/* poppler-qiodeviceinstream-private.h: Qt6 interface to poppler
2 * Copyright (C) 2019 Alexander Volkov <a.volkov@rusbitech.ru>
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, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef POPPLER_QIODEVICEINSTREAM_PRIVATE_H
20#define POPPLER_QIODEVICEINSTREAM_PRIVATE_H
21
22#include "Object.h"
23#include "Stream.h"
24
25class QIODevice;
26
27namespace Poppler {
28
29class QIODeviceInStream : public BaseSeekInputStream
30{
31public:
32 QIODeviceInStream(QIODevice *device, Goffset startA, bool limitedA, Goffset lengthA, Object &&dictA);
33 ~QIODeviceInStream() override;
34
35 BaseStream *copy() override;
36 Stream *makeSubStream(Goffset startA, bool limitedA, Goffset lengthA, Object &&dictA) override;
37
38private:
39 Goffset currentPos() const override;
40 void setCurrentPos(Goffset offset) override;
41 Goffset read(char *buffer, Goffset count) override;
42
43 QIODevice *m_device;
44};
45
46}
47
48#endif
49

source code of poppler/qt6/src/poppler-qiodeviceinstream-private.h