summaryrefslogtreecommitdiff
path: root/saltoqd/msolimageiohandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'saltoqd/msolimageiohandler.h')
-rw-r--r--saltoqd/msolimageiohandler.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/saltoqd/msolimageiohandler.h b/saltoqd/msolimageiohandler.h
new file mode 100644
index 0000000..992c68e
--- /dev/null
+++ b/saltoqd/msolimageiohandler.h
@@ -0,0 +1,20 @@
+#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;
+};
+
+#endif // MSOLIMAGEIOHANDLER_H