//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/global.h>
#include <kfilemetainfo.h>
#include <qpixmap.h>
#include <kfileitem.h>
#include <kmimetype.h>
#include <qstring.h>
#include <kurl.h>

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

class KFileItemJBridge : public KFileItem
{
public:
	KFileItemJBridge(mode_t arg1,mode_t arg2,const KURL& arg3,bool arg4) : KFileItem(arg1,arg2,arg3,arg4) {};
	KFileItemJBridge(mode_t arg1,mode_t arg2,const KURL& arg3) : KFileItem(arg1,arg2,arg3) {};
	KFileItemJBridge(const KURL& arg1,const QString& arg2,mode_t arg3) : KFileItem(arg1,arg2,arg3) {};
	KFileItemJBridge(const KFileItem& arg1) : KFileItem(arg1) {};
	void protected_init(bool arg1) {
		KFileItem::init(arg1);
		return;
	}
	void protected_readUDSEntry(bool arg1) {
		KFileItem::readUDSEntry(arg1);
		return;
	}
	QString protected_parsePermissions(mode_t arg1) {
		return (QString) KFileItem::parsePermissions(arg1);
	}
	~KFileItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_acceptsDrops(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->acceptsDrops();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_assign(JNIEnv* env, jobject obj, jobject item)
{
	((KFileItem*) QtSupport::getQt(env, obj))->assign((const KFileItem&)*(const KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_cmp(JNIEnv* env, jobject obj, jobject item)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->cmp((const KFileItem&)*(const KFileItem*) QtSupport::getQt(env, item));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFileItem_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileItem_getToolTipText__I(JNIEnv* env, jobject obj, jint maxcount)
{
	QString  _qstring;
	_qstring = ((KFileItem*) QtSupport::getQt(env, obj))->getToolTipText((int) maxcount);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_hasExtendedACL(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->hasExtendedACL();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_init(JNIEnv* env, jobject obj, jboolean _determineMimeTypeOnDemand)
{
	((KFileItemJBridge*) QtSupport::getQt(env, obj))->protected_init((bool) _determineMimeTypeOnDemand);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isDir(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isDir();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isHidden(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isHidden();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isLink(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isLink();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isLocalFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isLocalFile();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isMarked(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isMarked();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isMimeTypeKnown(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isMimeTypeKnown();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isReadable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isReadable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileItem_isWritable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileItem*) QtSupport::getQt(env, obj))->isWritable();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_mark(JNIEnv* env, jobject obj)
{
	((KFileItem*) QtSupport::getQt(env, obj))->mark();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_metaInfo__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KFileMetaInfo *) &((KFileItem*) QtSupport::getQt(env, obj))->metaInfo(), "org.kde.koala.KFileMetaInfo");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_metaInfo__Z(JNIEnv* env, jobject obj, jboolean autoget)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KFileMetaInfo *) &((KFileItem*) QtSupport::getQt(env, obj))->metaInfo((bool) autoget), "org.kde.koala.KFileMetaInfo");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_metaInfo__ZI(JNIEnv* env, jobject obj, jboolean autoget, jint what)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KFileMetaInfo *) &((KFileItem*) QtSupport::getQt(env, obj))->metaInfo((bool) autoget, (int) what), "org.kde.koala.KFileMetaInfo");
	return xret;
}

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

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KFileItem_mode(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KFileItem*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_mostLocalURL(JNIEnv* env, jobject obj, jboolean local)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KFileItem*) QtSupport::getQt(env, obj))->mostLocalURL((bool&) local)), "org.kde.koala.KURL", TRUE);
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileItem_name__Z(JNIEnv* env, jobject obj, jboolean lowerCase)
{
	QString  _qstring;
	_qstring = ((KFileItem*) QtSupport::getQt(env, obj))->name((bool) lowerCase);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_newKFileItem__JJLorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jlong _mode, jlong _permissions, jobject _url)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileItemJBridge((mode_t) _mode, (mode_t) _permissions, (const KURL&)*(const KURL*) QtSupport::getQt(env, _url)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_newKFileItem__JJLorg_kde_koala_KURL_2Z(JNIEnv* env, jobject obj, jlong _mode, jlong _permissions, jobject _url, jboolean _determineMimeTypeOnDemand)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileItemJBridge((mode_t) _mode, (mode_t) _permissions, (const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _determineMimeTypeOnDemand));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_newKFileItem__Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject item)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileItemJBridge((const KFileItem&)*(const KFileItem*) QtSupport::getQt(env, item)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_newKFileItem__Lorg_kde_koala_KURL_2Ljava_lang_String_2J(JNIEnv* env, jobject obj, jobject url, jstring mimeType, jlong mode)
{
static QString* _qstring_mimeType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileItemJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const QString&)*(QString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType), (mode_t) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileItem_overlays(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileItem*) QtSupport::getQt(env, obj))->overlays();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileItem_parsePermissions(JNIEnv* env, jobject obj, jlong perm)
{
	QString  _qstring;
	_qstring = ((KFileItemJBridge*) QtSupport::getQt(env, obj))->protected_parsePermissions((mode_t) perm);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KFileItem_permissions(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KFileItem*) QtSupport::getQt(env, obj))->permissions();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_pixmap__I(JNIEnv* env, jobject obj, jint _size)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KFileItem*) QtSupport::getQt(env, obj))->pixmap((int) _size)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_pixmap__II(JNIEnv* env, jobject obj, jint _size, jint _state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((KFileItem*) QtSupport::getQt(env, obj))->pixmap((int) _size, (int) _state)), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_readUDSEntry(JNIEnv* env, jobject obj, jboolean _urlIsDirectory)
{
	((KFileItemJBridge*) QtSupport::getQt(env, obj))->protected_readUDSEntry((bool) _urlIsDirectory);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_refreshMimeType(JNIEnv* env, jobject obj)
{
	((KFileItem*) QtSupport::getQt(env, obj))->refreshMimeType();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_refresh(JNIEnv* env, jobject obj)
{
	((KFileItem*) QtSupport::getQt(env, obj))->refresh();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_run(JNIEnv* env, jobject obj)
{
	((KFileItem*) QtSupport::getQt(env, obj))->run();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_setFileMode(JNIEnv* env, jobject obj, jlong m)
{
	((KFileItem*) QtSupport::getQt(env, obj))->setFileMode((mode_t) m);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_setMetaInfo(JNIEnv* env, jobject obj, jobject info)
{
	((KFileItem*) QtSupport::getQt(env, obj))->setMetaInfo((const KFileMetaInfo&)*(const KFileMetaInfo*) QtSupport::getQt(env, info));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_setMimeType(JNIEnv* env, jobject obj, jstring mimetype)
{
static QString* _qstring_mimetype = 0;
	((KFileItem*) QtSupport::getQt(env, obj))->setMimeType((const QString&)*(QString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_setName(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((KFileItem*) QtSupport::getQt(env, obj))->setName((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_setURL(JNIEnv* env, jobject obj, jobject url)
{
	((KFileItem*) QtSupport::getQt(env, obj))->setURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KFileItem_size__(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KFileItem*) QtSupport::getQt(env, obj))->size();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KFileItem_size__Z(JNIEnv* env, jobject obj, jboolean hasSize)
{
	jlong xret = (jlong) ((KFileItem*) QtSupport::getQt(env, obj))->size((bool&) hasSize);
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileItem_timeString__I(JNIEnv* env, jobject obj, jint which)
{
	QString  _qstring;
	_qstring = ((KFileItem*) QtSupport::getQt(env, obj))->timeString((unsigned int) which);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileItem_time__I(JNIEnv* env, jobject obj, jint which)
{
	jint xret = (jint) ((KFileItem*) QtSupport::getQt(env, obj))->time((unsigned int) which);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileItem_time__IZ(JNIEnv* env, jobject obj, jint which, jboolean hasTime)
{
	jint xret = (jint) ((KFileItem*) QtSupport::getQt(env, obj))->time((unsigned int) which, (bool&) hasTime);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileItem_unmark(JNIEnv* env, jobject obj)
{
	((KFileItem*) QtSupport::getQt(env, obj))->unmark();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileItem_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KURL *) &((KFileItem*) QtSupport::getQt(env, obj))->url(), "org.kde.koala.KURL");
	return xret;
}

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

