mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-30 22:51:17 +01:00
30 lines
503 B
C
30 lines
503 B
C
|
#ifndef PBFHANDLER_H
|
||
|
#define PBFHANDLER_H
|
||
|
|
||
|
#include <QImageIOHandler>
|
||
|
#include <QImage>
|
||
|
#include <QVariant>
|
||
|
|
||
|
class Style;
|
||
|
|
||
|
class PBFHandler : public QImageIOHandler
|
||
|
{
|
||
|
public:
|
||
|
PBFHandler(Style *style) : _style(style) {}
|
||
|
~PBFHandler() {}
|
||
|
|
||
|
bool canRead() const;
|
||
|
bool read(QImage *image);
|
||
|
|
||
|
QByteArray name() const;
|
||
|
QVariant option(ImageOption option) const;
|
||
|
bool supportsOption(ImageOption option) const;
|
||
|
|
||
|
static bool canRead(QIODevice *device);
|
||
|
|
||
|
private:
|
||
|
Style *_style;
|
||
|
};
|
||
|
|
||
|
#endif // PBFHANDLER_H
|