/***************************************************************************
                            QXmlNamespaceSupport.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 <qxml.h>
#include <qstring.h>
#include <qcstring.h>

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

class QXmlNamespaceSupportJBridge : public QXmlNamespaceSupport
{
public:
	QXmlNamespaceSupportJBridge() : QXmlNamespaceSupport() {}
	~QXmlNamespaceSupportJBridge() {QtSupport::qtKeyDeleted(this);}
};


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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_setPrefix(JNIEnv *env, jobject obj, jstring arg1, jstring arg2)
{
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->setPrefix((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_prefix(JNIEnv *env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString * _qstring_arg1 = 0;
	_qstring = ((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->prefix((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_uri(JNIEnv *env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString * _qstring_arg1 = 0;
	_qstring = ((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->uri((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_splitName(JNIEnv *env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
{
static QString * _qstring_arg3 = 0;
static QString * _qstring_arg2 = 0;
static QString * _qstring_arg1 = 0;
	((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->splitName((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_processName(JNIEnv *env, jobject obj, jstring arg1, jboolean arg2, jstring arg3, jstring arg4)
{
static QString * _qstring_arg4 = 0;
static QString * _qstring_arg3 = 0;
static QString * _qstring_arg1 = 0;
	((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->processName((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) arg2, (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3), (QString&) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_prefixes__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring arg1)
{
	QStringList  _qlist;
static QString * _qstring_arg1 = 0;
	_qlist = ((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->prefixes((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_pushContext(JNIEnv *env, jobject obj)
{
	((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->pushContext();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_popContext(JNIEnv *env, jobject obj)
{
	((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->popContext();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlNamespaceSupport_reset(JNIEnv *env, jobject obj)
{
	((QXmlNamespaceSupportJBridge*) QtSupport::getQt(env, obj))->reset();
	return;
}

