1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2003 Ignacio CastaƱo <castano@ludicon.com>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KIMG_PSD_P_H
9#define KIMG_PSD_P_H
10
11#include <QImageIOPlugin>
12
13class PSDHandler : public QImageIOHandler
14{
15public:
16 PSDHandler();
17
18 bool canRead() const override;
19 bool read(QImage *image) override;
20
21 bool supportsOption(QImageIOHandler::ImageOption option) const override;
22 QVariant option(QImageIOHandler::ImageOption option) const override;
23
24 static bool canRead(QIODevice *device);
25};
26
27class PSDPlugin : public QImageIOPlugin
28{
29 Q_OBJECT
30 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "psd.json")
31
32public:
33 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
34 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
35};
36
37#endif // KIMG_PSD_P_H
38

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