00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef SSK_KIMGIO_H
00011 #define SSK_KIMGIO_H
00012
00013 #include <qstringlist.h>
00014
00062 class KImageIO
00063 {
00064 public:
00070 enum Mode { Reading, Writing };
00071
00075 static void registerFormats();
00076
00082 static bool canWrite(const QString& type);
00083
00089 static bool canRead(const QString& type);
00090
00097 static QStringList types(Mode mode = Writing);
00098
00099
00108 static QString pattern(Mode mode = Reading);
00109
00116 static QString suffix(const QString& type);
00117
00125 static QString typeForMime(const QString& mimeType);
00126
00133 static QString type(const QString& filename);
00134
00141 static QStringList mimeTypes( Mode _mode = Writing );
00142
00149 static bool isSupported( const QString& _mimeType, Mode _mode = Writing );
00150
00156 static QString mimeType( const QString& _filename );
00157 };
00158
00159
00160 #endif
00161