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

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTextDecoder_toUnicode(JNIEnv* env, jobject obj, jstring chars, jint len)
{
	QString  _qstring;
static QCString* _qstring_chars = 0;
	_qstring = ((QTextDecoder*) QtSupport::getQt(env, obj))->toUnicode((const char*) QtSupport::toCharString(env, chars, &_qstring_chars), (int) len);
	return QtSupport::fromQString(env, &_qstring);
}

