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

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

class KCModuleInfoJBridge : public KCModuleInfo
{
public:
	KCModuleInfoJBridge(const TQString& arg1) : KCModuleInfo(arg1) {};
	KCModuleInfoJBridge(const KCModuleInfo& arg1) : KCModuleInfo(arg1) {};
	KCModuleInfoJBridge() : KCModuleInfo() {};
	void protected_setKeywords(const TQStringList& arg1) {
		KCModuleInfo::setKeywords(arg1);
		return;
	}
	void protected_setName(const TQString& arg1) {
		KCModuleInfo::setName(arg1);
		return;
	}
	void protected_setComment(const TQString& arg1) {
		KCModuleInfo::setComment(arg1);
		return;
	}
	void protected_setIcon(const TQString& arg1) {
		KCModuleInfo::setIcon(arg1);
		return;
	}
	void protected_setLibrary(const TQString& arg1) {
		KCModuleInfo::setLibrary(arg1);
		return;
	}
	void protected_setHandle(const TQString& arg1) {
		KCModuleInfo::setHandle(arg1);
		return;
	}
	void protected_setWeight(int arg1) {
		KCModuleInfo::setWeight(arg1);
		return;
	}
	void protected_setNeedsTest(bool arg1) {
		KCModuleInfo::setNeedsTest(arg1);
		return;
	}
	void protected_setNeedsRootPrivileges(bool arg1) {
		KCModuleInfo::setNeedsRootPrivileges(arg1);
		return;
	}
	void protected_setDocPath(const TQString& arg1) {
		KCModuleInfo::setDocPath(arg1);
		return;
	}
	void protected_loadAll() {
		KCModuleInfo::loadAll();
		return;
	}
	~KCModuleInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_comment(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->comment();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KCModuleInfo_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_docPath(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->docPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_factoryName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->factoryName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_fileName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->fileName();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_handle(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->handle();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_icon(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->icon();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleInfo_keywords(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KCModuleInfo*) QtSupport::getQt(env, obj))->keywords();
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_library(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->library();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_loadAll(JNIEnv* env, jobject obj)
{
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_loadAll();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_moduleName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KCModuleInfo*) QtSupport::getQt(env, obj))->moduleName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCModuleInfo_needsRootPrivileges(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KCModuleInfo*) QtSupport::getQt(env, obj))->needsRootPrivileges();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCModuleInfo_needsTest(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KCModuleInfo*) QtSupport::getQt(env, obj))->needsTest();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_newKCModuleInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring desktopFile)
{
static TQString* _qstring_desktopFile = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCModuleInfoJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, desktopFile, &_qstring_desktopFile)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_newKCModuleInfo__Lorg_kde_koala_KCModuleInfo_2(JNIEnv* env, jobject obj, jobject rhs)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCModuleInfoJBridge((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, rhs)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setComment(JNIEnv* env, jobject obj, jstring comment)
{
static TQString* _qstring_comment = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setComment((const TQString&)*(TQString*) QtSupport::toQString(env, comment, &_qstring_comment));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setDocPath(JNIEnv* env, jobject obj, jstring p)
{
static TQString* _qstring_p = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setDocPath((const TQString&)*(TQString*) QtSupport::toQString(env, p, &_qstring_p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setHandle(JNIEnv* env, jobject obj, jstring handle)
{
static TQString* _qstring_handle = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setHandle((const TQString&)*(TQString*) QtSupport::toQString(env, handle, &_qstring_handle));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setIcon(JNIEnv* env, jobject obj, jstring icon)
{
static TQString* _qstring_icon = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setIcon((const TQString&)*(TQString*) QtSupport::toQString(env, icon, &_qstring_icon));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setKeywords(JNIEnv* env, jobject obj, jobjectArray keyword)
{
static TQStringList* _qlist_keyword = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setKeywords((const TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, keyword, &_qlist_keyword));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setLibrary(JNIEnv* env, jobject obj, jstring lib)
{
static TQString* _qstring_lib = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setLibrary((const TQString&)*(TQString*) QtSupport::toQString(env, lib, &_qstring_lib));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setName(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setName((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setNeedsRootPrivileges(JNIEnv* env, jobject obj, jboolean needsRootPrivileges)
{
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setNeedsRootPrivileges((bool) needsRootPrivileges);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setNeedsTest(JNIEnv* env, jobject obj, jboolean val)
{
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setNeedsTest((bool) val);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setWeight(JNIEnv* env, jobject obj, jint weight)
{
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setWeight((int) weight);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCModuleInfo_weight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KCModuleInfo*) QtSupport::getQt(env, obj))->weight();
	return xret;
}

