//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqcanvas.h>
#include <tqpointarray.h>

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

class TQCanvasPixmapArrayJBridge : public TQCanvasPixmapArray
{
public:
	TQCanvasPixmapArrayJBridge() : TQCanvasPixmapArray() {};
	TQCanvasPixmapArrayJBridge(const TQString& arg1,int arg2) : TQCanvasPixmapArray(arg1,arg2) {};
	TQCanvasPixmapArrayJBridge(const TQString& arg1) : TQCanvasPixmapArray(arg1) {};
	~TQCanvasPixmapArrayJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasPixmapArray_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_image(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->image((int) i), "org.trinitydesktop.qt.TQCanvasPixmap");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_newTQCanvasPixmapArray__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring datafilenamepattern)
{
static TQString* _qstring_datafilenamepattern = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCanvasPixmapArrayJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, datafilenamepattern, &_qstring_datafilenamepattern)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_newTQCanvasPixmapArray__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring datafilenamepattern, jint framecount)
{
static TQString* _qstring_datafilenamepattern = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCanvasPixmapArrayJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, datafilenamepattern, &_qstring_datafilenamepattern), (int) framecount));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_op_1not(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->operator!();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_readCollisionMasks(JNIEnv* env, jobject obj, jstring filenamepattern)
{
static TQString* _qstring_filenamepattern = 0;
	jboolean xret = (jboolean) ((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->readCollisionMasks((const TQString&)*(TQString*) QtSupport::toTQString(env, filenamepattern, &_qstring_filenamepattern));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_readPixmaps__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring datafilenamepattern)
{
static TQString* _qstring_datafilenamepattern = 0;
	jboolean xret = (jboolean) ((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->readPixmaps((const TQString&)*(TQString*) QtSupport::toTQString(env, datafilenamepattern, &_qstring_datafilenamepattern));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_readPixmaps__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring datafilenamepattern, jint framecount)
{
static TQString* _qstring_datafilenamepattern = 0;
	jboolean xret = (jboolean) ((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->readPixmaps((const TQString&)*(TQString*) QtSupport::toTQString(env, datafilenamepattern, &_qstring_datafilenamepattern), (int) framecount);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmapArray_setImage(JNIEnv* env, jobject obj, jint i, jobject p)
{
	((TQCanvasPixmapArray*) QtSupport::getQt(env, obj))->setImage((int) i, (TQCanvasPixmap*) QtSupport::getQt(env, p));
	return;
}

