/***************************************************************************
                            QDataTable.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 <qdatatable.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QDataTable.h>

class QDataTableJBridge : public QDataTable
{
public:
	QDataTableJBridge(QWidget* parent, const char* name) : QDataTable(parent, name) {}
	QDataTableJBridge(QSqlCursor* cursor, bool autoPopulate, QWidget* parent, const char* name) : QDataTable(cursor, autoPopulate, parent, name) {}
	~QDataTableJBridge() {QtSupport::qtKeyDeleted(this);}
	 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 (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QTable::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QTable::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::contentsWheelEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* e) {
		if (! QtSupport::eventDelegate(this, "showEvent", e, "org.kde.qt.QShowEvent")) {
			QTable::showEvent(e);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsContextMenuEvent", e, "org.kde.qt.QContextMenuEvent")) {
			QDataTable::contentsContextMenuEvent(e);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportContextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDropEvent", e, "org.kde.qt.QDropEvent")) {
			QTable::contentsDropEvent(e);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QTable::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragLeaveEvent", e, "org.kde.qt.QDragLeaveEvent")) {
			QTable::contentsDragLeaveEvent(e);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QTable::contentsMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragMoveEvent", e, "org.kde.qt.QDragMoveEvent")) {
			QTable::contentsDragMoveEvent(e);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QTable::contentsMouseReleaseEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::viewportWheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragEnterEvent", e, "org.kde.qt.QDragEnterEvent")) {
			QTable::contentsDragEnterEvent(e);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QTable::contentsMouseMoveEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMousePressEvent", e, "org.kde.qt.QMouseEvent")) {
			QDataTable::contentsMousePressEvent(e);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void viewportPaintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportPaintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QScrollView::viewportPaintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QDataTable::resizeEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportResizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QTable::viewportResizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_newQDataTable__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDataTableJBridge((QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_newQDataTable__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDataTableJBridge(0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_newQDataTable__Lorg_kde_qt_QSqlCursor_2ZLorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject cursor, jboolean autoPopulate, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDataTableJBridge((QSqlCursor*) QtSupport::getQt(env, cursor), (bool) autoPopulate, (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_newQDataTable__Lorg_kde_qt_QSqlCursor_2(JNIEnv *env, jobject obj, jobject cursor)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDataTableJBridge((QSqlCursor*) QtSupport::getQt(env, cursor), FALSE, 0, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QDataTable*)QtSupport::getQt(env, obj))->parentWidget(TRUE) == (QWidget *) 0) {
		delete (QDataTable*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_addColumn__Ljava_lang_String_2Ljava_lang_String_2ILorg_kde_qt_QIconSet_2(JNIEnv *env, jobject obj, jstring fieldName, jstring label, jint width, jobject iconset)
{
static QString * _qstring_label = 0;
static QString * _qstring_fieldName = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->addColumn((QString&) * (QString *) QtSupport::toQString(env, fieldName, &_qstring_fieldName), (QString&) * (QString *) QtSupport::toQString(env, label, &_qstring_label), (int) width, (QIconSet&) *(QIconSet *) QtSupport::getQt(env, iconset));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_addColumn__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring fieldName)
{
static QString * _qstring_fieldName = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->addColumn((QString&) * (QString *) QtSupport::toQString(env, fieldName, &_qstring_fieldName), QString::null, -1, QIconSet());
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_removeColumn(JNIEnv *env, jobject obj, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->removeColumn((uint) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setColumn__ILjava_lang_String_2Ljava_lang_String_2ILorg_kde_qt_QIconSet_2(JNIEnv *env, jobject obj, jint col, jstring fieldName, jstring label, jint width, jobject iconset)
{
static QString * _qstring_label = 0;
static QString * _qstring_fieldName = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setColumn((uint) col, (QString&) * (QString *) QtSupport::toQString(env, fieldName, &_qstring_fieldName), (QString&) * (QString *) QtSupport::toQString(env, label, &_qstring_label), (int) width, (QIconSet&) *(QIconSet *) QtSupport::getQt(env, iconset));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setColumn__ILjava_lang_String_2(JNIEnv *env, jobject obj, jint col, jstring fieldName)
{
static QString * _qstring_fieldName = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setColumn((uint) col, (QString&) * (QString *) QtSupport::toQString(env, fieldName, &_qstring_fieldName), QString::null, -1, QIconSet());
	return;
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_dateFormat(JNIEnv *env, jobject obj)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->dateFormat();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_confirmEdits(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->confirmEdits();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_confirmInsert(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->confirmInsert();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_confirmUpdate(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->confirmUpdate();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_confirmDelete(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->confirmDelete();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_confirmCancels(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->confirmCancels();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_autoDelete(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->autoDelete();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_autoEdit(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->autoEdit();
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_sort(JNIEnv *env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QDataTableJBridge*) QtSupport::getQt(env, obj))->sort();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setSqlCursor__Lorg_kde_qt_QSqlCursor_2ZZ(JNIEnv *env, jobject obj, jobject cursor, jboolean autoPopulate, jboolean autoDelete)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setSqlCursor((QSqlCursor*) QtSupport::getQt(env, cursor), (bool) autoPopulate, (bool) autoDelete);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setSqlCursor__(JNIEnv *env, jobject obj)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setSqlCursor(0, FALSE, FALSE);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_sqlCursor(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QDataTableJBridge*) QtSupport::getQt(env, obj))->sqlCursor(), "org.kde.qt.QSqlCursor");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setNullText(JNIEnv *env, jobject obj, jstring nullText)
{
static QString * _qstring_nullText = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setNullText((QString&) * (QString *) QtSupport::toQString(env, nullText, &_qstring_nullText));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setTrueText(JNIEnv *env, jobject obj, jstring trueText)
{
static QString * _qstring_trueText = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setTrueText((QString&) * (QString *) QtSupport::toQString(env, trueText, &_qstring_trueText));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setFalseText(JNIEnv *env, jobject obj, jstring falseText)
{
static QString * _qstring_falseText = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setFalseText((QString&) * (QString *) QtSupport::toQString(env, falseText, &_qstring_falseText));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setDateFormat(JNIEnv *env, jobject obj, jint f)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setDateFormat((Qt::DateFormat) f);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setConfirmEdits(JNIEnv *env, jobject obj, jboolean confirm)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setConfirmEdits((bool) confirm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setConfirmInsert(JNIEnv *env, jobject obj, jboolean confirm)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setConfirmInsert((bool) confirm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setConfirmUpdate(JNIEnv *env, jobject obj, jboolean confirm)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setConfirmUpdate((bool) confirm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setConfirmDelete(JNIEnv *env, jobject obj, jboolean confirm)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setConfirmDelete((bool) confirm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setConfirmCancels(JNIEnv *env, jobject obj, jboolean confirm)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setConfirmCancels((bool) confirm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setAutoDelete(JNIEnv *env, jobject obj, jboolean enable)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setAutoDelete((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setAutoEdit(JNIEnv *env, jobject obj, jboolean autoEdit)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setAutoEdit((bool) autoEdit);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setFilter(JNIEnv *env, jobject obj, jstring filter)
{
static QString * _qstring_filter = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setFilter((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setSort___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray sort)
{
static QStringList * _qlist_sort = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setSort((QStringList&) * (QStringList *) QtSupport::toQStringList(env, sort, &_qlist_sort));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setSort__Lorg_kde_qt_QSqlIndex_2(JNIEnv *env, jobject obj, jobject sort)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setSort((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, sort));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_refresh__I(JNIEnv *env, jobject obj, jint mode)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->refresh((QDataTable::Refresh) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_sortColumn__IZZ(JNIEnv *env, jobject obj, jint col, jboolean ascending, jboolean wholeRows)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->sortColumn((int) col, (bool) ascending, (bool) wholeRows);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_sortColumn__I(JNIEnv *env, jobject obj, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->sortColumn((int) col, TRUE, FALSE);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDataTable_text(JNIEnv *env, jobject obj, jint row, jint col)
{
	QString  _qstring;
	_qstring = ((QDataTableJBridge*) QtSupport::getQt(env, obj))->text((int) row, (int) col);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_value(JNIEnv *env, jobject obj, jint row, jint col)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QVariant (((QDataTableJBridge*) QtSupport::getQt(env, obj))->value((int) row, (int) col)), "org.kde.qt.QVariant", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_currentRecord(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QDataTableJBridge*) QtSupport::getQt(env, obj))->currentRecord(), "org.kde.qt.QSqlRecord");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_installEditorFactory(JNIEnv *env, jobject obj, jobject f)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->installEditorFactory((QSqlEditorFactory*) QtSupport::getQt(env, f));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_installPropertyMap(JNIEnv *env, jobject obj, jobject m)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->installPropertyMap((QSqlPropertyMap*) QtSupport::getQt(env, m));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_numCols(JNIEnv *env, jobject obj)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->numCols();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_numRows(JNIEnv *env, jobject obj)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->numRows();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setNumCols(JNIEnv *env, jobject obj, jint c)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setNumCols((int) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setNumRows(JNIEnv *env, jobject obj, jint r)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setNumRows((int) r);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_findBuffer__Lorg_kde_qt_QSqlIndex_2I(JNIEnv *env, jobject obj, jobject idx, jint atHint)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->findBuffer((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, idx), (int) atHint);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_findBuffer__Lorg_kde_qt_QSqlIndex_2(JNIEnv *env, jobject obj, jobject idx)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->findBuffer((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, idx), 0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_find(JNIEnv *env, jobject obj, jstring str, jboolean caseSensitive, jboolean backwards)
{
static QString * _qstring_str = 0;
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->find((QString&) * (QString *) QtSupport::toQString(env, str, &_qstring_str), (bool) caseSensitive, (bool) backwards);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_sortAscending(JNIEnv *env, jobject obj, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->sortAscending((int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_sortDescending(JNIEnv *env, jobject obj, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->sortDescending((int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_refresh__(JNIEnv *env, jobject obj)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->refresh();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setColumnWidth(JNIEnv *env, jobject obj, jint col, jint w)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->setColumnWidth((int) col, (int) w);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_insertCurrent(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_insertCurrent();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_updateCurrent(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_updateCurrent();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_deleteCurrent(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_deleteCurrent();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_confirmEdit(JNIEnv *env, jobject obj, jint m)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_confirmEdit((QSql::Op) m);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_confirmCancel(JNIEnv *env, jobject obj, jint m)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_confirmCancel((QSql::Op) m);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_handleError(JNIEnv *env, jobject obj, jobject e)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_handleError((QSqlError&) *(QSqlError *) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_beginInsert(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_beginInsert();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_beginUpdate(JNIEnv *env, jobject obj, jint row, jint col, jboolean replace)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_beginUpdate((int) row, (int) col, (bool) replace), "org.kde.qt.QWidget");
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataTable_eventFilter(JNIEnv *env, jobject obj, jobject o, jobject e)
{
	return (jboolean) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_eventFilter((QObject*) QtSupport::getQt(env, o), (QEvent*) QtSupport::getQt(env, e));
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_endEdit(JNIEnv *env, jobject obj, jint row, jint col, jboolean accept, jboolean replace)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_endEdit((int) row, (int) col, (bool) accept, (bool) replace);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_createEditor(JNIEnv *env, jobject obj, jint row, jint col, jboolean initFromCell)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_createEditor((int) row, (int) col, (bool) initFromCell), "org.kde.qt.QWidget");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_activateNextCell(JNIEnv *env, jobject obj)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_activateNextCell();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_indexOf(JNIEnv *env, jobject obj, jint i)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_indexOf((uint) i);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_reset(JNIEnv *env, jobject obj)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setSize(JNIEnv *env, jobject obj, jobject sql)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_setSize((QSqlCursor*) QtSupport::getQt(env, sql));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_repaintCell(JNIEnv *env, jobject obj, jint row, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_repaintCell((int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_paintCell(JNIEnv *env, jobject obj, jobject p, jint row, jint col, jobject cr, jboolean selected, jobject cg)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_paintCell((QPainter*) QtSupport::getQt(env, p), (int) row, (int) col, (QRect&) *(QRect *) QtSupport::getQt(env, cr), (bool) selected, (QColorGroup&) *(QColorGroup *) QtSupport::getQt(env, cg));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_paintField(JNIEnv *env, jobject obj, jobject p, jobject field, jobject cr, jboolean selected)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_paintField((QPainter*) QtSupport::getQt(env, p), (QSqlField*) QtSupport::getQt(env, field), (QRect&) *(QRect *) QtSupport::getQt(env, cr), (bool) selected);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataTable_fieldAlignment(JNIEnv *env, jobject obj, jobject field)
{
	return (jint) ((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_fieldAlignment((QSqlField*) QtSupport::getQt(env, field));
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_columnClicked(JNIEnv *env, jobject obj, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_columnClicked((int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_resizeData(JNIEnv *env, jobject obj, jint len)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_resizeData((int) len);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataTable_item(JNIEnv *env, jobject obj, jint row, jint col)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_item((int) row, (int) col), "org.kde.qt.QTableItem");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setItem(JNIEnv *env, jobject obj, jint row, jint col, jobject item)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_setItem((int) row, (int) col, (QTableItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_clearCell(JNIEnv *env, jobject obj, jint row, jint col)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_clearCell((int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_setPixmap(JNIEnv *env, jobject obj, jint row, jint col, jobject pix)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_setPixmap((int) row, (int) col, (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pix));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataTable_takeItem(JNIEnv *env, jobject obj, jobject i)
{
	((QDataTableJBridge*) QtSupport::getQt(env, obj))->protected_takeItem((QTableItem*) QtSupport::getQt(env, i));
	return;
}

