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.13 2003/08/20 08:01:43 coolo 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 
00061 class KImageIO
00062 {
00063 public:
00069   enum Mode { Reading, Writing };
00070 
00074   static void registerFormats();
00075 
00081   static bool canWrite(const QString& type);
00082 
00088   static bool canRead(const QString& type);
00089 
00096   static QStringList types(Mode mode = Writing);
00097 
00098 
00109   static QString pattern(Mode mode = Reading);
00110 
00117   static QString suffix(const QString& type);
00118 
00126   static QString typeForMime(const QString& mimeType);
00127 
00134   static QString type(const QString& filename);
00135 
00142   static QStringList mimeTypes( Mode mode = Writing );
00143 
00150   static bool isSupported( const QString& _mimeType, Mode _mode = Writing );
00151 
00157   static QString mimeType( const QString& _filename );
00158 };
00159 
00160 
00161 #endif
00162 
KDE Logo
This file is part of the documentation for kio Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed May 12 09:06:15 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2003