//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdir.h>
#include <kio/global.h>
#include <kfileview.h>
#include <kparts/browserextension.h>
#include <qstring.h>
#include <kfile.h>

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_actionCollection(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileView*) QtSupport::getQt(env, obj))->actionCollection(), "org.kde.koala.KActionCollection");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_addItemList(JNIEnv* env, jobject obj, jobjectArray list)
{
static KFileItemList* _qlist_list = 0;
	((KFileView*) QtSupport::getQt(env, obj))->addItemList((const KFileItemList&)*(QStrList*) KDESupport::toKFileItemList(env, list, &_qlist_list));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_autoOpenDelay(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KFileView::autoOpenDelay();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_clearSelection(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->clearSelection();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_clearView(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->clearView();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_clear(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileView*) QtSupport::getQt(env, obj))->count();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_dropOptions(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileView*) QtSupport::getQt(env, obj))->dropOptions();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_ensureItemVisible(JNIEnv* env, jobject obj, jobject i)
{
	((KFileView*) QtSupport::getQt(env, obj))->ensureItemVisible((const KFileItem*) QtSupport::getQt(env, i));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_insertItem(JNIEnv* env, jobject obj, jobject i)
{
	((KFileView*) QtSupport::getQt(env, obj))->insertItem((KFileItem*) QtSupport::getQt(env, i));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_invertSelection(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->invertSelection();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileView_isReversed(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileView*) QtSupport::getQt(env, obj))->isReversed();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileView_isSelected(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((KFileView*) QtSupport::getQt(env, obj))->isSelected((const KFileItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_items(JNIEnv* env, jobject obj)
{
	const KFileItemList*  _qlist;
	_qlist = ((KFileView*) QtSupport::getQt(env, obj))->items();
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList*) _qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_listingCompleted(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->listingCompleted();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_nextItem(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileView*) QtSupport::getQt(env, obj))->nextItem((const KFileItem*) QtSupport::getQt(env, arg1)), "org.kde.koala.KFileItem");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_numDirs(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileView*) QtSupport::getQt(env, obj))->numDirs();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_numFiles(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileView*) QtSupport::getQt(env, obj))->numFiles();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileView_onlyDoubleClickSelectsFiles(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KFileView*) QtSupport::getQt(env, obj))->onlyDoubleClickSelectsFiles();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_prevItem(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileView*) QtSupport::getQt(env, obj))->prevItem((const KFileItem*) QtSupport::getQt(env, arg1)), "org.kde.koala.KFileItem");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_readConfig__Lorg_kde_koala_KConfig_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((KFileView*) QtSupport::getQt(env, obj))->readConfig((KConfig*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_readConfig__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject arg1, jstring group)
{
static QString* _qstring_group = 0;
	((KFileView*) QtSupport::getQt(env, obj))->readConfig((KConfig*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_removeItem(JNIEnv* env, jobject obj, jobject item)
{
	((KFileView*) QtSupport::getQt(env, obj))->removeItem((const KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_selectAll(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->selectAll();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_selectedItems(JNIEnv* env, jobject obj)
{
	const KFileItemList*  _qlist;
	_qlist = ((KFileView*) QtSupport::getQt(env, obj))->selectedItems();
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList*) _qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setCurrentItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static QString* _qstring_filename = 0;
	((KFileView*) QtSupport::getQt(env, obj))->setCurrentItem((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setCurrentItem__Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject item)
{
	((KFileView*) QtSupport::getQt(env, obj))->setCurrentItem((const KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setDropOptions(JNIEnv* env, jobject obj, jint options)
{
	((KFileView*) QtSupport::getQt(env, obj))->setDropOptions((int) options);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setOnlyDoubleClickSelectsFiles(JNIEnv* env, jobject obj, jboolean enable)
{
	((KFileView*) QtSupport::getQt(env, obj))->setOnlyDoubleClickSelectsFiles((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setParentView(JNIEnv* env, jobject obj, jobject parent)
{
	((KFileView*) QtSupport::getQt(env, obj))->setParentView((KFileView*) QtSupport::getQt(env, parent));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setSelected(JNIEnv* env, jobject obj, jobject arg1, jboolean enable)
{
	((KFileView*) QtSupport::getQt(env, obj))->setSelected((const KFileItem*) QtSupport::getQt(env, arg1), (bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setSelectionMode(JNIEnv* env, jobject obj, jint sm)
{
	((KFileView*) QtSupport::getQt(env, obj))->setSelectionMode((KFile::SelectionMode) sm);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setSorting(JNIEnv* env, jobject obj, jint sort)
{
	((KFileView*) QtSupport::getQt(env, obj))->setSorting((QDir::SortSpec) sort);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_setViewMode(JNIEnv* env, jobject obj, jint vm)
{
	((KFileView*) QtSupport::getQt(env, obj))->setViewMode((KFileView::ViewMode) vm);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_signaler(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileView*) QtSupport::getQt(env, obj))->signaler(), "org.kde.koala.KFileViewSignaler");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_sortReversed(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->sortReversed();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileView_sortingKey__JZI(JNIEnv* env, jclass cls, jlong value, jboolean isDir, jint sortSpec)
{
	QString  _qstring;
	(void) cls;
	_qstring = KFileView::sortingKey((KIO::filesize_t) value, (bool) isDir, (int) sortSpec);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileView_sortingKey__Ljava_lang_String_2ZI(JNIEnv* env, jclass cls, jstring value, jboolean isDir, jint sortSpec)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_value = 0;
	_qstring = KFileView::sortingKey((const QString&)*(QString*) QtSupport::toQString(env, value, &_qstring_value), (bool) isDir, (int) sortSpec);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_sorting(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileView*) QtSupport::getQt(env, obj))->sorting();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileView_updateNumbers(JNIEnv* env, jobject obj, jobject i)
{
	jboolean xret = (jboolean) ((KFileView*) QtSupport::getQt(env, obj))->updateNumbers((const KFileItem*) QtSupport::getQt(env, i));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_updateView__(JNIEnv* env, jobject obj)
{
	((KFileView*) QtSupport::getQt(env, obj))->updateView();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_updateView__Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((KFileView*) QtSupport::getQt(env, obj))->updateView((const KFileItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_updateView__Z(JNIEnv* env, jobject obj, jboolean f)
{
	((KFileView*) QtSupport::getQt(env, obj))->updateView((bool) f);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileView_viewMode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KFileView*) QtSupport::getQt(env, obj))->viewMode();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileView_widget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KFileView*) QtSupport::getQt(env, obj))->widget(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_writeConfig__Lorg_kde_koala_KConfig_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((KFileView*) QtSupport::getQt(env, obj))->writeConfig((KConfig*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileView_writeConfig__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject arg1, jstring group)
{
static QString* _qstring_group = 0;
	((KFileView*) QtSupport::getQt(env, obj))->writeConfig((KConfig*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group));
	return;
}

