kio Library API Documentation

kimageio.h

00001 /* 00002 * kimgio.h -- Declaration of interface to the KDE Image IO library. 00003 * Sirtaj Singh Kang <taj@kde.org>, 23 Sep 1998. 00004 * 00005 * $Id: kimageio.h,v 1.15 2004/02/01 04:40:41 bhards Exp $ 00006 * 00007 * This library is distributed under the conditions of the GNU LGPL. 00008 */ 00009 00010 #ifndef SSK_KIMGIO_H 00011 #define SSK_KIMGIO_H 00012 00013 #include <qstringlist.h> 00014 00070 class KImageIO 00071 { 00072 public: 00078 enum Mode { Reading, Writing }; 00079 00083 static void registerFormats(); 00084 00090 static bool canWrite(const QString& type); 00091 00097 static bool canRead(const QString& type); 00098 00105 static QStringList types(Mode mode = Writing); 00106 00107 00118 static QString pattern(Mode mode = Reading); 00119 00126 static QString suffix(const QString& type); 00127 00135 static QString typeForMime(const QString& mimeType); 00136 00143 static QString type(const QString& filename); 00144 00151 static QStringList mimeTypes( Mode mode = Writing ); 00152 00159 static bool isSupported( const QString& _mimeType, Mode _mode = Writing ); 00160 00166 static QString mimeType( const QString& _filename ); 00167 }; 00168 00169 00170 #endif 00171
KDE Logo
This file is part of the documentation for kio Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 17 11:29:26 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003