summaryrefslogtreecommitdiff
path: root/saltoqd/msolimageiohandler.h
blob: fbfb1b5f3479566d64bf67303c72e452cde1c379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MSOLIMAGEIOHANDLER_H
#define MSOLIMAGEIOHANDLER_H

#include <QtGui/QImageIOHandler>

class MSOLImageIOHandler : public QImageIOHandler
{
public:
	MSOLImageIOHandler();

	bool canRead() const Q_DECL_OVERRIDE;
	bool read(QImage *image) Q_DECL_OVERRIDE;
	bool write(const QImage &image) Q_DECL_OVERRIDE;

	bool supportsOption(ImageOption option) const Q_DECL_OVERRIDE;
	QVariant option(ImageOption option) const Q_DECL_OVERRIDE;
	void setOption(ImageOption option, const QVariant &value) Q_DECL_OVERRIDE;
};

QByteArray convertImageToMsol(const QImage &img);
QImage convertMsolToImage(const QByteArray &msol);

#endif // MSOLIMAGEIOHANDLER_H