File indexing completed on 2024-06-23 04:27:12
0001 /* 0002 * SPDX-FileCopyrightText: 2009 Shawn T. Rutledge (shawn.t.rutledge@gmail.com) 0003 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #ifndef QGIFLIBHANDLER_H 0008 #define QGIFLIBHANDLER_H 0009 0010 #include <QImageIOHandler> 0011 #include <QImage> 0012 #include <QVariant> 0013 0014 class QGIFLibHandler : public QImageIOHandler 0015 { 0016 public: 0017 QGIFLibHandler(); 0018 bool canRead() const override; 0019 bool read(QImage *image) override; 0020 bool write(const QImage &image) override; 0021 static bool canRead(QIODevice *device); 0022 bool supportsOption(ImageOption option) const override; 0023 void setOption(ImageOption option, const QVariant &value) override; 0024 QVariant option(ImageOption option) const override; 0025 0026 private: 0027 QString m_description; 0028 }; 0029 0030 #endif // QGIFLIBHANDLER_H