/***************************************************************************
                            QImageDecoder.java -  description
                             -------------------
    begin                : Sun Nov  3 10:27:27 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Nov  3 10:27:27 2002, 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  QImageDecoder implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QImageDecoder(Class dummy){}

	private native void newQImageDecoder( QImageConsumer c);
	public QImageDecoder( QImageConsumer c) {
		newQImageDecoder( c);
	}

	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();
	public native QImage image();
	public native int decode( String buffer, int length);
	public static native String formatName( String buffer, int length);
	public static native QImageFormatType format( String name);
	public static native ArrayList inputFormats();
	public static native void registerDecoderFactory( QImageFormatType arg1);
	public static native void unregisterDecoderFactory( QImageFormatType arg1);
}
