/***************************************************************************
                            QXmlContentHandler.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/QXmlContentHandler.h>

JNIEXPORT void JNICALL
Java_org_kde_qt_QXmlContentHandler_setDocumentLocator(JNIEnv *env, jobject obj, jobject locator)
{
	((QXmlContentHandler*) QtSupport::getQt(env, obj))->setDocumentLocator((QXmlLocator*) QtSupport::getQt(env, locator));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_startDocument(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->startDocument();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_endDocument(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->endDocument();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_startPrefixMapping(JNIEnv *env, jobject obj, jstring prefix, jstring uri)
{
static QString * _qstring_uri = 0;
static QString * _qstring_prefix = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->startPrefixMapping((QString&) * (QString *) QtSupport::toQString(env, prefix, &_qstring_prefix), (QString&) * (QString *) QtSupport::toQString(env, uri, &_qstring_uri));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_endPrefixMapping(JNIEnv *env, jobject obj, jstring prefix)
{
static QString * _qstring_prefix = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->endPrefixMapping((QString&) * (QString *) QtSupport::toQString(env, prefix, &_qstring_prefix));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_startElement(JNIEnv *env, jobject obj, jstring namespaceURI, jstring localName, jstring qName, jobject atts)
{
static QString * _qstring_qName = 0;
static QString * _qstring_localName = 0;
static QString * _qstring_namespaceURI = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->startElement((QString&) * (QString *) QtSupport::toQString(env, namespaceURI, &_qstring_namespaceURI), (QString&) * (QString *) QtSupport::toQString(env, localName, &_qstring_localName), (QString&) * (QString *) QtSupport::toQString(env, qName, &_qstring_qName), (QXmlAttributes&) *(QXmlAttributes *) QtSupport::getQt(env, atts));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_endElement(JNIEnv *env, jobject obj, jstring namespaceURI, jstring localName, jstring qName)
{
static QString * _qstring_qName = 0;
static QString * _qstring_localName = 0;
static QString * _qstring_namespaceURI = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->endElement((QString&) * (QString *) QtSupport::toQString(env, namespaceURI, &_qstring_namespaceURI), (QString&) * (QString *) QtSupport::toQString(env, localName, &_qstring_localName), (QString&) * (QString *) QtSupport::toQString(env, qName, &_qstring_qName));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_characters(JNIEnv *env, jobject obj, jstring ch)
{
static QString * _qstring_ch = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->characters((QString&) * (QString *) QtSupport::toQString(env, ch, &_qstring_ch));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_ignorableWhitespace(JNIEnv *env, jobject obj, jstring ch)
{
static QString * _qstring_ch = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->ignorableWhitespace((QString&) * (QString *) QtSupport::toQString(env, ch, &_qstring_ch));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_processingInstruction(JNIEnv *env, jobject obj, jstring target, jstring data)
{
static QString * _qstring_data = 0;
static QString * _qstring_target = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->processingInstruction((QString&) * (QString *) QtSupport::toQString(env, target, &_qstring_target), (QString&) * (QString *) QtSupport::toQString(env, data, &_qstring_data));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QXmlContentHandler_skippedEntity(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jboolean) ((QXmlContentHandler*) QtSupport::getQt(env, obj))->skippedEntity((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name));
}

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

