1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the Qt API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | // |
14 | |
15 | #ifndef QWBMPHANDLER_P_H |
16 | #define QWBMPHANDLER_P_H |
17 | |
18 | #include <qimageiohandler.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class WBMPReader; |
23 | |
24 | class QWbmpHandler : public QImageIOHandler |
25 | { |
26 | public: |
27 | QWbmpHandler(QIODevice *device); |
28 | ~QWbmpHandler(); |
29 | |
30 | bool canRead() const override; |
31 | bool read(QImage *image) override; |
32 | bool write(const QImage &image) override; |
33 | |
34 | QVariant option(ImageOption option) const override; |
35 | bool supportsOption(ImageOption option) const override; |
36 | |
37 | static bool canRead(QIODevice *device); |
38 | |
39 | private: |
40 | WBMPReader *m_reader; |
41 | }; |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif /* QWBMPHANDLER_P_H */ |
46 | |