| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# 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.9 2002/09/28 14:41:42 tjansen 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
    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

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:13:37 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001