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

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

class KCModuleInfoJBridge : public KCModuleInfo
{
public:
	KCModuleInfoJBridge(const QString& arg1) : KCModuleInfo(arg1) {};
	KCModuleInfoJBridge(const KCModuleInfo& arg1) : KCModuleInfo(arg1) {};
	KCModuleInfoJBridge() : KCModuleInfo() {};
	void protected_setKeywords(const QStringList& arg1) {
		KCModuleInfo::setKeywords(arg1);
		return;
	}
	void protected_setName(const QString& arg1) {
		KCModuleInfo::setName(arg1);
		return;
	}
	void protected_setComment(const QString& arg1) {
		KCModuleInfo::setComment(arg1);
		return;
	}
	void protected_setIcon(const QString& arg1) {
		KCModuleInfo::setIcon(arg1);
		return;
	}
	void protected_setLibrary(const QString& arg1) {
		KCModuleInfo::setLibrary(arg1);
		return;
	}
	void protected_setHandle(const QString& 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 QString& 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)
{
	QString  _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)
{
	QString  _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)
{
	QString  _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)
{
	QString  _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)
{
	QString  _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)
{
	QString  _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)
{
	QStringList  _qlist;
	_qlist = ((KCModuleInfo*) QtSupport::getQt(env, obj))->keywords();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCModuleInfo_library(JNIEnv* env, jobject obj)
{
	QString  _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)
{
	QString  _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 QString* _qstring_desktopFile = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCModuleInfoJBridge((const QString&)*(QString*) 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 QString* _qstring_comment = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setComment((const QString&)*(QString*) QtSupport::toQString(env, comment, &_qstring_comment));
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleInfo_setName(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((KCModuleInfoJBridge*) QtSupport::getQt(env, obj))->protected_setName((const QString&)*(QString*) 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;
}

