//Auto-generated by kalyptus. DO NOT EDIT.
#include <qtable.h>

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

class QTableSelectionJBridge : public QTableSelection
{
public:
	QTableSelectionJBridge() : QTableSelection() {};
	QTableSelectionJBridge(int arg1,int arg2,int arg3,int arg4) : QTableSelection(arg1,arg2,arg3,arg4) {};
	~QTableSelectionJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_anchorCol(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->anchorCol();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_anchorRow(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->anchorRow();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_bottomRow(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->bottomRow();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableSelection_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QTableSelection_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableSelection_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QTableSelection*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableSelection_isActive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTableSelection*) QtSupport::getQt(env, obj))->isActive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableSelection_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableSelection_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTableSelection*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_leftCol(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->leftCol();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTableSelection_newQTableSelection__IIII(JNIEnv* env, jobject obj, jint start_row, jint start_col, jint end_row, jint end_col)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTableSelectionJBridge((int) start_row, (int) start_col, (int) end_row, (int) end_col));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_numCols(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->numCols();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_numRows(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->numRows();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableSelection_op_1equals(JNIEnv* env, jobject obj, jobject s)
{
	jboolean xret = (jboolean) ((QTableSelection*) QtSupport::getQt(env, obj))->operator==((const QTableSelection&)*(const QTableSelection*) QtSupport::getQt(env, s));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTableSelection_op_1not_1equals(JNIEnv* env, jobject obj, jobject s)
{
	jboolean xret = (jboolean) ((QTableSelection*) QtSupport::getQt(env, obj))->operator!=((const QTableSelection&)*(const QTableSelection*) QtSupport::getQt(env, s));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_rightCol(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->rightCol();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTableSelection_topRow(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTableSelection*) QtSupport::getQt(env, obj))->topRow();
	return xret;
}

