/***************************************************************************
                            qt_QDataTable.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_QDataTable.h"
}

#include <qdatatable.h>

class QDataTableBridge : public QDataTable
{
public:
	QDataTableBridge(QWidget* parent, const char* name) : QDataTable(parent, name) {}
	QDataTableBridge(QSqlCursor* cursor, bool autoPopulate, QWidget* parent, const char* name) : QDataTable(cursor, autoPopulate, parent, name) {}
	~QDataTableBridge() {}
	 bool  protected_insertCurrent() {
		return ( bool ) QDataTable::insertCurrent();
	}
	 bool  protected_updateCurrent() {
		return ( bool ) QDataTable::updateCurrent();
	}
	 bool  protected_deleteCurrent() {
		return ( bool ) QDataTable::deleteCurrent();
	}
	 QSql::Confirm  protected_confirmEdit(QSql::Op m) {
		return ( QSql::Confirm ) QDataTable::confirmEdit(m);
	}
	 QSql::Confirm  protected_confirmCancel(QSql::Op m) {
		return ( QSql::Confirm ) QDataTable::confirmCancel(m);
	}
	void protected_handleError(const QSqlError& e) {
		QDataTable::handleError(e);
		return;
	}
	 bool  protected_beginInsert() {
		return ( bool ) QDataTable::beginInsert();
	}
	 QWidget*  protected_beginUpdate(int row, int col, bool replace) {
		return ( QWidget* ) QDataTable::beginUpdate(row, col, replace);
	}
	bool  protected_eventFilter(QObject* o, QEvent* e) {
		return (bool ) QDataTable::eventFilter(o, e);
	}
	void protected_endEdit(int row, int col, bool accept, bool replace) {
		QDataTable::endEdit(row, col, accept, replace);
		return;
	}
	QWidget *  protected_createEditor(int row, int col, bool initFromCell) {
		return (QWidget * ) QDataTable::createEditor(row, col, initFromCell);
	}
	void protected_activateNextCell() {
		QDataTable::activateNextCell();
		return;
	}
	int  protected_indexOf(uint i) {
		return (int ) QDataTable::indexOf(i);
	}
	void protected_reset() {
		QDataTable::reset();
		return;
	}
	void protected_setSize(QSqlCursor* sql) {
		QDataTable::setSize(sql);
		return;
	}
	void protected_repaintCell(int row, int col) {
		QDataTable::repaintCell(row, col);
		return;
	}
	void protected_paintCell(QPainter* p, int row, int col, const QRect& cr, bool selected, const QColorGroup& cg) {
		QDataTable::paintCell(p, row, col, cr, selected, cg);
		return;
	}
	void protected_paintField(QPainter* p, const QSqlField* field, const QRect& cr, bool selected) {
		QDataTable::paintField(p, field, cr, selected);
		return;
	}
	 int  protected_fieldAlignment(const QSqlField* field) {
		return ( int ) QDataTable::fieldAlignment(field);
	}
	void protected_columnClicked(int col) {
		QDataTable::columnClicked(col);
		return;
	}
	void protected_resizeData(int len) {
		QDataTable::resizeData(len);
		return;
	}
	QTableItem *  protected_item(int row, int col) {
		return (QTableItem * ) QDataTable::item(row, col);
	}
	void protected_setItem(int row, int col, QTableItem* item) {
		QDataTable::setItem(row, col, item);
		return;
	}
	void protected_clearCell(int row, int col) {
		QDataTable::clearCell(row, col);
		return;
	}
	void protected_setPixmap(int row, int col, const QPixmap& pix) {
		QDataTable::setPixmap(row, col, pix);
		return;
	}
	void protected_takeItem(QTableItem* i) {
		QDataTable::takeItem(i);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QTable::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", arg1, "QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			QTable::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragMoveEvent", arg1, "QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", arg1, "QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsWheelEvent", arg1, "QWheelEvent")) {
			QScrollView::contentsWheelEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", arg1, "QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "tabletEvent", arg1, "QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", e, "QShowEvent")) {
			QTable::showEvent(e);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsContextMenuEvent", e, "QContextMenuEvent")) {
			QDataTable::contentsContextMenuEvent(e);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportContextMenuEvent", arg1, "QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMousePressEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			QScrollView::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imComposeEvent", arg1, "QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseReleaseEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "enterEvent", arg1, "QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDropEvent", e, "QDropEvent")) {
			QTable::contentsDropEvent(e);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusInEvent", arg1, "QFocusEvent")) {
			QTable::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragLeaveEvent", e, "QDragLeaveEvent")) {
			QTable::contentsDragLeaveEvent(e);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDropEvent", arg1, "QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QTable::contentsMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragEnterEvent", arg1, "QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseMoveEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragMoveEvent", e, "QDragMoveEvent")) {
			QTable::contentsDragMoveEvent(e);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "moveEvent", arg1, "QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseReleaseEvent", arg1, "QMouseEvent")) {
			QTable::contentsMouseReleaseEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "wheelEvent", arg1, "QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportWheelEvent", arg1, "QWheelEvent")) {
			QScrollView::viewportWheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", arg1, "QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragEnterEvent", e, "QDragEnterEvent")) {
			QTable::contentsDragEnterEvent(e);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseMoveEvent", arg1, "QMouseEvent")) {
			QTable::contentsMouseMoveEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imStartEvent", arg1, "QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMousePressEvent", e, "QMouseEvent")) {
			QDataTable::contentsMousePressEvent(e);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "closeEvent", arg1, "QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void viewportPaintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportPaintEvent", arg1, "QPaintEvent")) {
			QScrollView::viewportPaintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QDataTable::resizeEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportResizeEvent", arg1, "QResizeEvent")) {
			QTable::viewportResizeEvent(arg1);
		}
		return;
	}
};

qt_QDataTable * qt_new_QDataTable(qt_QWidget * parent, char* name){
	return (qt_QDataTable *) new QDataTableBridge((QWidget*)parent, (char*)name);
}
qt_QDataTable * qt_new_QDataTable1(qt_QSqlCursor* cursor, int autoPopulate, qt_QWidget * parent, char* name){
	return (qt_QDataTable *) new QDataTableBridge((QSqlCursor*)cursor, (bool)autoPopulate, (QWidget*)parent, (char*)name);
}
void qt_del_QDataTable( qt_QDataTable* p ){
	delete (QDataTableBridge*) p;
}
void qt_QDataTable_addColumn( qt_QDataTable* instPointer,qt_QString * fieldName, qt_QString * label, int width, qt_QIconSet* iconset){
	((QDataTableBridge*)instPointer)->addColumn((QString&)* (QString*)fieldName, (QString&)* (QString*)label, (int)width, (QIconSet&)* (QIconSet*)iconset);
	return;
}
void qt_QDataTable_removeColumn( qt_QDataTable* instPointer,unsigned int col){
	((QDataTableBridge*)instPointer)->removeColumn((uint)col);
	return;
}
void qt_QDataTable_setColumn( qt_QDataTable* instPointer,unsigned int col, qt_QString * fieldName, qt_QString * label, int width, qt_QIconSet* iconset){
	((QDataTableBridge*)instPointer)->setColumn((uint)col, (QString&)* (QString*)fieldName, (QString&)* (QString*)label, (int)width, (QIconSet&)* (QIconSet*)iconset);
	return;
}
qt_QString * qt_QDataTable_nullText( qt_QDataTable* instPointer){
	return (qt_QString *)new QString(((QDataTableBridge*)instPointer)->nullText());
}
qt_QString * qt_QDataTable_trueText( qt_QDataTable* instPointer){
	return (qt_QString *)new QString(((QDataTableBridge*)instPointer)->trueText());
}
qt_QString * qt_QDataTable_falseText( qt_QDataTable* instPointer){
	return (qt_QString *)new QString(((QDataTableBridge*)instPointer)->falseText());
}
int qt_QDataTable_dateFormat( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->dateFormat();
}
int qt_QDataTable_confirmEdits( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->confirmEdits();
}
int qt_QDataTable_confirmInsert( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->confirmInsert();
}
int qt_QDataTable_confirmUpdate( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->confirmUpdate();
}
int qt_QDataTable_confirmDelete( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->confirmDelete();
}
int qt_QDataTable_confirmCancels( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->confirmCancels();
}
int qt_QDataTable_autoDelete( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->autoDelete();
}
int qt_QDataTable_autoEdit( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->autoEdit();
}
qt_QString * qt_QDataTable_filter( qt_QDataTable* instPointer){
	return (qt_QString *)new QString(((QDataTableBridge*)instPointer)->filter());
}
qt_QStringList* qt_QDataTable_sort( qt_QDataTable* instPointer){
	return (qt_QStringList*)new QStringList(((QDataTableBridge*)instPointer)->sort());
}
void qt_QDataTable_setSqlCursor( qt_QDataTable* instPointer,qt_QSqlCursor* cursor, int autoPopulate, int autoDelete){
	((QDataTableBridge*)instPointer)->setSqlCursor((QSqlCursor*)cursor, (bool)autoPopulate, (bool)autoDelete);
	return;
}
qt_QSqlCursor* qt_QDataTable_sqlCursor( qt_QDataTable* instPointer){
	return (qt_QSqlCursor*) ((QDataTableBridge*)instPointer)->sqlCursor();
}
void qt_QDataTable_setNullText( qt_QDataTable* instPointer,qt_QString * nullText){
	((QDataTableBridge*)instPointer)->setNullText((QString&)* (QString*)nullText);
	return;
}
void qt_QDataTable_setTrueText( qt_QDataTable* instPointer,qt_QString * trueText){
	((QDataTableBridge*)instPointer)->setTrueText((QString&)* (QString*)trueText);
	return;
}
void qt_QDataTable_setFalseText( qt_QDataTable* instPointer,qt_QString * falseText){
	((QDataTableBridge*)instPointer)->setFalseText((QString&)* (QString*)falseText);
	return;
}
void qt_QDataTable_setDateFormat( qt_QDataTable* instPointer,int f){
	((QDataTableBridge*)instPointer)->setDateFormat((Qt::DateFormat)f);
	return;
}
void qt_QDataTable_setConfirmEdits( qt_QDataTable* instPointer,int confirm){
	((QDataTableBridge*)instPointer)->setConfirmEdits((bool)confirm);
	return;
}
void qt_QDataTable_setConfirmInsert( qt_QDataTable* instPointer,int confirm){
	((QDataTableBridge*)instPointer)->setConfirmInsert((bool)confirm);
	return;
}
void qt_QDataTable_setConfirmUpdate( qt_QDataTable* instPointer,int confirm){
	((QDataTableBridge*)instPointer)->setConfirmUpdate((bool)confirm);
	return;
}
void qt_QDataTable_setConfirmDelete( qt_QDataTable* instPointer,int confirm){
	((QDataTableBridge*)instPointer)->setConfirmDelete((bool)confirm);
	return;
}
void qt_QDataTable_setConfirmCancels( qt_QDataTable* instPointer,int confirm){
	((QDataTableBridge*)instPointer)->setConfirmCancels((bool)confirm);
	return;
}
void qt_QDataTable_setAutoDelete( qt_QDataTable* instPointer,int enable){
	((QDataTableBridge*)instPointer)->setAutoDelete((bool)enable);
	return;
}
void qt_QDataTable_setAutoEdit( qt_QDataTable* instPointer,int autoEdit){
	((QDataTableBridge*)instPointer)->setAutoEdit((bool)autoEdit);
	return;
}
void qt_QDataTable_setFilter( qt_QDataTable* instPointer,qt_QString * filter){
	((QDataTableBridge*)instPointer)->setFilter((QString&)* (QString*)filter);
	return;
}
void qt_QDataTable_setSort( qt_QDataTable* instPointer,qt_QStringList* sort){
	((QDataTableBridge*)instPointer)->setSort((QStringList&)* (QStringList*)sort);
	return;
}
void qt_QDataTable_setSort1( qt_QDataTable* instPointer,qt_QSqlIndex* sort){
	((QDataTableBridge*)instPointer)->setSort((QSqlIndex&)* (QSqlIndex*)sort);
	return;
}
void qt_QDataTable_refresh( qt_QDataTable* instPointer,int mode){
	((QDataTableBridge*)instPointer)->refresh((QDataTable::Refresh)mode);
	return;
}
void qt_QDataTable_sortColumn( qt_QDataTable* instPointer,int col, int ascending, int wholeRows){
	((QDataTableBridge*)instPointer)->sortColumn((int)col, (bool)ascending, (bool)wholeRows);
	return;
}
qt_QString * qt_QDataTable_text( qt_QDataTable* instPointer,int row, int col){
	return (qt_QString *)new QString(((QDataTableBridge*)instPointer)->text((int)row, (int)col));
}
qt_QVariant * qt_QDataTable_value( qt_QDataTable* instPointer,int row, int col){
	return (qt_QVariant *)new QVariant(((QDataTableBridge*)instPointer)->value((int)row, (int)col));
}
qt_QSqlRecord* qt_QDataTable_currentRecord( qt_QDataTable* instPointer){
	return (qt_QSqlRecord*) ((QDataTableBridge*)instPointer)->currentRecord();
}
void qt_QDataTable_installEditorFactory( qt_QDataTable* instPointer,qt_QSqlEditorFactory* f){
	((QDataTableBridge*)instPointer)->installEditorFactory((QSqlEditorFactory*)f);
	return;
}
void qt_QDataTable_installPropertyMap( qt_QDataTable* instPointer,qt_QSqlPropertyMap* m){
	((QDataTableBridge*)instPointer)->installPropertyMap((QSqlPropertyMap*)m);
	return;
}
int qt_QDataTable_numCols( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->numCols();
}
int qt_QDataTable_numRows( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->numRows();
}
void qt_QDataTable_setNumCols( qt_QDataTable* instPointer,int c){
	((QDataTableBridge*)instPointer)->setNumCols((int)c);
	return;
}
void qt_QDataTable_setNumRows( qt_QDataTable* instPointer,int r){
	((QDataTableBridge*)instPointer)->setNumRows((int)r);
	return;
}
int qt_QDataTable_findBuffer( qt_QDataTable* instPointer,qt_QSqlIndex* idx, int atHint){
	return (int) ((QDataTableBridge*)instPointer)->findBuffer((QSqlIndex&)* (QSqlIndex*)idx, (int)atHint);
}
void qt_QDataTable_find( qt_QDataTable* instPointer,qt_QString * str, int caseSensitive, int backwards){
	((QDataTableBridge*)instPointer)->find((QString&)* (QString*)str, (bool)caseSensitive, (bool)backwards);
	return;
}
void qt_QDataTable_sortAscending( qt_QDataTable* instPointer,int col){
	((QDataTableBridge*)instPointer)->sortAscending((int)col);
	return;
}
void qt_QDataTable_sortDescending( qt_QDataTable* instPointer,int col){
	((QDataTableBridge*)instPointer)->sortDescending((int)col);
	return;
}
void qt_QDataTable_refresh1( qt_QDataTable* instPointer){
	((QDataTableBridge*)instPointer)->refresh();
	return;
}
void qt_QDataTable_setColumnWidth( qt_QDataTable* instPointer,int col, int w){
	((QDataTableBridge*)instPointer)->setColumnWidth((int)col, (int)w);
	return;
}
int qt_QDataTable_insertCurrent( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->protected_insertCurrent();
}
int qt_QDataTable_updateCurrent( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->protected_updateCurrent();
}
int qt_QDataTable_deleteCurrent( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->protected_deleteCurrent();
}
int qt_QDataTable_confirmEdit( qt_QDataTable* instPointer,int m){
	return (int) ((QDataTableBridge*)instPointer)->protected_confirmEdit((QSql::Op)m);
}
int qt_QDataTable_confirmCancel( qt_QDataTable* instPointer,int m){
	return (int) ((QDataTableBridge*)instPointer)->protected_confirmCancel((QSql::Op)m);
}
void qt_QDataTable_handleError( qt_QDataTable* instPointer,qt_QSqlError* e){
	((QDataTableBridge*)instPointer)->protected_handleError((QSqlError&)* (QSqlError*)e);
	return;
}
int qt_QDataTable_beginInsert( qt_QDataTable* instPointer){
	return (int) ((QDataTableBridge*)instPointer)->protected_beginInsert();
}
qt_QWidget * qt_QDataTable_beginUpdate( qt_QDataTable* instPointer,int row, int col, int replace){
	return (qt_QWidget *) ((QDataTableBridge*)instPointer)->protected_beginUpdate((int)row, (int)col, (bool)replace);
}
int qt_QDataTable_eventFilter( qt_QDataTable* instPointer,qt_QObject * o, qt_QEvent * e){
	return (int) ((QDataTableBridge*)instPointer)->protected_eventFilter((QObject*)o, (QEvent*)e);
}
void qt_QDataTable_endEdit( qt_QDataTable* instPointer,int row, int col, int accept, int replace){
	((QDataTableBridge*)instPointer)->protected_endEdit((int)row, (int)col, (bool)accept, (bool)replace);
	return;
}
qt_QWidget * qt_QDataTable_createEditor( qt_QDataTable* instPointer,int row, int col, int initFromCell){
	return (qt_QWidget *) ((QDataTableBridge*)instPointer)->protected_createEditor((int)row, (int)col, (bool)initFromCell);
}
void qt_QDataTable_activateNextCell( qt_QDataTable* instPointer){
	((QDataTableBridge*)instPointer)->protected_activateNextCell();
	return;
}
int qt_QDataTable_indexOf( qt_QDataTable* instPointer,unsigned int i){
	return (int) ((QDataTableBridge*)instPointer)->protected_indexOf((uint)i);
}
void qt_QDataTable_reset( qt_QDataTable* instPointer){
	((QDataTableBridge*)instPointer)->protected_reset();
	return;
}
void qt_QDataTable_setSize( qt_QDataTable* instPointer,qt_QSqlCursor* sql){
	((QDataTableBridge*)instPointer)->protected_setSize((QSqlCursor*)sql);
	return;
}
void qt_QDataTable_repaintCell( qt_QDataTable* instPointer,int row, int col){
	((QDataTableBridge*)instPointer)->protected_repaintCell((int)row, (int)col);
	return;
}
void qt_QDataTable_paintCell( qt_QDataTable* instPointer,qt_QPainter * p, int row, int col, qt_QRect* cr, int selected, qt_QColorGroup * cg){
	((QDataTableBridge*)instPointer)->protected_paintCell((QPainter*)p, (int)row, (int)col, (QRect&)* (QRect*)cr, (bool)selected, (QColorGroup&)* (QColorGroup*)cg);
	return;
}
void qt_QDataTable_paintField( qt_QDataTable* instPointer,qt_QPainter * p, qt_QSqlField* field, qt_QRect* cr, int selected){
	((QDataTableBridge*)instPointer)->protected_paintField((QPainter*)p, (QSqlField*)field, (QRect&)* (QRect*)cr, (bool)selected);
	return;
}
int qt_QDataTable_fieldAlignment( qt_QDataTable* instPointer,qt_QSqlField* field){
	return (int) ((QDataTableBridge*)instPointer)->protected_fieldAlignment((QSqlField*)field);
}
void qt_QDataTable_columnClicked( qt_QDataTable* instPointer,int col){
	((QDataTableBridge*)instPointer)->protected_columnClicked((int)col);
	return;
}
void qt_QDataTable_resizeData( qt_QDataTable* instPointer,int len){
	((QDataTableBridge*)instPointer)->protected_resizeData((int)len);
	return;
}
qt_QTableItem* qt_QDataTable_item( qt_QDataTable* instPointer,int row, int col){
	return (qt_QTableItem*) ((QDataTableBridge*)instPointer)->protected_item((int)row, (int)col);
}
void qt_QDataTable_setItem( qt_QDataTable* instPointer,int row, int col, qt_QTableItem* item){
	((QDataTableBridge*)instPointer)->protected_setItem((int)row, (int)col, (QTableItem*)item);
	return;
}
void qt_QDataTable_clearCell( qt_QDataTable* instPointer,int row, int col){
	((QDataTableBridge*)instPointer)->protected_clearCell((int)row, (int)col);
	return;
}
void qt_QDataTable_setPixmap( qt_QDataTable* instPointer,int row, int col, qt_QPixmap * pix){
	((QDataTableBridge*)instPointer)->protected_setPixmap((int)row, (int)col, (QPixmap&)* (QPixmap*)pix);
	return;
}
void qt_QDataTable_takeItem( qt_QDataTable* instPointer,qt_QTableItem* i){
	((QDataTableBridge*)instPointer)->protected_takeItem((QTableItem*)i);
	return;
}
