home *** CD-ROM | disk | FTP | other *** search
- #ifndef QIMAGEFORMATPLUGIN_H
- #define QIMAGEFORMATPLUGIN_H
-
- #ifndef QT_H
- #include "qgplugin.h"
- #include "qstringlist.h"
- #endif // QT_H
-
- #ifndef QT_NO_IMAGEFORMATPLUGIN
- class QImageFormat;
- class QImageFormatPluginPrivate;
-
- class Q_EXPORT QImageFormatPlugin : public QGPlugin
- {
- Q_OBJECT
- public:
- QImageFormatPlugin();
- ~QImageFormatPlugin();
-
- virtual QStringList keys() const = 0;
- virtual bool loadImage( const QString &format, const QString &filename, QImage *image );
- virtual bool saveImage( const QString &format, const QString &filename, const QImage &image );
- virtual bool installIOHandler( const QString &format ) = 0;
-
- private:
- QImageFormatPluginPrivate *d;
- };
- #endif // QT_NO_IMAGEFORMATPLUGIN
- #endif // QIMAGEFORMATPLUGIN_H
-