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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KDataToolInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KDataToolInfo_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDataToolInfo_iconName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KDataToolInfo*) QtSupport::getQt(env, obj))->iconName();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDataToolInfo_newKDataToolInfo__Lorg_trinitydesktop_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_trinitydesktop_koala_KDataToolInfo_userCommands(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KDataToolInfo*) QtSupport::getQt(env, obj))->userCommands();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

