KImageFormats

kra.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 2013 Boudewijn Rempt <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KIMG_KRA_H
9 #define KIMG_KRA_H
10 
11 #include <QImageIOPlugin>
12 
13 class KraHandler : public QImageIOHandler
14 {
15 public:
16  KraHandler();
17 
18  bool canRead() const override;
19  bool read(QImage *image) override;
20 
21  static bool canRead(QIODevice *device);
22 };
23 
24 class KraPlugin : public QImageIOPlugin
25 {
26  Q_OBJECT
27  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "kra.json")
28 
29 public:
30  Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
31  QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
32 };
33 
34 #endif
QAction * create(StandardAction id, const QObject *recvr, Func slot, QObject *parent)
virtual bool canRead() const const =0
Capabilities capabilities()
virtual bool read(QImage *image)=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 22:45:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.