# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# 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 <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

This file is part of the documentation for kio Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:59 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003