//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/global.h>
#include <tqstring.h>
#include <kshred.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KShred.h>

class KShredJBridge : public KShred
{
public:
	KShredJBridge(TQString arg1) : KShred(arg1) {};
	~KShredJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KShred",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KShred_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KShred*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KShred_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KShred_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_fill0s(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShred*) QtSupport::getQt(env, obj))->fill0s();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_fill1s(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShred*) QtSupport::getQt(env, obj))->fill1s();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_fillbyte(JNIEnv* env, jobject obj, jint arg1)
{
	jboolean xret = (jboolean) ((KShred*) QtSupport::getQt(env, obj))->fillbyte((unsigned int) arg1);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_fillpattern(JNIEnv* env, jobject obj, jshort pattern, jint size)
{
	jboolean xret = (jboolean) ((KShred*) QtSupport::getQt(env, obj))->fillpattern((unsigned char*) pattern, (unsigned int) size);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_fillrandom(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShred*) QtSupport::getQt(env, obj))->fillrandom();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KShred_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KShred*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KShred*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KShred_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KShred*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_shred__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShred*) QtSupport::getQt(env, obj))->shred();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KShred_shred__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fileName)
{
	(void) cls;
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) KShredJBridge::shred((TQString)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

