//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqmovie.h>
#include <tqstring.h>
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqcolor.h>
#include <tqcstring.h>

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

class TQMovieJBridge : public TQMovie
{
public:
	TQMovieJBridge() : TQMovie() {};
	TQMovieJBridge(int arg1) : TQMovie(arg1) {};
	TQMovieJBridge(TQDataSource* arg1,int arg2) : TQMovie(arg1,arg2) {};
	TQMovieJBridge(TQDataSource* arg1) : TQMovie(arg1) {};
	TQMovieJBridge(const TQString& arg1,int arg2) : TQMovie(arg1,arg2) {};
	TQMovieJBridge(const TQString& arg1) : TQMovie(arg1) {};
	TQMovieJBridge(TQByteArray arg1,int arg2) : TQMovie(arg1,arg2) {};
	TQMovieJBridge(TQByteArray arg1) : TQMovie(arg1) {};
	TQMovieJBridge(const TQMovie& arg1) : TQMovie(arg1) {};
	~TQMovieJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMovie_backgroundColor(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColor *) &((TQMovie*) QtSupport::getQt(env, obj))->backgroundColor(), "org.trinitydesktop.qt.TQColor");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_connectResize(JNIEnv* env, jobject obj, jobject receiver, jstring member)
{
	((TQMovie*) QtSupport::getQt(env, obj))->connectResize((TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke(const TQSize&)");
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_connectStatus(JNIEnv* env, jobject obj, jobject receiver, jstring member)
{
	((TQMovie*) QtSupport::getQt(env, obj))->connectStatus((TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke(int)");
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_connectUpdate(JNIEnv* env, jobject obj, jobject receiver, jstring member)
{
	((TQMovie*) QtSupport::getQt(env, obj))->connectUpdate((TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke(const TQRect&)");
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_disconnectResize__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject receiver)
{
	((TQMovie*) QtSupport::getQt(env, obj))->disconnectResize((TQObject*) QtSupport::getQt(env, receiver));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_disconnectResize__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject receiver, jstring member)
{
	((TQMovie*) QtSupport::getQt(env, obj))->disconnectResize((TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke(const TQSize&)");
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_disconnectStatus__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject receiver)
{
	((TQMovie*) QtSupport::getQt(env, obj))->disconnectStatus((TQObject*) QtSupport::getQt(env, receiver));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_disconnectStatus__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject receiver, jstring member)
{
	((TQMovie*) QtSupport::getQt(env, obj))->disconnectStatus((TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke(int)");
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_disconnectUpdate__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject receiver)
{
	((TQMovie*) QtSupport::getQt(env, obj))->disconnectUpdate((TQObject*) QtSupport::getQt(env, receiver));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_disconnectUpdate__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject receiver, jstring member)
{
	((TQMovie*) QtSupport::getQt(env, obj))->disconnectUpdate((TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke(const TQRect&)");
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QMovie_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQMovie*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMovie_finished(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMovie*) QtSupport::getQt(env, obj))->finished();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMovie_frameImage(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQImage *) &((TQMovie*) QtSupport::getQt(env, obj))->frameImage(), "org.trinitydesktop.qt.TQImage");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMovie_frameNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMovie*) QtSupport::getQt(env, obj))->frameNumber();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMovie_framePixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQPixmap *) &((TQMovie*) QtSupport::getQt(env, obj))->framePixmap(), "org.trinitydesktop.qt.TQPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QMovie_getValidRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQRect *) &((TQMovie*) QtSupport::getQt(env, obj))->getValidRect(), "org.trinitydesktop.qt.TQRect");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMovie_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMovie_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMovie*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__I(JNIEnv* env, jobject obj, jint bufsize)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((int) bufsize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jint bufsize)
{
static TQString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (int) bufsize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__Lorg_trinitydesktop_qt_QDataSource_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((TQDataSource*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__Lorg_trinitydesktop_qt_QDataSource_2I(JNIEnv* env, jobject obj, jobject arg1, jint bufsize)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((TQDataSource*) QtSupport::getQt(env, arg1), (int) bufsize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie__Lorg_trinitydesktop_qt_QMovie_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((const TQMovie&)*(const TQMovie*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((TQByteArray)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_newTQMovie___3BI(JNIEnv* env, jobject obj, jbyteArray data, jint bufsize)
{
static TQByteArray* _qbyteArray_data = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQMovieJBridge((TQByteArray)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (int) bufsize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_pause(JNIEnv* env, jobject obj)
{
	((TQMovie*) QtSupport::getQt(env, obj))->pause();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMovie_paused(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMovie*) QtSupport::getQt(env, obj))->paused();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_pushData(JNIEnv* env, jobject obj, jcharArray data, jint length)
{
static TQByteArray* _qbytearray_data = 0;
	((TQMovie*) QtSupport::getQt(env, obj))->pushData((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) length);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMovie_pushSpace(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMovie*) QtSupport::getQt(env, obj))->pushSpace();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_restart(JNIEnv* env, jobject obj)
{
	((TQMovie*) QtSupport::getQt(env, obj))->restart();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QMovie_running(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQMovie*) QtSupport::getQt(env, obj))->running();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_setBackgroundColor(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQMovie*) QtSupport::getQt(env, obj))->setBackgroundColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_setSpeed(JNIEnv* env, jobject obj, jint arg1)
{
	((TQMovie*) QtSupport::getQt(env, obj))->setSpeed((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMovie_speed(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMovie*) QtSupport::getQt(env, obj))->speed();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_step__(JNIEnv* env, jobject obj)
{
	((TQMovie*) QtSupport::getQt(env, obj))->step();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_step__I(JNIEnv* env, jobject obj, jint arg1)
{
	((TQMovie*) QtSupport::getQt(env, obj))->step((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QMovie_steps(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQMovie*) QtSupport::getQt(env, obj))->steps();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QMovie_unpause(JNIEnv* env, jobject obj)
{
	((TQMovie*) QtSupport::getQt(env, obj))->unpause();
	return;
}

