1// SPDX-FileCopyrightText: 2008 by Jakub Stachowski <qbast@go2.pl>
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef MOBIPOCKET_PDB_P_H
5#define MOBIPOCKET_PDB_P_H
6
7#include <QByteArray>
8
9#include <memory>
10
11class QIODevice;
12
13namespace Mobipocket
14{
15struct PDBPrivate;
16class PDB
17{
18public:
19 explicit PDB(QIODevice *device);
20 ~PDB();
21
22 QByteArray fileType() const;
23 quint16 recordCount() const;
24 QByteArray getRecord(quint16 i) const;
25 bool isValid() const;
26
27 Q_DISABLE_COPY(PDB);
28
29private:
30 std::unique_ptr<PDBPrivate> d;
31};
32}
33#endif
34

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