/***************************************************************************
                            QMovie.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  QMovie implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QMovie(Class dummy){}

	private native void newQMovie();
	public QMovie() {
		newQMovie();
	}
	private native void newQMovie( int bufsize);
	public QMovie( int bufsize) {
		newQMovie( bufsize);
	}
	private native void newQMovie( QDataSource arg1, int bufsize);
	public QMovie( QDataSource arg1, int bufsize) {
		newQMovie( arg1, bufsize);
	}
	private native void newQMovie( QDataSource arg1);
	public QMovie( QDataSource arg1) {
		newQMovie( arg1);
	}
	private native void newQMovie( String fileName, int bufsize);
	public QMovie( String fileName, int bufsize) {
		newQMovie( fileName, bufsize);
	}
	private native void newQMovie( String fileName);
	public QMovie( String fileName) {
		newQMovie( fileName);
	}
	private native void newQMovie( byte[] data, int bufsize);
	public QMovie( byte[] data, int bufsize) {
		newQMovie( data, bufsize);
	}
	private native void newQMovie( byte[] data);
	public QMovie( byte[] data) {
		newQMovie( data);
	}
	private native void newQMovie( QMovie arg1);
	public QMovie( QMovie arg1) {
		newQMovie( arg1);
	}
	protected native void finalize() throws InternalError;
	public native int pushSpace();
	public native void pushData( String data, int length);
	public native QColor backgroundColor();
	public native void setBackgroundColor( QColor arg1);
	public native QRect getValidRect();
	public native QPixmap framePixmap();
	public native QImage frameImage();
	public native boolean isNull();
	public native int frameNumber();
	public native int steps();
	public native boolean paused();
	public native boolean finished();
	public native boolean running();
	public native void unpause();
	public native void pause();
	public native void step();
	public native void step( int arg1);
	public native void restart();
	public native int speed();
	public native void setSpeed( int arg1);
	public native void connectResize( QObject receiver, String member);
	public native void disconnectResize( QObject receiver, String member);
	public native void disconnectResize( QObject receiver);
	public native void connectUpdate( QObject receiver, String member);
	public native void disconnectUpdate( QObject receiver, String member);
	public native void disconnectUpdate( QObject receiver);
//	public native void setDisplayWidget( QWidget w);
	public native void connectStatus( QObject receiver, String member);
	public native void disconnectStatus( QObject receiver, String member);
	public native void disconnectStatus( QObject receiver);
	public static final int SourceEmpty = -2;
	public static final int UnrecognizedFormat = -1;
	public static final int Paused = 1;
	public static final int EndOfFrame = 2;
	public static final int EndOfLoop = 3;
	public static final int EndOfMovie = 4;
	public static final int SpeedChanged = 5;
}
