//Auto-generated by kalyptus. DO NOT EDIT.
#include <kbufferedio.h>

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KBufferedIO_bytesAvailable(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KBufferedIO*) QtSupport::getQt(env, obj))->bytesAvailable();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KBufferedIO_bytesToWrite(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KBufferedIO*) QtSupport::getQt(env, obj))->bytesToWrite();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KBufferedIO_canReadLine(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KBufferedIO*) QtSupport::getQt(env, obj))->canReadLine();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KBufferedIO_closeNow(JNIEnv* env, jobject obj)
{
	((KBufferedIO*) QtSupport::getQt(env, obj))->closeNow();
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KBufferedIO_peekBlock(JNIEnv* env, jobject obj, jstring data, jint maxlen)
{
static QCString* _qstring_data = 0;
	jint xret = (jint) ((KBufferedIO*) QtSupport::getQt(env, obj))->peekBlock((char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) maxlen);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KBufferedIO_setBufferSize__I(JNIEnv* env, jobject obj, jint rsize)
{
	jboolean xret = (jboolean) ((KBufferedIO*) QtSupport::getQt(env, obj))->setBufferSize((int) rsize);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KBufferedIO_setBufferSize__II(JNIEnv* env, jobject obj, jint rsize, jint wsize)
{
	jboolean xret = (jboolean) ((KBufferedIO*) QtSupport::getQt(env, obj))->setBufferSize((int) rsize, (int) wsize);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KBufferedIO_unreadBlock(JNIEnv* env, jobject obj, jstring data, jint len)
{
static QCString* _qstring_data = 0;
	jint xret = (jint) ((KBufferedIO*) QtSupport::getQt(env, obj))->unreadBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) len);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KBufferedIO_waitForMore(JNIEnv* env, jobject obj, jint msec)
{
	jint xret = (jint) ((KBufferedIO*) QtSupport::getQt(env, obj))->waitForMore((int) msec);
	return xret;
}

