/***************************************************************************
                            qt_QXmlInputSource.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

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

extern "C" {
#include "qt_QXmlInputSource.h"
}

#include <qxml.h>

class QXmlInputSourceBridge : public QXmlInputSource
{
public:
	QXmlInputSourceBridge() : QXmlInputSource() {}
	QXmlInputSourceBridge(QIODevice* dev) : QXmlInputSource(dev) {}
	QXmlInputSourceBridge(QFile& file) : QXmlInputSource(file) {}
	QXmlInputSourceBridge(QTextStream& stream) : QXmlInputSource(stream) {}
	~QXmlInputSourceBridge() {}
	 QString  protected_fromRawData(const QByteArray& data, bool beginning) {
		return ( QString ) QXmlInputSource::fromRawData(data, beginning);
	}
};

qt_QXmlInputSource * qt_new_QXmlInputSource(){
	return (qt_QXmlInputSource *) new QXmlInputSourceBridge();
}
qt_QXmlInputSource * qt_new_QXmlInputSource1(qt_QIODevice * dev){
	return (qt_QXmlInputSource *) new QXmlInputSourceBridge((QIODevice*)dev);
}
qt_QXmlInputSource * qt_new_QXmlInputSource2(qt_QFile * file){
	return (qt_QXmlInputSource *) new QXmlInputSourceBridge((QFile&)* (QFile*)file);
}
qt_QXmlInputSource * qt_new_QXmlInputSource3(qt_QTextStream* stream){
	return (qt_QXmlInputSource *) new QXmlInputSourceBridge((QTextStream&)* (QTextStream*)stream);
}
void qt_del_QXmlInputSource( qt_QXmlInputSource* p ){
	delete (QXmlInputSourceBridge*) p;
}
void qt_QXmlInputSource_setData( qt_QXmlInputSource* instPointer,qt_QString * dat){
	((QXmlInputSourceBridge*)instPointer)->setData((QString&)* (QString*)dat);
	return;
}
void qt_QXmlInputSource_setData1( qt_QXmlInputSource* instPointer,qt_QByteArray* dat){
	((QXmlInputSourceBridge*)instPointer)->setData((QByteArray&)* (QByteArray*)dat);
	return;
}
void qt_QXmlInputSource_fetchData( qt_QXmlInputSource* instPointer){
	((QXmlInputSourceBridge*)instPointer)->fetchData();
	return;
}
qt_QString * qt_QXmlInputSource_data( qt_QXmlInputSource* instPointer){
	return (qt_QString *)new QString(((QXmlInputSourceBridge*)instPointer)->data());
}
qt_QChar* qt_QXmlInputSource_next( qt_QXmlInputSource* instPointer){
	return (qt_QChar*)new QChar(((QXmlInputSourceBridge*)instPointer)->next());
}
void qt_QXmlInputSource_reset( qt_QXmlInputSource* instPointer){
	((QXmlInputSourceBridge*)instPointer)->reset();
	return;
}
qt_QString * qt_QXmlInputSource_fromRawData( qt_QXmlInputSource* instPointer,qt_QByteArray* data, int beginning){
	return (qt_QString *)new QString(((QXmlInputSourceBridge*)instPointer)->protected_fromRawData((QByteArray&)* (QByteArray*)data, (bool)beginning));
}
