QtPBFImagePlugin/src/pbfhandler.h

32 lines
582 B
C
Raw Normal View History

2018-10-29 00:11:23 +01:00
#ifndef PBFHANDLER_H
#define PBFHANDLER_H
#include <QImageIOHandler>
#include <QVariant>
#include <QSize>
2018-10-29 00:11:23 +01:00
2018-12-07 00:50:11 +01:00
class QImage;
2018-10-29 00:11:23 +01:00
class Style;
class PBFHandler : public QImageIOHandler
{
public:
2018-12-07 00:50:11 +01:00
PBFHandler(const Style *style) : _style(style) {}
2018-10-29 00:11:23 +01:00
~PBFHandler() {}
bool canRead() const;
bool read(QImage *image);
QVariant option(ImageOption option) const;
bool supportsOption(ImageOption option) const;
2018-12-07 00:50:11 +01:00
void setOption(ImageOption option, const QVariant &value);
2018-10-29 00:11:23 +01:00
static bool canRead(QIODevice *device);
private:
2018-12-07 00:50:11 +01:00
const Style *_style;
QSize _scaledSize;
2018-10-29 00:11:23 +01:00
};
#endif // PBFHANDLER_H