/***************************************************************************
                            qt_QSqlError.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_QSqlError.h"
}

#include <qsqlerror.h>

class QSqlErrorBridge : public QSqlError
{
public:
	QSqlErrorBridge(const QString& driverText, const QString& databaseText, int type, int number) : QSqlError(driverText, databaseText, type, number) {}
	QSqlErrorBridge(const QSqlError& other) : QSqlError(other) {}
	~QSqlErrorBridge() {}
};

qt_QSqlError * qt_new_QSqlError(qt_QString * driverText, qt_QString * databaseText, int type, int number){
	return (qt_QSqlError *) new QSqlErrorBridge((QString&)* (QString*)driverText, (QString&)* (QString*)databaseText, (int)type, (int)number);
}
qt_QSqlError * qt_new_QSqlError1(qt_QSqlError* other){
	return (qt_QSqlError *) new QSqlErrorBridge((QSqlError&)* (QSqlError*)other);
}
void qt_del_QSqlError( qt_QSqlError* p ){
	delete (QSqlErrorBridge*) p;
}
qt_QString * qt_QSqlError_driverText( qt_QSqlError* instPointer){
	return (qt_QString *)new QString(((QSqlErrorBridge*)instPointer)->driverText());
}
void qt_QSqlError_setDriverText( qt_QSqlError* instPointer,qt_QString * driverText){
	((QSqlErrorBridge*)instPointer)->setDriverText((QString&)* (QString*)driverText);
	return;
}
qt_QString * qt_QSqlError_databaseText( qt_QSqlError* instPointer){
	return (qt_QString *)new QString(((QSqlErrorBridge*)instPointer)->databaseText());
}
void qt_QSqlError_setDatabaseText( qt_QSqlError* instPointer,qt_QString * databaseText){
	((QSqlErrorBridge*)instPointer)->setDatabaseText((QString&)* (QString*)databaseText);
	return;
}
int qt_QSqlError_type( qt_QSqlError* instPointer){
	return (int) ((QSqlErrorBridge*)instPointer)->type();
}
void qt_QSqlError_setType( qt_QSqlError* instPointer,int type){
	((QSqlErrorBridge*)instPointer)->setType((int)type);
	return;
}
int qt_QSqlError_number( qt_QSqlError* instPointer){
	return (int) ((QSqlErrorBridge*)instPointer)->number();
}
void qt_QSqlError_setNumber( qt_QSqlError* instPointer,int number){
	((QSqlErrorBridge*)instPointer)->setNumber((int)number);
	return;
}
