/***************************************************************************
                            KCursor.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, 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 <kcursor.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KCursor.h>

class KCursorJBridge : public KCursor
{
public:
	KCursorJBridge() : KCursor() {}
};


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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_handCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::handCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_workingCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::workingCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_arrowCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::arrowCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_upArrowCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::upArrowCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_crossCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::crossCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_waitCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::waitCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_ibeamCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::ibeamCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_sizeVerCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::sizeVerCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_sizeHorCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::sizeHorCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_sizeBDiagCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::sizeBDiagCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_sizeFDiagCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::sizeFDiagCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_sizeAllCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::sizeAllCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_blankCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::blankCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCursor_whatsThisCursor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QCursor (KCursorJBridge::whatsThisCursor()), "org.kde.qt.QCursor", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCursor_setAutoHideCursor__Lorg_kde_qt_QWidget_2Z(JNIEnv *env, jclass obj, jobject w, jboolean enable)
{
	KCursorJBridge::setAutoHideCursor((QWidget*) QtSupport::getQt(env, w), (bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCursor_setAutoHideCursor__Lorg_kde_qt_QWidget_2ZZ(JNIEnv *env, jclass obj, jobject w, jboolean enable, jboolean customEventFilter)
{
	KCursorJBridge::setAutoHideCursor((QWidget*) QtSupport::getQt(env, w), (bool) enable, (bool) customEventFilter);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCursor_setHideCursorDelay(JNIEnv *env, jclass obj, jint ms)
{
	KCursorJBridge::setHideCursorDelay((int) ms);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCursor_hideCursorDelay(JNIEnv *env, jclass obj)
{
	return (jint) KCursorJBridge::hideCursorDelay();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCursor_autoHideEventFilter(JNIEnv *env, jclass obj, jobject arg1, jobject arg2)
{
	KCursorJBridge::autoHideEventFilter((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, arg2));
	return;
}

