KImageFormats

ora.h
1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2013 Boudewijn Rempt <boud@valdyas.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KIMG_ORA_H
9#define KIMG_ORA_H
10
11#include <QImageIOPlugin>
12
13class OraHandler : public QImageIOHandler
14{
15public:
16 OraHandler();
17
18 bool canRead() const override;
19 bool read(QImage *image) override;
20
21 static bool canRead(QIODevice *device);
22};
23
24class OraPlugin : public QImageIOPlugin
25{
27 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ora.json")
28public:
29 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
30 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
31};
32
33#endif
QIODevice * device() const const
typedef Capabilities
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:40 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.