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

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

class KFolderTypeJBridge : public KFolderType
{
public:
	KFolderTypeJBridge(KDesktopFile* arg1) : KFolderType(arg1) {};
	KFolderTypeJBridge(TQDataStream& arg1,int arg2) : KFolderType(arg1,arg2) {};
	~KFolderTypeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFolderType_comment__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _url, jboolean _is_local)
{
	TQString  _qstring;
static TQString* _qstring__url = 0;
	_qstring = ((KFolderType*) QtSupport::getQt(env, obj))->comment((const TQString&)*(TQString*) QtSupport::toTQString(env, _url, &_qstring__url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFolderType_comment__Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject _url, jboolean _is_local)
{
	TQString  _qstring;
	_qstring = ((KFolderType*) QtSupport::getQt(env, obj))->comment((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFolderType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFolderType_finalize(env, obj);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFolderType_icon__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _url, jboolean _is_local)
{
	TQString  _qstring;
static TQString* _qstring__url = 0;
	_qstring = ((KFolderType*) QtSupport::getQt(env, obj))->icon((const TQString&)*(TQString*) QtSupport::toTQString(env, _url, &_qstring__url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KFolderType_icon__Lorg_trinitydesktop_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject _url, jboolean _is_local)
{
	TQString  _qstring;
	_qstring = ((KFolderType*) QtSupport::getQt(env, obj))->icon((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _is_local);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFolderType_newKFolderType__Lorg_trinitydesktop_qt_QDataStream_2I(JNIEnv* env, jobject obj, jobject _str, jint offset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFolderTypeJBridge((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, _str), (int) offset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

