/***************************************************************************
                            kde_KFileListViewItem.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_KFileListViewItem.h"
}

#include <kfiledetailview.h>

class KFileListViewItemBridge : public KFileListViewItem
{
public:
	KFileListViewItemBridge(QListView* parent, const QString& text, const QPixmap& icon, KFileItem* fi) : KFileListViewItem(parent, text, icon, fi) {}
	KFileListViewItemBridge(QListView* parent, const QString& text, const QPixmap& icon, KFileItem* fi, QListViewItem* after) : KFileListViewItem(parent, text, icon, fi, after) {}
	~KFileListViewItemBridge() {}
};

kde_KFileListViewItem * kde_new_KFileListViewItem(qt_QListView * parent, qt_QString * text, qt_QPixmap * icon, kde_KFileItem* fi){
	return (kde_KFileListViewItem *) new KFileListViewItemBridge((QListView*)parent, (QString&)* (QString*)text, (QPixmap&)* (QPixmap*)icon, (KFileItem*)fi);
}
kde_KFileListViewItem * kde_new_KFileListViewItem1(qt_QListView * parent, qt_QString * text, qt_QPixmap * icon, kde_KFileItem* fi, qt_QListViewItem * after){
	return (kde_KFileListViewItem *) new KFileListViewItemBridge((QListView*)parent, (QString&)* (QString*)text, (QPixmap&)* (QPixmap*)icon, (KFileItem*)fi, (QListViewItem*)after);
}
void kde_del_KFileListViewItem( kde_KFileListViewItem* p ){
	delete (KFileListViewItemBridge*) p;
}
kde_KFileItem* kde_KFileListViewItem_fileInfo( kde_KFileListViewItem* instPointer){
	return (kde_KFileItem*) ((KFileListViewItemBridge*)instPointer)->fileInfo();
}
qt_QString * kde_KFileListViewItem_key( kde_KFileListViewItem* instPointer,int arg1, int arg2){
	return (qt_QString *)new QString(((KFileListViewItemBridge*)instPointer)->key((int)arg1, (bool)arg2));
}
void kde_KFileListViewItem_setKey( kde_KFileListViewItem* instPointer,qt_QString * key){
	((KFileListViewItemBridge*)instPointer)->setKey((QString&)* (QString*)key);
	return;
}
qt_QRect* kde_KFileListViewItem_rect( kde_KFileListViewItem* instPointer){
	QRect _r= ((KFileListViewItemBridge*)instPointer)->rect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
