/***************************************************************************
                            qt_QSqlForm.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_QSqlForm.h"
}

#include <qsqlform.h>

class QSqlFormBridge : public QSqlForm
{
public:
	QSqlFormBridge(QObject* parent, const char* name) : QSqlForm(parent, name) {}
	~QSqlFormBridge() {}
	void protected_insert(QWidget* widget, QSqlField* field) {
		QSqlForm::insert(widget, field);
		return;
	}
	void protected_remove(QWidget* widget) {
		QSqlForm::remove(widget);
		return;
	}
	void protected_clearMap() {
		QSqlForm::clearMap();
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QSqlForm * qt_new_QSqlForm(qt_QObject * parent, char* name){
	return (qt_QSqlForm *) new QSqlFormBridge((QObject*)parent, (char*)name);
}
void qt_del_QSqlForm( qt_QSqlForm* p ){
	delete (QSqlFormBridge*) p;
}
void qt_QSqlForm_insert( qt_QSqlForm* instPointer,qt_QWidget * widget, qt_QString * field){
	((QSqlFormBridge*)instPointer)->insert((QWidget*)widget, (QString&)* (QString*)field);
	return;
}
void qt_QSqlForm_remove( qt_QSqlForm* instPointer,qt_QString * field){
	((QSqlFormBridge*)instPointer)->remove((QString&)* (QString*)field);
	return;
}
unsigned int qt_QSqlForm_count( qt_QSqlForm* instPointer){
	return (unsigned int) ((QSqlFormBridge*)instPointer)->count();
}
qt_QWidget * qt_QSqlForm_widget( qt_QSqlForm* instPointer,unsigned int i){
	return (qt_QWidget *) ((QSqlFormBridge*)instPointer)->widget((uint)i);
}
qt_QSqlField* qt_QSqlForm_widgetToField( qt_QSqlForm* instPointer,qt_QWidget * widget){
	return (qt_QSqlField*) ((QSqlFormBridge*)instPointer)->widgetToField((QWidget*)widget);
}
qt_QWidget * qt_QSqlForm_fieldToWidget( qt_QSqlForm* instPointer,qt_QSqlField* field){
	return (qt_QWidget *) ((QSqlFormBridge*)instPointer)->fieldToWidget((QSqlField*)field);
}
void qt_QSqlForm_installPropertyMap( qt_QSqlForm* instPointer,qt_QSqlPropertyMap* map){
	((QSqlFormBridge*)instPointer)->installPropertyMap((QSqlPropertyMap*)map);
	return;
}
void qt_QSqlForm_setRecord( qt_QSqlForm* instPointer,qt_QSqlRecord* buf){
	((QSqlFormBridge*)instPointer)->setRecord((QSqlRecord*)buf);
	return;
}
void qt_QSqlForm_readField( qt_QSqlForm* instPointer,qt_QWidget * widget){
	((QSqlFormBridge*)instPointer)->readField((QWidget*)widget);
	return;
}
void qt_QSqlForm_writeField( qt_QSqlForm* instPointer,qt_QWidget * widget){
	((QSqlFormBridge*)instPointer)->writeField((QWidget*)widget);
	return;
}
void qt_QSqlForm_readFields( qt_QSqlForm* instPointer){
	((QSqlFormBridge*)instPointer)->readFields();
	return;
}
void qt_QSqlForm_writeFields( qt_QSqlForm* instPointer){
	((QSqlFormBridge*)instPointer)->writeFields();
	return;
}
void qt_QSqlForm_clear( qt_QSqlForm* instPointer){
	((QSqlFormBridge*)instPointer)->clear();
	return;
}
void qt_QSqlForm_clearValues( qt_QSqlForm* instPointer,int nullify){
	((QSqlFormBridge*)instPointer)->clearValues((bool)nullify);
	return;
}
void qt_QSqlForm_insert1( qt_QSqlForm* instPointer,qt_QWidget * widget, qt_QSqlField* field){
	((QSqlFormBridge*)instPointer)->protected_insert((QWidget*)widget, (QSqlField*)field);
	return;
}
void qt_QSqlForm_remove1( qt_QSqlForm* instPointer,qt_QWidget * widget){
	((QSqlFormBridge*)instPointer)->protected_remove((QWidget*)widget);
	return;
}
void qt_QSqlForm_clearMap( qt_QSqlForm* instPointer){
	((QSqlFormBridge*)instPointer)->protected_clearMap();
	return;
}
