//Auto-generated by kalyptus. DO NOT EDIT.
#include <qiodevice.h>
#include <kasyncio.h>
#include <qglobal.h>
#include <qcstring.h>

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_atEnd(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->atEnd();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KAsyncIO_at__(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->at();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_at__J(JNIEnv* env, jobject obj, jlong arg1)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->at((QIODevice::Offset) arg1);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAsyncIO_close(JNIEnv* env, jobject obj)
{
	((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->close();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAsyncIO_enableRead(JNIEnv* env, jobject obj, jboolean enable)
{
	((KAsyncIO*) QtSupport::getQt(env, obj))->enableRead((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAsyncIO_enableWrite(JNIEnv* env, jobject obj, jboolean enable)
{
	((KAsyncIO*) QtSupport::getQt(env, obj))->enableWrite((bool) enable);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAsyncIO_flags(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->flags();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAsyncIO_flush(JNIEnv* env, jobject obj)
{
	((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->flush();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAsyncIO_getch(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->getch();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isAsynchronous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isAsynchronous();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isBuffered(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isBuffered();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isCombinedAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isCombinedAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isDirectAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isDirectAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isInactive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isInactive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isOpen(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isOpen();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isRaw(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isRaw();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isReadWrite(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isReadWrite();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isReadable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isReadable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isSequentialAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isSequentialAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isSynchronous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isSynchronous();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isTranslated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isTranslated();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_isWritable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->isWritable();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_open(JNIEnv* env, jobject obj, jint mode)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->open((int) mode);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAsyncIO_putch(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->putch((int) arg1);
	return xret;
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_koala_KAsyncIO_readAll(JNIEnv* env, jobject obj)
{
	QByteArray _qbyteArray;
	_qbyteArray = ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->readAll();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KAsyncIO_readBlock(JNIEnv* env, jobject obj, jobject data, jlong maxlen)
{
static QCString* _qstring_data = 0;
	if (_qstring_data == 0) { _qstring_data = new QCString(); }
	_qstring_data->resize((uint) maxlen);
	jlong xret = (jlong) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) maxlen);
	QtSupport::fromQCStringToStringBuffer(env, _qstring_data, data);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KAsyncIO_readLine(JNIEnv* env, jobject obj, jstring data, jlong maxlen)
{
static QCString* _qstring_data = 0;
	jlong xret = (jlong) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) maxlen);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAsyncIO_resetStatus(JNIEnv* env, jobject obj)
{
	((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->resetStatus();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KAsyncIO_reset(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->reset();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KAsyncIO_size(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->size();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAsyncIO_state(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->state();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAsyncIO_status(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->status();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KAsyncIO_ungetch(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->ungetch((int) arg1);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KAsyncIO_writeBlock__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong len)
{
static QCString* _qstring_data = 0;
	jlong xret = (jlong) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->writeBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) len);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KAsyncIO_writeBlock___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	jlong xret = (jlong) ((QIODevice*)(KAsyncIO*) QtSupport::getQt(env, obj))->writeBlock((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

