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

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

class TQTextStreamJBridge : public TQTextStream
{
public:
	TQTextStreamJBridge() : TQTextStream() {};
	TQTextStreamJBridge(TQIODevice* arg1) : TQTextStream(arg1) {};
	TQTextStreamJBridge(TQString* arg1,int arg2) : TQTextStream(arg1,arg2) {};
	TQTextStreamJBridge(TQByteArray arg1,int arg2) : TQTextStream(arg1,arg2) {};
	~TQTextStreamJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_codec(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTextStream*) QtSupport::getQt(env, obj))->codec(), "org.trinitydesktop.qt.TQTextCodec");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QTextStream_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTextStream_eof(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQTextStream*) QtSupport::getQt(env, obj))->eof();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_fill__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->fill();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQTextStream*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_flags__I(JNIEnv* env, jobject obj, jint f)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->flags((int) f);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTextStream_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_newTQTextStream__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTextStreamJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_newTQTextStream__Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
static TQString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTextStreamJBridge((TQString*) QtSupport::toTQStringFromStringBuffer(env, arg1, &_qstring_arg1), (int) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_arg1, arg1);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_newTQTextStream__Lorg_trinitydesktop_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTextStreamJBridge((TQIODevice*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_newTQTextStream___3BI(JNIEnv* env, jobject obj, jbyteArray arg1, jint mode)
{
static TQByteArray* _qbyteArray_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTextStreamJBridge((TQByteArray)*(TQByteArray*) QtSupport::toTQByteArray(env, arg1, &_qbyteArray_arg1), (int) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__C(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((TQChar&)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1)), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__D(JNIEnv* env, jobject obj, jdouble arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((double&) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__F(JNIEnv* env, jobject obj, jfloat arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((float&) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((unsigned int&) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__J(JNIEnv* env, jobject obj, jlong arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((unsigned long&) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject arg1)
{
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, arg1, &_qstring_arg1)), "org.trinitydesktop.qt.TQTextStream");
	QtSupport::fromTQStringToStringBuffer(env, _qstring_arg1, arg1);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1read__S(JNIEnv* env, jobject obj, jshort arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator>>((unsigned short&) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__C(JNIEnv* env, jobject obj, jchar arg1)
{
static TQChar* _qchar_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((TQChar)*(TQChar*) QtSupport::toTQChar(env, arg1, &_qchar_arg1)), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__D(JNIEnv* env, jobject obj, jdouble arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((double) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__F(JNIEnv* env, jobject obj, jfloat arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((float) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((unsigned) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__J(JNIEnv* env, jobject obj, jlong arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((long) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_op_1write__S(JNIEnv* env, jobject obj, jshort arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->operator<<((short) arg1), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_precision__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->precision();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTextStream_readLine(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQTextStream*) QtSupport::getQt(env, obj))->readLine();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_readRawBytes(JNIEnv* env, jobject obj, jstring arg1, jint len)
{
static TQCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->readRawBytes((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (uint) len), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTextStream_read(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQTextStream*) QtSupport::getQt(env, obj))->read();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_setCodec(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQTextStream*) QtSupport::getQt(env, obj))->setCodec((TQTextCodec*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_setDevice(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQTextStream*) QtSupport::getQt(env, obj))->setDevice((TQIODevice*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_setEncoding(JNIEnv* env, jobject obj, jint arg1)
{
	((TQTextStream*) QtSupport::getQt(env, obj))->setEncoding((TQTextStream::Encoding) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_setf__I(JNIEnv* env, jobject obj, jint bits)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->setf((int) bits);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_setf__II(JNIEnv* env, jobject obj, jint bits, jint mask)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->setf((int) bits, (int) mask);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_skipWhiteSpace(JNIEnv* env, jobject obj)
{
	((TQTextStream*) QtSupport::getQt(env, obj))->skipWhiteSpace();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTextStream_unsetDevice(JNIEnv* env, jobject obj)
{
	((TQTextStream*) QtSupport::getQt(env, obj))->unsetDevice();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_unsetf(JNIEnv* env, jobject obj, jint bits)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->unsetf((int) bits);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTextStream_width__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTextStream*) QtSupport::getQt(env, obj))->width();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTextStream_writeRawBytes(JNIEnv* env, jobject obj, jstring arg1, jint len)
{
static TQCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQTextStream *) &((TQTextStream*) QtSupport::getQt(env, obj))->writeRawBytes((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (uint) len), "org.trinitydesktop.qt.TQTextStream");
	return xret;
}

