home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / include / qimageformatplugin.h < prev    next >
C/C++ Source or Header  |  2001-10-05  |  760b  |  30 lines

  1. #ifndef QIMAGEFORMATPLUGIN_H
  2. #define QIMAGEFORMATPLUGIN_H
  3.  
  4. #ifndef QT_H
  5. #include "qgplugin.h"
  6. #include "qstringlist.h"
  7. #endif // QT_H
  8.  
  9. #ifndef QT_NO_IMAGEFORMATPLUGIN
  10. class QImageFormat;
  11. class QImageFormatPluginPrivate;
  12.  
  13. class Q_EXPORT QImageFormatPlugin : public QGPlugin
  14. {
  15.     Q_OBJECT
  16. public:
  17.     QImageFormatPlugin();
  18.     ~QImageFormatPlugin();
  19.  
  20.     virtual QStringList keys() const = 0;
  21.     virtual bool loadImage( const QString &format, const QString &filename, QImage *image );
  22.     virtual bool saveImage( const QString &format, const QString &filename, const QImage &image );
  23.     virtual bool installIOHandler( const QString &format ) = 0;
  24.  
  25. private:
  26.     QImageFormatPluginPrivate *d;
  27. };
  28. #endif // QT_NO_IMAGEFORMATPLUGIN
  29. #endif // QIMAGEFORMATPLUGIN_H
  30.