File indexing completed on 2024-04-28 15:25:44
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2003 Dominik Seichter <domseichter@web.de> 0004 SPDX-FileCopyrightText: 2010 Troy Unrau <troy@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef KIMG_RAS_P_H 0010 #define KIMG_RAS_P_H 0011 0012 #include <QImageIOPlugin> 0013 0014 class RASHandler : public QImageIOHandler 0015 { 0016 public: 0017 RASHandler(); 0018 0019 bool canRead() const override; 0020 bool read(QImage *image) override; 0021 0022 static bool canRead(QIODevice *device); 0023 }; 0024 0025 class RASPlugin : public QImageIOPlugin 0026 { 0027 Q_OBJECT 0028 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ras.json") 0029 0030 public: 0031 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override; 0032 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override; 0033 }; 0034 0035 #endif // KIMG_RAS_P_H