6#ifndef QICNSHANDLER_P_H
7#define QICNSHANDLER_P_H
9#include <QtGui/qimageiohandler.h>
10#include <QtCore/qlist.h>
12#ifndef QT_NO_DATASTREAM
14#define MAKEOSTYPE(c0,c1,c2,c3) (((quint8)c0 << 24
) | ((quint8)c1 << 16
) | ((quint8)c2 << 8
) | (quint8)c3)
97 bool read(QImage *image)
override;
98 bool write(
const QImage &image)
override;
107 static bool canRead(QIODevice *device);
110 bool ensureScanned()
const;
112 bool addEntry(
const ICNSBlockHeader &header, qint64 imgDataOffset, quint32 variant = 0);
122 int m_currentIconIndex;
123 QList<ICNSEntry> m_icons;
124 QList<ICNSEntry> m_masks;
int imageCount() const override
For image formats that support animation, this function returns the number of images in the animation...
bool write(const QImage &image) override
Writes the image image to the assigned device.
bool read(QImage *image) override
Read an image from the device, and stores it in image.
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
bool jumpToImage(int imageNumber) override
For image formats that support animation, this function jumps to the image whose sequence number is i...
bool jumpToNextImage() override
For image formats that support animation, this function jumps to the next image.
static bool canRead(QIODevice *device)
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
#define MAKEOSTYPE(c0, c1, c2, c3)
Q_DECLARE_TYPEINFO(ICNSEntry, Q_RELOCATABLE_TYPE)