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

#include <qtjava/QtSupport.h>
#include <qtjava/QIODevice.h>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QIODevice_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*) 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_qt_QIODevice_readLine(JNIEnv* env, jobject obj, jstring data, jlong maxlen)
{
static QCString* _qstring_data = 0;
	jlong xret = (jlong) ((QIODevice*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) maxlen);
	return xret;
}

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

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

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

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

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

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

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

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

