/***************************************************************************
                            QJpUnicodeConv.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qjpunicode.h>
#include <qstring.h>
#include <qcstring.h>

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

class QJpUnicodeConvJBridge : public QJpUnicodeConv
{
public:
	QJpUnicodeConvJBridge(int r) : QJpUnicodeConv(r) {}
};


JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_asciiToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->asciiToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0201ToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0201ToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0201LatinToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0201LatinToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0201KanaToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0201KanaToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0208ToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0208ToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0212ToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0212ToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_asciiToUnicode__I(JNIEnv *env, jobject obj, jint ascii)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->asciiToUnicode((uint) ascii);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0201ToUnicode__I(JNIEnv *env, jobject obj, jint jis)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0201ToUnicode((uint) jis);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0201LatinToUnicode__I(JNIEnv *env, jobject obj, jint jis)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0201LatinToUnicode((uint) jis);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0201KanaToUnicode__I(JNIEnv *env, jobject obj, jint jis)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0201KanaToUnicode((uint) jis);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0208ToUnicode__I(JNIEnv *env, jobject obj, jint jis)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0208ToUnicode((uint) jis);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_jisx0212ToUnicode__I(JNIEnv *env, jobject obj, jint jis)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->jisx0212ToUnicode((uint) jis);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToAscii__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToAscii((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0201__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0201((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0201Latin__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0201Latin((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0201Kana__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0201Kana((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0208__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0208((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0212__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0212((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToAscii__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToAscii((uint) unicode);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0201__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0201((uint) unicode);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0201Latin__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0201Latin((uint) unicode);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0201Kana__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0201Kana((uint) unicode);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0208__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0208((uint) unicode);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToJisx0212__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToJisx0212((uint) unicode);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_sjisToUnicode__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->sjisToUnicode((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToSjis__II(JNIEnv *env, jobject obj, jint h, jint l)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToSjis((uint) h, (uint) l);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_sjisToUnicode__I(JNIEnv *env, jobject obj, jint sjis)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->sjisToUnicode((uint) sjis);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QJpUnicodeConv_unicodeToSjis__I(JNIEnv *env, jobject obj, jint unicode)
{
	return (jint) ((QJpUnicodeConvJBridge*) QtSupport::getQt(env, obj))->unicodeToSjis((uint) unicode);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QJpUnicodeConv_newConverter(JNIEnv *env, jclass obj, jint rule)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)QJpUnicodeConvJBridge::newConverter((int) rule), "org.kde.qt.QJpUnicodeConv");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QJpUnicodeConv_newQJpUnicodeConv(JNIEnv *env, jobject obj, jint r)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QJpUnicodeConvJBridge((int) r));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

