/***************************************************************************
                            kde_KFileView.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KFileView.h"
}

#include <kfileview.h>

void kde_del_KFileView( kde_KFileView* p ){
	delete (KFileView*) p;
}
void kde_KFileView_addItemList( kde_KFileView* instPointer,kde_KFileItemList* list){
	((KFileView*)instPointer)->addItemList((KFileItemList&)* (KFileItemList*)list);
	return;
}
qt_QWidget * kde_KFileView_widget( kde_KFileView* instPointer){
	return (qt_QWidget *) ((KFileView*)instPointer)->widget();
}
qt_QWidget * kde_KFileView_widget1( kde_KFileView* instPointer){
	return (qt_QWidget *) ((KFileView*)instPointer)->widget();
}
void kde_KFileView_setCurrentItem( kde_KFileView* instPointer,qt_QString * filename){
	((KFileView*)instPointer)->setCurrentItem((QString&)* (QString*)filename);
	return;
}
void kde_KFileView_setCurrentItem1( kde_KFileView* instPointer,kde_KFileItem* item){
	((KFileView*)instPointer)->setCurrentItem((KFileItem*)item);
	return;
}
kde_KFileItem* kde_KFileView_currentFileItem( kde_KFileView* instPointer){
	return (kde_KFileItem*) ((KFileView*)instPointer)->currentFileItem();
}
void kde_KFileView_clear( kde_KFileView* instPointer){
	((KFileView*)instPointer)->clear();
	return;
}
void kde_KFileView_updateView( kde_KFileView* instPointer,int f){
	((KFileView*)instPointer)->updateView((bool)f);
	return;
}
void kde_KFileView_updateView1( kde_KFileView* instPointer,kde_KFileItem* arg1){
	((KFileView*)instPointer)->updateView((KFileItem*)arg1);
	return;
}
void kde_KFileView_removeItem( kde_KFileView* instPointer,kde_KFileItem* item){
	((KFileView*)instPointer)->removeItem((KFileItem*)item);
	return;
}
void kde_KFileView_listingCompleted( kde_KFileView* instPointer){
	((KFileView*)instPointer)->listingCompleted();
	return;
}
int kde_KFileView_sorting( kde_KFileView* instPointer){
	return (int) ((KFileView*)instPointer)->sorting();
}
void kde_KFileView_setSorting( kde_KFileView* instPointer,int sort){
	((KFileView*)instPointer)->setSorting((QDir::SortSpec)sort);
	return;
}
int kde_KFileView_isReversed( kde_KFileView* instPointer){
	return (int) ((KFileView*)instPointer)->isReversed();
}
void kde_KFileView_sortReversed( kde_KFileView* instPointer){
	((KFileView*)instPointer)->sortReversed();
	return;
}
unsigned int kde_KFileView_count( kde_KFileView* instPointer){
	return (unsigned int) ((KFileView*)instPointer)->count();
}
unsigned int kde_KFileView_numFiles( kde_KFileView* instPointer){
	return (unsigned int) ((KFileView*)instPointer)->numFiles();
}
unsigned int kde_KFileView_numDirs( kde_KFileView* instPointer){
	return (unsigned int) ((KFileView*)instPointer)->numDirs();
}
void kde_KFileView_setSelectionMode( kde_KFileView* instPointer,int sm){
	((KFileView*)instPointer)->setSelectionMode((KFile::SelectionMode)sm);
	return;
}
int kde_KFileView_selectionMode( kde_KFileView* instPointer){
	return (int) ((KFileView*)instPointer)->selectionMode();
}
void kde_KFileView_setViewMode( kde_KFileView* instPointer,int vm){
	((KFileView*)instPointer)->setViewMode((KFileView::ViewMode)vm);
	return;
}
int kde_KFileView_viewMode( kde_KFileView* instPointer){
	return (int) ((KFileView*)instPointer)->viewMode();
}
qt_QString * kde_KFileView_viewName( kde_KFileView* instPointer){
	return (qt_QString *)new QString(((KFileView*)instPointer)->viewName());
}
void kde_KFileView_setViewName( kde_KFileView* instPointer,qt_QString * name){
	((KFileView*)instPointer)->setViewName((QString&)* (QString*)name);
	return;
}
void kde_KFileView_setParentView( kde_KFileView* instPointer,kde_KFileView* parent){
	((KFileView*)instPointer)->setParentView((KFileView*)parent);
	return;
}
void kde_KFileView_insertItem( kde_KFileView* instPointer,kde_KFileItem* i){
	((KFileView*)instPointer)->insertItem((KFileItem*)i);
	return;
}
void kde_KFileView_clearView( kde_KFileView* instPointer){
	((KFileView*)instPointer)->clearView();
	return;
}
void kde_KFileView_ensureItemVisible( kde_KFileView* instPointer,kde_KFileItem* i){
	((KFileView*)instPointer)->ensureItemVisible((KFileItem*)i);
	return;
}
void kde_KFileView_clearSelection( kde_KFileView* instPointer){
	((KFileView*)instPointer)->clearSelection();
	return;
}
void kde_KFileView_selectAll( kde_KFileView* instPointer){
	((KFileView*)instPointer)->selectAll();
	return;
}
void kde_KFileView_invertSelection( kde_KFileView* instPointer){
	((KFileView*)instPointer)->invertSelection();
	return;
}
void kde_KFileView_setSelected( kde_KFileView* instPointer,kde_KFileItem* arg1, int enable){
	((KFileView*)instPointer)->setSelected((KFileItem*)arg1, (bool)enable);
	return;
}
int kde_KFileView_isSelected( kde_KFileView* instPointer,kde_KFileItem* arg1){
	return (int) ((KFileView*)instPointer)->isSelected((KFileItem*)arg1);
}
kde_KFileItemList* kde_KFileView_selectedItems( kde_KFileView* instPointer){
	return (kde_KFileItemList*) ((KFileView*)instPointer)->selectedItems();
}
kde_KFileItemList* kde_KFileView_items( kde_KFileView* instPointer){
	return (kde_KFileItemList*) ((KFileView*)instPointer)->items();
}
kde_KFileItem* kde_KFileView_firstFileItem( kde_KFileView* instPointer){
	return (kde_KFileItem*) ((KFileView*)instPointer)->firstFileItem();
}
kde_KFileItem* kde_KFileView_nextItem( kde_KFileView* instPointer,kde_KFileItem* arg1){
	return (kde_KFileItem*) ((KFileView*)instPointer)->nextItem((KFileItem*)arg1);
}
kde_KFileItem* kde_KFileView_prevItem( kde_KFileView* instPointer,kde_KFileItem* arg1){
	return (kde_KFileItem*) ((KFileView*)instPointer)->prevItem((KFileItem*)arg1);
}
void kde_KFileView_setOnlyDoubleClickSelectsFiles( kde_KFileView* instPointer,int enable){
	((KFileView*)instPointer)->setOnlyDoubleClickSelectsFiles((bool)enable);
	return;
}
int kde_KFileView_onlyDoubleClickSelectsFiles( kde_KFileView* instPointer){
	return (int) ((KFileView*)instPointer)->onlyDoubleClickSelectsFiles();
}
int kde_KFileView_updateNumbers( kde_KFileView* instPointer,kde_KFileItem* i){
	return (int) ((KFileView*)instPointer)->updateNumbers((KFileItem*)i);
}
kde_KActionCollection* kde_KFileView_actionCollection( kde_KFileView* instPointer){
	return (kde_KActionCollection*) ((KFileView*)instPointer)->actionCollection();
}
kde_KFileViewSignaler* kde_KFileView_signaler( kde_KFileView* instPointer){
	return (kde_KFileViewSignaler*) ((KFileView*)instPointer)->signaler();
}
void kde_KFileView_readConfig( kde_KFileView* instPointer,kde_KConfig* arg1, qt_QString * group){
	((KFileView*)instPointer)->readConfig((KConfig*)arg1, (QString&)* (QString*)group);
	return;
}
void kde_KFileView_writeConfig( kde_KFileView* instPointer,kde_KConfig* arg1, qt_QString * group){
	((KFileView*)instPointer)->writeConfig((KConfig*)arg1, (QString&)* (QString*)group);
	return;
}
qt_QString * kde_KFileView_sortingKey( qt_QString * value, int isDir, int sortSpec){
	return (qt_QString *)new QString(KFileView::sortingKey((QString&)* (QString*)value, (bool)isDir, (int)sortSpec));
}
qt_QString * kde_KFileView_sortingKey1( KIO::filesize_t value, int isDir, int sortSpec){
	return (qt_QString *)new QString(KFileView::sortingKey((KIO::filesize_t)value, (bool)isDir, (int)sortSpec));
}
