/***************************************************************************
                            QImageConsumer.cpp -  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.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qasyncimageio.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QImageConsumer.h>

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_end(JNIEnv *env, jobject obj)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->end();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_changed(JNIEnv *env, jobject obj, jobject arg1)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->changed((QRect&) *(QRect *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_frameDone__(JNIEnv *env, jobject obj)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->frameDone();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_frameDone__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->frameDone((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1), (QRect&) *(QRect *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_setLooping(JNIEnv *env, jobject obj, jint arg1)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->setLooping((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_setFramePeriod(JNIEnv *env, jobject obj, jint arg1)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->setFramePeriod((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QImageConsumer_setSize(JNIEnv *env, jobject obj, jint arg1, jint arg2)
{
	((QImageConsumer*) QtSupport::getQt(env, obj))->setSize((int) arg1, (int) arg2);
	return;
}

