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 14 class RASHandler : public QImageIOHandler 15 { 16 public: 17 RASHandler(); 18 19 bool canRead() const override; 20 bool read(QImage *image) override; 21 22 static bool canRead(QIODevice *device); 23 }; 24 25 class RASPlugin : public QImageIOPlugin 26 { 27 Q_OBJECT 28 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ras.json") 29 30 public: 31 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override; 32 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override; 33 }; 34 35 #endif // KIMG_RAS_P_H 36