1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2003 Dominik Seichter <domseichter@web.de>
4 SPDX-FileCopyrightText: 2010 Troy Unrau <troy@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef KIMG_RAS_P_H
10#define KIMG_RAS_P_H
11
12#include <QImageIOPlugin>
13#include <QScopedPointer>
14
15class RASHandlerPrivate;
16class RASHandler : public QImageIOHandler
17{
18public:
19 RASHandler();
20
21 bool canRead() const override;
22 bool read(QImage *image) override;
23
24 bool supportsOption(QImageIOHandler::ImageOption option) const override;
25 QVariant option(QImageIOHandler::ImageOption option) const override;
26
27 static bool canRead(QIODevice *device);
28
29private:
30 const QScopedPointer<RASHandlerPrivate> d;
31};
32
33class RASPlugin : public QImageIOPlugin
34{
35 Q_OBJECT
36 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ras.json")
37
38public:
39 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
40 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
41};
42
43#endif // KIMG_RAS_P_H
44

source code of kimageformats/src/imageformats/ras_p.h