/* QImageIO Routines to read/write EPS images. SPDX-FileCopyrightText: 1998 Dirk Schoenberger SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KIMG_EPS_P_H #define KIMG_EPS_P_H #include #include class EPSHandler : public QImageIOHandler { public: EPSHandler(); bool canRead() const override; bool read(QImage *image) override; bool write(const QImage &image) override; static bool canRead(QIODevice *device); }; class EPSPlugin : public QImageIOPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "eps.json") public: Capabilities capabilities(QIODevice *device, const QByteArray &format) const override; QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override; }; Q_DECLARE_LOGGING_CATEGORY(EPSPLUGIN) #endif // KIMG_EPS_P_H