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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KFilterBase.h>

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_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_kde_koala_KFilterBase_device(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFilterBase*) QtSupport::getQt(env, obj))->device(), "org.kde.qt.QIODeviceInterface");
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFilterBase_setInBuffer(JNIEnv* env, jobject obj, jstring data, jint size)
{
static QCString* _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_kde_koala_KFilterBase_setOutBuffer(JNIEnv* env, jobject obj, jstring data, jint maxlen)
{
static QCString* _qstring_data = 0;
	((KFilterBase*) QtSupport::getQt(env, obj))->setOutBuffer((char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) maxlen);
	return;
}

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

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

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

