//Auto-generated by kalyptus. DO NOT EDIT.
#include <qregexp.h>
#include <kstringhandler.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qfontmetrics.h>

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

class KStringHandlerJBridge : public KStringHandler
{
public:
	KStringHandlerJBridge() : KStringHandler() {};
	~KStringHandlerJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_cEmSqueeze__Ljava_lang_String_2Lorg_kde_qt_QFontMetrics_2(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::cEmSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_cEmSqueeze__Ljava_lang_String_2Lorg_kde_qt_QFontMetrics_2I(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxlen)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::cEmSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxlen);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_cPixelSqueeze(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxPixels)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::cPixelSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxPixels);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_capwords__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::capwords((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_capwords___3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list)
{
	QStringList  _qlist;
	(void) cls;
static QStringList* _qlist_list = 0;
	_qlist = KStringHandlerJBridge::capwords((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, list, &_qlist_list));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_center(JNIEnv* env, jclass cls, jstring text, jint width)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::center((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (uint) width);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_csqueeze__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring str)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::csqueeze((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_csqueeze__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring str, jint maxlen)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::csqueeze((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (uint) maxlen);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KStringHandler_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KStringHandler_finalize(env, obj);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_from8Bit(JNIEnv* env, jclass cls, jstring str)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::from8Bit((const char*) QtSupport::toCharString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_insword(JNIEnv* env, jclass cls, jstring text, jstring word, jint pos)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
static QString* _qstring_word = 0;
	_qstring = KStringHandlerJBridge::insword((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QString&)*(QString*) QtSupport::toQString(env, word, &_qstring_word), (uint) pos);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KStringHandler_isUtf8(JNIEnv* env, jclass cls, jstring str)
{
	(void) cls;
static QCString* _qstring_str = 0;
	jboolean xret = (jboolean) KStringHandlerJBridge::isUtf8((const char*) QtSupport::toCharString(env, str, &_qstring_str));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_lEmSqueeze__Ljava_lang_String_2Lorg_kde_qt_QFontMetrics_2(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::lEmSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_lEmSqueeze__Ljava_lang_String_2Lorg_kde_qt_QFontMetrics_2I(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxlen)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::lEmSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxlen);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_lPixelSqueeze(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxPixels)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::lPixelSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxPixels);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_lsqueeze__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring str)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::lsqueeze((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_lsqueeze__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring str, jint maxlen)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::lsqueeze((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (uint) maxlen);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KStringHandler_matchFileName(JNIEnv* env, jclass cls, jstring filename, jstring pattern)
{
	(void) cls;
static QString* _qstring_filename = 0;
static QString* _qstring_pattern = 0;
	jboolean xret = (jboolean) KStringHandlerJBridge::matchFileName((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, pattern, &_qstring_pattern));
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_obscure(JNIEnv* env, jclass cls, jstring str)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::obscure((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_perlSplit__CLjava_lang_String_2(JNIEnv* env, jclass cls, jchar sep, jstring s)
{
	QStringList  _qlist;
	(void) cls;
static QChar* _qchar_sep = 0;
static QString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const QChar&)*(QChar*) QtSupport::toQChar(env, sep, &_qchar_sep), (const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_perlSplit__CLjava_lang_String_2I(JNIEnv* env, jclass cls, jchar sep, jstring s, jint max)
{
	QStringList  _qlist;
	(void) cls;
static QChar* _qchar_sep = 0;
static QString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const QChar&)*(QChar*) QtSupport::toQChar(env, sep, &_qchar_sep), (const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s), (uint) max);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_perlSplit__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring sep, jstring s)
{
	QStringList  _qlist;
	(void) cls;
static QString* _qstring_sep = 0;
static QString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const QString&)*(QString*) QtSupport::toQString(env, sep, &_qstring_sep), (const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_perlSplit__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring sep, jstring s, jint max)
{
	QStringList  _qlist;
	(void) cls;
static QString* _qstring_sep = 0;
static QString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const QString&)*(QString*) QtSupport::toQString(env, sep, &_qstring_sep), (const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s), (uint) max);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_perlSplit__Lorg_kde_qt_QRegExp_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject sep, jstring s)
{
	QStringList  _qlist;
	(void) cls;
static QString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const QRegExp&)*(const QRegExp*) QtSupport::getQt(env, sep), (const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_perlSplit__Lorg_kde_qt_QRegExp_2Ljava_lang_String_2I(JNIEnv* env, jclass cls, jobject sep, jstring s, jint max)
{
	QStringList  _qlist;
	(void) cls;
static QString* _qstring_s = 0;
	_qlist = KStringHandlerJBridge::perlSplit((const QRegExp&)*(const QRegExp*) QtSupport::getQt(env, sep), (const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s), (uint) max);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_rEmSqueeze__Ljava_lang_String_2Lorg_kde_qt_QFontMetrics_2(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::rEmSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_rEmSqueeze__Ljava_lang_String_2Lorg_kde_qt_QFontMetrics_2I(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxlen)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::rEmSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxlen);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_rPixelSqueeze(JNIEnv* env, jclass cls, jstring name, jobject fontMetrics, jint maxPixels)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_name = 0;
	_qstring = KStringHandlerJBridge::rPixelSqueeze((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QFontMetrics&)*(const QFontMetrics*) QtSupport::getQt(env, fontMetrics), (uint) maxPixels);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_remrange(JNIEnv* env, jclass cls, jstring text, jstring range)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
static QCString* _qstring_range = 0;
	_qstring = KStringHandlerJBridge::remrange((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, range, &_qstring_range));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_remword__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring text, jint pos)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::remword((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (uint) pos);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_remword__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text, jstring word)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
static QString* _qstring_word = 0;
	_qstring = KStringHandlerJBridge::remword((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QString&)*(QString*) QtSupport::toQString(env, word, &_qstring_word));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_reverse__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring text)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::reverse((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStringHandler_reverse___3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray list)
{
	QStringList  _qlist;
	(void) cls;
static QStringList* _qlist_list = 0;
	_qlist = KStringHandlerJBridge::reverse((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, list, &_qlist_list));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_rsqueeze__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring str)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::rsqueeze((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_rsqueeze__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring str, jint maxlen)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = KStringHandlerJBridge::rsqueeze((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (uint) maxlen);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_setword(JNIEnv* env, jclass cls, jstring text, jstring word, jint pos)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
static QString* _qstring_word = 0;
	_qstring = KStringHandlerJBridge::setword((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const QString&)*(QString*) QtSupport::toQString(env, word, &_qstring_word), (uint) pos);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_tagURLs(JNIEnv* env, jclass cls, jstring text)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
	_qstring = KStringHandlerJBridge::tagURLs((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStringHandler_word(JNIEnv* env, jclass cls, jstring text, jstring range)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_text = 0;
static QCString* _qstring_range = 0;
	_qstring = KStringHandlerJBridge::word((const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, range, &_qstring_range));
	return QtSupport::fromQString(env, &_qstring);
}

