/***************************************************************************
                            QImageIO.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

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

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QImageIO implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QImageIO(Class dummy){}

	private native void newQImageIO();
	public QImageIO() {
		newQImageIO();
	}
	private native void newQImageIO( QIODeviceInterface ioDevice, String format);
	public QImageIO( QIODeviceInterface ioDevice, String format) {
		newQImageIO( ioDevice, format);
	}
	private native void newQImageIO( String fileName, String format);
	public QImageIO( String fileName, String format) {
		newQImageIO( fileName, format);
	}
	protected native void finalize() throws InternalError;
	public native QImage image();
	public native int status();
	public native String format();
	public native QIODeviceInterface ioDevice();
	public native String fileName();
	public native int quality();
	public native String description();
	public native String parameters();
	public native float gamma();
	public native void setImage( QImage arg1);
	public native void setStatus( int arg1);
	public native void setFormat( String arg1);
	public native void setIODevice( QIODeviceInterface arg1);
	public native void setFileName( String arg1);
	public native void setQuality( int arg1);
	public native void setDescription( String arg1);
	public native void setParameters( String arg1);
	public native void setGamma( float arg1);
	public native boolean read();
	public native boolean write();
	public static native String imageFormat( String fileName);
	public static native String imageFormat( QIODeviceInterface arg1);
	public static native ArrayList inputFormats();
	public static native ArrayList outputFormats();
	public static native void defineIOHandler( String format, String header, String flags, int read_image, int write_image);
}
