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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KDirWatch.h>

class KDirWatchJBridge : public KDirWatch
{
public:
	KDirWatchJBridge(TQObject* arg1,const char* arg2) : KDirWatch(arg1,arg2) {};
	KDirWatchJBridge(TQObject* arg1) : KDirWatch(arg1) {};
	KDirWatchJBridge() : KDirWatch() {};
	~KDirWatchJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KDirWatch",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirWatch_contains(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) ((KDirWatch*) QtSupport::getQt(env, obj))->contains((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KDirWatch_ctime(JNIEnv* env, jobject obj, jstring path)
{
	TQDateTime  _qdate;
static TQString* _qstring_path = 0;
	_qdate = ((KDirWatch*) QtSupport::getQt(env, obj))->ctime((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return (jobject) QtSupport::fromTQDateTime(env, (TQDateTime*) &_qdate);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KDirWatch_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KDirWatch_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirWatch_internalMethod(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KDirWatch*) QtSupport::getQt(env, obj))->internalMethod();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirWatch_newKDirWatch__Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KDirWatchJBridge((TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KDirWatch_newKDirWatch__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KDirWatchJBridge((TQObject*) 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_trinitydesktop_koala_KDirWatch_removeDir(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	((KDirWatch*) QtSupport::getQt(env, obj))->removeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirWatch_statistics(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KDirWatchJBridge::statistics();
	return;
}

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

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

