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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFilterBase_compress(JNIEnv* env, jobject obj, jboolean finish)
{
	jint xret = (jint) ((KFilterBase*) QtSupport::getQt(env, obj))->compress((bool) finish);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFilterBase_device(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFilterBase*) QtSupport::getQt(env, obj))->device(), "org.trinitydesktop.qt.TQIODeviceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFilterBase_findFilterByFileName(JNIEnv* env, jclass cls, jstring fileName)
{
	(void) cls;
static TQString* _qstring_fileName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KFilterBase::findFilterByFileName((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)), "org.trinitydesktop.koala.KFilterBase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KFilterBase_findFilterByMimeType(JNIEnv* env, jclass cls, jstring mimeType)
{
	(void) cls;
static TQString* _qstring_mimeType = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KFilterBase::findFilterByMimeType((const TQString&)*(TQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType)), "org.trinitydesktop.koala.KFilterBase");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFilterBase_inBufferAvailable(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFilterBase*) QtSupport::getQt(env, obj))->inBufferAvailable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFilterBase_inBufferEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFilterBase*) QtSupport::getQt(env, obj))->inBufferEmpty();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_init(JNIEnv* env, jobject obj, jint mode)
{
	((KFilterBase*) QtSupport::getQt(env, obj))->init((int) mode);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFilterBase_mode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFilterBase*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFilterBase_outBufferAvailable(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFilterBase*) QtSupport::getQt(env, obj))->outBufferAvailable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFilterBase_outBufferFull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFilterBase*) QtSupport::getQt(env, obj))->outBufferFull();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFilterBase_readHeader(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFilterBase*) QtSupport::getQt(env, obj))->readHeader();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_reset(JNIEnv* env, jobject obj)
{
	((KFilterBase*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_setDevice__Lorg_trinitydesktop_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject dev)
{
	((KFilterBase*) QtSupport::getQt(env, obj))->setDevice((TQIODevice*) QtSupport::getQt(env, dev));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_setDevice__Lorg_trinitydesktop_qt_QIODeviceInterface_2Z(JNIEnv* env, jobject obj, jobject dev, jboolean autodelete)
{
	((KFilterBase*) QtSupport::getQt(env, obj))->setDevice((TQIODevice*) QtSupport::getQt(env, dev), (bool) autodelete);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_setInBuffer(JNIEnv* env, jobject obj, jstring data, jint size)
{
static TQCString* _qstring_data = 0;
	((KFilterBase*) QtSupport::getQt(env, obj))->setInBuffer((const char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_setOutBuffer(JNIEnv* env, jobject obj, jstring data, jint maxlen)
{
static TQCString* _qstring_data = 0;
	((KFilterBase*) QtSupport::getQt(env, obj))->setOutBuffer((char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) maxlen);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFilterBase_terminate(JNIEnv* env, jobject obj)
{
	((KFilterBase*) QtSupport::getQt(env, obj))->terminate();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFilterBase_uncompress(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFilterBase*) QtSupport::getQt(env, obj))->uncompress();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFilterBase_writeHeader(JNIEnv* env, jobject obj, jstring filename)
{
static TQCString* _qcstring_filename = 0;
	jboolean xret = (jboolean) ((KFilterBase*) QtSupport::getQt(env, obj))->writeHeader((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, filename, &_qcstring_filename));
	return xret;
}

