//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdatetime.h>
#include <qstring.h>
#include <kdirwatch.h>

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

class KDirWatchJBridge : public KDirWatch
{
public:
	KDirWatchJBridge(QObject* arg1,const char* arg2) : KDirWatch(arg1,arg2) {};
	KDirWatchJBridge(QObject* arg1) : KDirWatch(arg1) {};
	KDirWatchJBridge() : KDirWatch() {};
	~KDirWatchJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KDirWatch",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_addDir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->addDir((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_addDir__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring path, jboolean watchFiles)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->addDir((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (bool) watchFiles);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_addDir__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring path, jboolean watchFiles, jboolean recursive)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->addDir((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (bool) watchFiles, (bool) recursive);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_addFile(JNIEnv* env, jobject obj, jstring file)
{
static QString* _qstring_file = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->addFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDirWatch_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KDirWatch*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirWatch_contains(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	jboolean xret = (jboolean) ((KDirWatch*) QtSupport::getQt(env, obj))->contains((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirWatch_ctime(JNIEnv* env, jobject obj, jstring path)
{
	QDateTime  _qdate;
static QString* _qstring_path = 0;
	_qdate = ((KDirWatch*) QtSupport::getQt(env, obj))->ctime((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return (jobject) QtSupport::fromQDateTime(env, (QDateTime*) &_qdate);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KDirWatch_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirWatch_exists(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KDirWatchJBridge::exists();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KDirWatch*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KDirWatch*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KDirWatch_internalMethod(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KDirWatch*) QtSupport::getQt(env, obj))->internalMethod();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirWatch_isStopped(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDirWatch*) QtSupport::getQt(env, obj))->isStopped();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirWatch_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirWatch*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_newKDirWatch__Lorg_kde_qt_QObject_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 KDirWatchJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_removeDir(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->removeDir((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_removeFile(JNIEnv* env, jobject obj, jstring file)
{
static QString* _qstring_file = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->removeFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirWatch_restartDirScan(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	jboolean xret = (jboolean) ((KDirWatch*) QtSupport::getQt(env, obj))->restartDirScan((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirWatch_self(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KDirWatchJBridge::self(), "org.kde.koala.KDirWatch");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_setCreated(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->setCreated((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_setDeleted(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->setDeleted((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_setDirty(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->setDirty((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_startScan__(JNIEnv* env, jobject obj)
{
	((KDirWatch*) QtSupport::getQt(env, obj))->startScan();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_startScan__Z(JNIEnv* env, jobject obj, jboolean notify)
{
	((KDirWatch*) QtSupport::getQt(env, obj))->startScan((bool) notify);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_startScan__ZZ(JNIEnv* env, jobject obj, jboolean notify, jboolean skippedToo)
{
	((KDirWatch*) QtSupport::getQt(env, obj))->startScan((bool) notify, (bool) skippedToo);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_statistics(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KDirWatchJBridge::statistics();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirWatch_stopDirScan(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	jboolean xret = (jboolean) ((KDirWatch*) QtSupport::getQt(env, obj))->stopDirScan((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirWatch_stopScan(JNIEnv* env, jobject obj)
{
	((KDirWatch*) QtSupport::getQt(env, obj))->stopScan();
	return;
}

