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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTextEncoder_fromUnicode(JNIEnv* env, jobject obj, jstring uc, jintArray lenInOut)
{
	TQCString  _qstring;
static TQString* _qstring_uc = 0;
	int* _int_lenInOut = QtSupport::toIntPtr(env, lenInOut);
	_qstring = ((TQTextEncoder*) QtSupport::getQt(env, obj))->fromUnicode((const TQString&)*(TQString*) QtSupport::toTQString(env, uc, &_qstring_uc),  (int&) *_int_lenInOut);
	env->SetIntArrayRegion(lenInOut, 0, 1, (jint *) _int_lenInOut);
	return QtSupport::fromTQCString(env, &_qstring);
}

