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

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

class KFileShareJBridge : public KFileShare
{
public:
	KFileShareJBridge() : KFileShare() {};
	~KFileShareJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFileShare_authorization(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KFileShareJBridge::authorization();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileShare_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFileShare_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFileShare_fileShareGroup(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KFileShareJBridge::fileShareGroup();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFileShare_findExe(JNIEnv* env, jclass cls, jstring exeName)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_exeName = 0;
	_qstring = KFileShareJBridge::findExe((const char*) QtSupport::toCharString(env, exeName, &_qstring_exeName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileShare_isDirectoryShared(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) KFileShareJBridge::isDirectoryShared((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileShare_isRestricted(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileShareJBridge::isRestricted();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileShare_nfsEnabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileShareJBridge::nfsEnabled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileShare_readConfig(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KFileShareJBridge::readConfig();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFileShare_readShareList(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KFileShareJBridge::readShareList();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileShare_sambaEnabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileShareJBridge::sambaEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileShare_setShared(JNIEnv* env, jclass cls, jstring path, jboolean shared)
{
	(void) cls;
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) KFileShareJBridge::setShared((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (bool) shared);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KFileShare_shareMode(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KFileShareJBridge::shareMode();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFileShare_sharingEnabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileShareJBridge::sharingEnabled();
	return xret;
}

