kimageio.h
00001 /* 00002 * kimageio.h -- Declaration of interface to the KDE Image IO library. 00003 * Sirtaj Singh Kang <taj@kde.org>, 23 Sep 1998. 00004 * 00005 * This library is distributed under the conditions of the GNU LGPL. 00006 */ 00007 00008 #ifndef SSK_KIMGIO_H 00009 #define SSK_KIMGIO_H 00010 00011 #include <tqstringlist.h> 00012 00013 #include <tdelibs_export.h> 00014 00069 class TDEIO_EXPORT KImageIO 00070 { 00071 public: 00077 enum Mode { Reading, Writing }; 00078 00082 static void registerFormats(); 00083 00089 static bool canWrite(const TQString& type); 00090 00096 static bool canRead(const TQString& type); 00097 00104 static TQStringList types(Mode mode = Writing); 00105 00106 00117 static TQString pattern(Mode mode = Reading); 00118 00125 static TQString suffix(const TQString& type); 00126 00134 static TQString typeForMime(const TQString& mimeType); 00135 00142 static TQString type(const TQString& filename); 00143 00150 static TQStringList mimeTypes( Mode mode = Writing ); 00151 00158 static bool isSupported( const TQString& _mimeType, Mode _mode = Writing ); 00159 00165 static TQString mimeType( const TQString& _filename ); 00166 }; 00167 00168 00169 #endif 00170