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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFolderType_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFolderType_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KFolderType_icon__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _url, jboolean _is_local)
{
	QString  _qstring;
static QString* _qstring__url = 0;
	_qstring = ((KFolderType*) QtSupport::getQt(env, obj))->icon((const QString&)*(QString*) QtSupport::toQString(env, _url, &_qstring__url), (bool) _is_local);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFolderType_newKFolderType__Lorg_kde_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_kde_koala_KFolderType_newKFolderType__Lorg_kde_qt_QDataStream_2I(JNIEnv* env, jobject obj, jobject _str, jint offset)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFolderTypeJBridge((QDataStream&)*(QDataStream*) QtSupport::getQt(env, _str), (int) offset));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

