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 | |
11 | class QIODevice; |
12 | |
13 | namespace Mobipocket |
14 | { |
15 | struct PDBPrivate; |
16 | class PDB |
17 | { |
18 | public: |
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 | |
29 | private: |
30 | std::unique_ptr<PDBPrivate> d; |
31 | }; |
32 | } |
33 | #endif |
34 | |