/***************************************************************************
                            QVariant.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 <qvariant.h>
#include <qstring.h>
#include <qcstring.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qiconset.h>
#include <qpointarray.h>
#include <qbitmap.h>
#include <qcursor.h>
#include <qkeysequence.h>

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

class QVariantJBridge : public QVariant
{
public:
	QVariantJBridge() : QVariant() {}
	~QVariantJBridge() {QtSupport::qtKeyDeleted(this);}
	QVariantJBridge(const QVariant& arg1) : QVariant(arg1) {}
	QVariantJBridge(QDataStream& s) : QVariant(s) {}
	QVariantJBridge(const QString& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QCString& arg1) : QVariant(arg1) {}
	QVariantJBridge(const char* arg1) : QVariant(arg1) {}
	QVariantJBridge(const QStringList& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QFont& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QPixmap& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QImage& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QBrush& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QPoint& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QRect& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QSize& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QColor& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QPalette& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QColorGroup& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QIconSet& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QPointArray& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QRegion& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QBitmap& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QCursor& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QDate& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QTime& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QDateTime& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QByteArray& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QBitArray& arg1) : QVariant(arg1) {}
	QVariantJBridge(const QKeySequence& arg1) : QVariant(arg1) {}
	QVariantJBridge(int arg1) : QVariant(arg1) {}
	QVariantJBridge(uint arg1) : QVariant(arg1) {}
	QVariantJBridge(bool arg1, int arg2) : QVariant(arg1, arg2) {}
	QVariantJBridge(double arg1) : QVariant(arg1) {}
	QVariantJBridge(QSizePolicy arg1) : QVariant(arg1) {}
};


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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QVariant_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QVariant&) *(QVariant *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QDataStream_2(JNIEnv *env, jobject obj, jobject s)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QDataStream&) *(QDataStream *) QtSupport::getQt(env, s)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QVariant_newQVariant__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring arg1)
//{
//static QCString * _qcstring_arg1 = 0;
//	if (QtSupport::getQt(env, obj) == 0) {
//		QtSupport::setQt(env, obj, new QVariantJBridge((QCString&) * (QCString *) QtSupport::toQCString(env, arg1, &_qcstring_arg1)));
//		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
//	}
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QVariant_newQVariant__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring arg1)
//{
//static QCString * _qstring_arg1 = 0;
//	if (QtSupport::getQt(env, obj) == 0) {
//		QtSupport::setQt(env, obj, new QVariantJBridge((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)));
//		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
//	}
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray arg1)
{
static QStringList * _qlist_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QStringList&) * (QStringList *) QtSupport::toQStringList(env, arg1, &_qlist_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QFont_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QFont&) *(QFont *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QImage_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QImage&) *(QImage *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QBrush_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QBrush&) *(QBrush *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QPoint&) *(QPoint *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QRect_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QRect&) *(QRect *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QSize_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QSize&) *(QSize *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QColor_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QColor&) *(QColor *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QPalette_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QPalette&) *(QPalette *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QColorGroup_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QColorGroup&) *(QColorGroup *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QIconSet_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QIconSet&) *(QIconSet *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QPointArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QPointArray&) *(QPointArray *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QRegion_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QRegion&) *(QRegion *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QBitmap_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QBitmap&) *(QBitmap *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QCursor_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QCursor&) *(QCursor *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Ljava_util_Calendar_2(JNIEnv *env, jobject obj, jobject arg1)
{
static QDate * _qdate_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QDate&) * (QDate *) QtSupport::toQDate(env, arg1, &_qdate_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Ljava_util_Date_2(JNIEnv *env, jobject obj, jobject arg1)
{
static QTime * _qtime_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QTime&) * (QTime *) QtSupport::toQTime(env, arg1, &_qtime_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QVariant_newQVariant__Ljava_util_Calendar_2(JNIEnv *env, jobject obj, jobject arg1)
//{
//static QDateTime * _qdate_arg1 = 0;
//	if (QtSupport::getQt(env, obj) == 0) {
//		QtSupport::setQt(env, obj, new QVariantJBridge((QDateTime&) * (QDateTime *) QtSupport::toQDateTime(env, arg1, &_qdate_arg1)));
//		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
//	}
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant___3B(JNIEnv *env, jobject obj, jbyteArray arg1)
{
static QByteArray * _qbyteArray_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QByteArray&) * (QByteArray *) QtSupport::toQByteArray(env, arg1, &_qbyteArray_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QBitArray_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QBitArray&) *(QBitArray *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__Lorg_kde_qt_QKeySequence_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((QKeySequence&) *(QKeySequence *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QVariant_newQVariant__I(JNIEnv *env, jobject obj, jint arg1)
//{
//	if (QtSupport::getQt(env, obj) == 0) {
//		QtSupport::setQt(env, obj, new QVariantJBridge((uint) arg1));
//		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
//	}
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__ZI(JNIEnv *env, jobject obj, jboolean arg1, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((bool) arg1, (int) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_newQVariant__D(JNIEnv *env, jobject obj, jdouble arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QVariantJBridge((double) arg1));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_type(JNIEnv *env, jobject obj)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->type();
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QVariant_typeName(JNIEnv *env, jobject obj)
{
	const char*  _qcstring;
	_qcstring = (const char *)((QVariantJBridge*) QtSupport::getQt(env, obj))->typeName();
	return QtSupport::fromCharString(env, (char *) _qcstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QVariant_canCast(JNIEnv *env, jobject obj, jint arg1)
{
	return (jboolean) ((QVariantJBridge*) QtSupport::getQt(env, obj))->canCast((QVariant::Type) arg1);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QVariant_cast(JNIEnv *env, jobject obj, jint arg1)
{
	return (jboolean) ((QVariantJBridge*) QtSupport::getQt(env, obj))->cast((QVariant::Type) arg1);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QVariant_isValid(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QVariantJBridge*) QtSupport::getQt(env, obj))->isValid();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_clear(JNIEnv *env, jobject obj)
{
	((QVariantJBridge*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QVariant_toString(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QVariant_toCString(JNIEnv *env, jobject obj)
{
	QCString  _qcstring;
	_qcstring = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toCString();
	return QtSupport::fromQCString(env, &_qcstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toStringList(JNIEnv *env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toStringList();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toFont(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QFont (((QVariantJBridge*) QtSupport::getQt(env, obj))->toFont()), "org.kde.qt.QFont", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toPixmap(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap (((QVariantJBridge*) QtSupport::getQt(env, obj))->toPixmap()), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toImage(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QImage (((QVariantJBridge*) QtSupport::getQt(env, obj))->toImage()), "org.kde.qt.QImage", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toBrush(JNIEnv *env, jobject obj)
{
	QBrush _b= ((QVariantJBridge*) QtSupport::getQt(env, obj))->toBrush();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QBrush(_b.color(),_b.style()), "org.kde.qt.QBrush", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toPoint(JNIEnv *env, jobject obj)
{
	QPoint _p= ((QVariantJBridge*) QtSupport::getQt(env, obj))->toPoint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPoint(_p.x(),_p.y()), "org.kde.qt.QPoint", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toRect(JNIEnv *env, jobject obj)
{
	QRect _r= ((QVariantJBridge*) QtSupport::getQt(env, obj))->toRect();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRect(_r.left(),_r.top(),_r.width(),_r.height()), "org.kde.qt.QRect", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toSize(JNIEnv *env, jobject obj)
{
	QSize _s= ((QVariantJBridge*) QtSupport::getQt(env, obj))->toSize();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toColor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QColor (((QVariantJBridge*) QtSupport::getQt(env, obj))->toColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toPalette(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPalette (((QVariantJBridge*) QtSupport::getQt(env, obj))->toPalette()), "org.kde.qt.QPalette", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toColorGroup(JNIEnv *env, jobject obj)
{
	QColorGroup _c= ((QVariantJBridge*) QtSupport::getQt(env, obj))->toColorGroup();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QColorGroup(_c.foreground(),_c.background(),_c.light(),_c.dark(),_c.mid(),_c.text(),_c.base()), "org.kde.qt.QColorGroup", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toIconSet(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QIconSet (((QVariantJBridge*) QtSupport::getQt(env, obj))->toIconSet()), "org.kde.qt.QIconSet", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toPointArray(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPointArray (((QVariantJBridge*) QtSupport::getQt(env, obj))->toPointArray()), "org.kde.qt.QPointArray", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toBitmap(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QBitmap (((QVariantJBridge*) QtSupport::getQt(env, obj))->toBitmap()), "org.kde.qt.QBitmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toRegion(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QRegion (((QVariantJBridge*) QtSupport::getQt(env, obj))->toRegion()), "org.kde.qt.QRegion", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toCursor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QCursor (((QVariantJBridge*) QtSupport::getQt(env, obj))->toCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toDate(JNIEnv *env, jobject obj)
{
	QDate  _qdate;
	_qdate = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toDate();
	return (jobject) QtSupport::fromQDate(env, (QDate *) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toTime(JNIEnv *env, jobject obj)
{
	QTime  _qtime;
	_qtime = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toTime();
	return (jobject) QtSupport::fromQTime(env, (QTime *) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toDateTime(JNIEnv *env, jobject obj)
{
	QDateTime  _qdate;
	_qdate = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toDateTime();
	return (jobject) QtSupport::fromQDateTime(env, (QDateTime *) &_qdate);
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QVariant_toByteArray(JNIEnv *env, jobject obj)
{
	QByteArray  _qbyteArray;
	_qbyteArray = ((QVariantJBridge*) QtSupport::getQt(env, obj))->toByteArray();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

//JNIEXPORT jobject JNICALL
//Java_org_kde_qt_QVariant_toBitArray(JNIEnv *env, jobject obj)
//{
//	return (jobject) QtSupport::objectForQtKey(env, (void *)new const QBitArray (((QVariantJBridge*) QtSupport::getQt(env, obj))->toBitArray()), "org.kde.qt.QBitArray", TRUE);
//}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toKeySequence(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new const QKeySequence (((QVariantJBridge*) QtSupport::getQt(env, obj))->toKeySequence()), "org.kde.qt.QKeySequence", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_toInt___3I(JNIEnv *env, jobject obj, jintArray ok)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toInt( (bool*) QtSupport::toIntPtr(env, ok));
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_toInt__(JNIEnv *env, jobject obj)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toInt(0);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_toUInt___3I(JNIEnv *env, jobject obj, jintArray ok)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toUInt( (bool*) QtSupport::toIntPtr(env, ok));
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_toUInt__(JNIEnv *env, jobject obj)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toUInt(0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QVariant_toBool(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toBool();
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QVariant_toDouble___3I(JNIEnv *env, jobject obj, jintArray ok)
{
	return (jdouble) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toDouble( (bool*) QtSupport::toIntPtr(env, ok));
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QVariant_toDouble__(JNIEnv *env, jobject obj)
{
	return (jdouble) ((QVariantJBridge*) QtSupport::getQt(env, obj))->toDouble(0);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_toSizePolicy(JNIEnv *env, jobject obj)
{
	QSizePolicy _s= ((QVariantJBridge*) QtSupport::getQt(env, obj))->toSizePolicy();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSizePolicy(_s.horData(),_s.verData(),_s.hasHeightForWidth()), "org.kde.qt.QSizePolicy", TRUE);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QVariant_asString(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asString();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QVariant_asCString(JNIEnv *env, jobject obj)
{
	QCString  _qcstring;
	_qcstring = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asCString();
	return QtSupport::fromQCString(env, &_qcstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asStringList(JNIEnv *env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asStringList();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asFont(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QFont *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asFont(), "org.kde.qt.QFont");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asPixmap(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QPixmap *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asPixmap(), "org.kde.qt.QPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asImage(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QImage *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asImage(), "org.kde.qt.QImage");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asBrush(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QBrush *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asBrush(), "org.kde.qt.QBrush");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asPoint(JNIEnv *env, jobject obj)
{
	QPoint _p= ((QVariantJBridge*) QtSupport::getQt(env, obj))->asPoint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPoint(_p.x(),_p.y()), "org.kde.qt.QPoint", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asRect(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QRect *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asRect(), "org.kde.qt.QRect");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asSize(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QSize *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asSize(), "org.kde.qt.QSize");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asColor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asColor(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asPalette(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QPalette *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asPalette(), "org.kde.qt.QPalette");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asColorGroup(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColorGroup *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asColorGroup(), "org.kde.qt.QColorGroup");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asIconSet(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QIconSet *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asIconSet(), "org.kde.qt.QIconSet");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asPointArray(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QPointArray *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asPointArray(), "org.kde.qt.QPointArray");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asBitmap(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QBitmap *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asBitmap(), "org.kde.qt.QBitmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asRegion(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QRegion *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asRegion(), "org.kde.qt.QRegion");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asCursor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QCursor *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asCursor(), "org.kde.qt.QCursor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asDate(JNIEnv *env, jobject obj)
{
	QDate  _qdate;
	_qdate = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asDate();
	return (jobject) QtSupport::fromQDate(env, (QDate *) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asTime(JNIEnv *env, jobject obj)
{
	QTime  _qtime;
	_qtime = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asTime();
	return (jobject) QtSupport::fromQTime(env, (QTime *) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asDateTime(JNIEnv *env, jobject obj)
{
	QDateTime  _qdate;
	_qdate = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asDateTime();
	return (jobject) QtSupport::fromQDateTime(env, (QDateTime *) &_qdate);
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QVariant_asByteArray(JNIEnv *env, jobject obj)
{
	QByteArray  _qbyteArray;
	_qbyteArray = ((QVariantJBridge*) QtSupport::getQt(env, obj))->asByteArray();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asBitArray(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QBitArray *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asBitArray(), "org.kde.qt.QBitArray");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asKeySequence(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QKeySequence *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asKeySequence(), "org.kde.qt.QKeySequence");
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_asInt(JNIEnv *env, jobject obj)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->asInt();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_asUInt(JNIEnv *env, jobject obj)
{
	return (jint) ((QVariantJBridge*) QtSupport::getQt(env, obj))->asUInt();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QVariant_asBool(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QVariantJBridge*) QtSupport::getQt(env, obj))->asBool();
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QVariant_asDouble(JNIEnv *env, jobject obj)
{
	return (jdouble) ((QVariantJBridge*) QtSupport::getQt(env, obj))->asDouble();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QVariant_asSizePolicy(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QSizePolicy *) &((QVariantJBridge*) QtSupport::getQt(env, obj))->asSizePolicy(), "org.kde.qt.QSizePolicy");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_load(JNIEnv *env, jobject obj, jobject arg1)
{
	((QVariantJBridge*) QtSupport::getQt(env, obj))->load((QDataStream&) *(QDataStream *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QVariant_save(JNIEnv *env, jobject obj, jobject arg1)
{
	((QVariantJBridge*) QtSupport::getQt(env, obj))->save((QDataStream&) *(QDataStream *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QVariant_typeToName(JNIEnv *env, jclass obj, jint typ)
{
	 const char*  _qcstring;
	_qcstring = (const char *)QVariantJBridge::typeToName((QVariant::Type) typ);
	return QtSupport::fromCharString(env, (char *) _qcstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QVariant_nameToType(JNIEnv *env, jclass obj, jstring name)
{
static QCString * _qstring_name = 0;
	return (jint) QVariantJBridge::nameToType((char*) QtSupport::toCharString(env, name, &_qstring_name));
}

