kio
kimageio.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef SSK_KIMGIO_H
00009 #define SSK_KIMGIO_H
00010
00011 #include <qstringlist.h>
00012
00013 #include <kdelibs_export.h>
00014
00069 class KIO_EXPORT KImageIO
00070 {
00071 public:
00077 enum Mode { Reading, Writing };
00078
00082 static void registerFormats();
00083
00089 static bool canWrite(const QString& type);
00090
00096 static bool canRead(const QString& type);
00097
00104 static QStringList types(Mode mode = Writing);
00105
00106
00117 static QString pattern(Mode mode = Reading);
00118
00125 static QString suffix(const QString& type);
00126
00134 static QString typeForMime(const QString& mimeType);
00135
00142 static QString type(const QString& filename);
00143
00150 static QStringList mimeTypes( Mode mode = Writing );
00151
00158 static bool isSupported( const QString& _mimeType, Mode _mode = Writing );
00159
00165 static QString mimeType( const QString& _filename );
00166 };
00167
00168
00169 #endif
00170