/***************************************************************************
                            kde_KImageIO.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KImageIO.h"
}

#include <kimageio.h>

void kde_KImageIO_registerFormats( ){
	KImageIO::registerFormats();
	return;
}
int kde_KImageIO_canWrite( qt_QString * type){
	return (int) KImageIO::canWrite((QString&)* (QString*)type);
}
int kde_KImageIO_canRead( qt_QString * type){
	return (int) KImageIO::canRead((QString&)* (QString*)type);
}
qt_QStringList* kde_KImageIO_types( int mode){
	return (qt_QStringList*)new QStringList(KImageIO::types((KImageIO::Mode)mode));
}
qt_QString * kde_KImageIO_pattern( int mode){
	return (qt_QString *)new QString(KImageIO::pattern((KImageIO::Mode)mode));
}
qt_QString * kde_KImageIO_suffix( qt_QString * type){
	return (qt_QString *)new QString(KImageIO::suffix((QString&)* (QString*)type));
}
qt_QString * kde_KImageIO_type( qt_QString * filename){
	return (qt_QString *)new QString(KImageIO::type((QString&)* (QString*)filename));
}
qt_QStringList* kde_KImageIO_mimeTypes( int _mode){
	return (qt_QStringList*)new QStringList(KImageIO::mimeTypes((KImageIO::Mode)_mode));
}
int kde_KImageIO_isSupported( qt_QString * _mimeType, int _mode){
	return (int) KImageIO::isSupported((QString&)* (QString*)_mimeType, (KImageIO::Mode)_mode);
}
qt_QString * kde_KImageIO_mimeType( qt_QString * _filename){
	return (qt_QString *)new QString(KImageIO::mimeType((QString&)* (QString*)_filename));
}
