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

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

class KDataToolInfoJBridge : public KDataToolInfo
{
public:
	KDataToolInfoJBridge() : KDataToolInfo() {};
	KDataToolInfoJBridge(const KDataToolInfo& arg1) : KDataToolInfo(arg1) {};
	~KDataToolInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_commands(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KDataToolInfo*) QtSupport::getQt(env, obj))->commands();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_createTool__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDataToolInfo*) QtSupport::getQt(env, obj))->createTool(), "org.kde.koala.KDataTool");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_createTool__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDataToolInfo*) QtSupport::getQt(env, obj))->createTool((QObject*) QtSupport::getQt(env, parent)), "org.kde.koala.KDataTool");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_createTool__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDataToolInfo*) QtSupport::getQt(env, obj))->createTool((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KDataTool");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDataToolInfo_dataType(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KDataToolInfo*) QtSupport::getQt(env, obj))->dataType();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDataToolInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KDataToolInfo_finalize(env, obj);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDataToolInfo_iconName(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KDataToolInfo*) QtSupport::getQt(env, obj))->iconName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_instance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDataToolInfo*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDataToolInfo_isReadOnly(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDataToolInfo*) QtSupport::getQt(env, obj))->isReadOnly();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDataToolInfo_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDataToolInfo*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_mimeTypes(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KDataToolInfo*) QtSupport::getQt(env, obj))->mimeTypes();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDataToolInfo_newKDataToolInfo__Lorg_kde_koala_KDataToolInfo_2(JNIEnv* env, jobject obj, jobject info)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KDataToolInfoJBridge((const KDataToolInfo&)*(const KDataToolInfo*) QtSupport::getQt(env, info)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDataToolInfo_userCommands(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KDataToolInfo*) QtSupport::getQt(env, obj))->userCommands();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

