/***************************************************************************
                            kde_KAppTreeListItem.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_KAppTreeListItem.h"
}

#include <kopenwith.h>

class KAppTreeListItemBridge : public KAppTreeListItem
{
public:
	KAppTreeListItemBridge(KListView* parent, const QString& name, const QPixmap& pixmap, bool parse, bool dir, QString p, QString c) : KAppTreeListItem(parent, name, pixmap, parse, dir, p, c) {}
	KAppTreeListItemBridge(QListViewItem* parent, const QString& name, const QPixmap& pixmap, bool parse, bool dir, QString p, QString c) : KAppTreeListItem(parent, name, pixmap, parse, dir, p, c) {}
	QString  protected_key(int column, bool ascending) {
		return (QString ) KAppTreeListItem::key(column, ascending);
	}
	void protected_init(const QPixmap& pixmap, bool parse, bool dir, QString _path, QString exec) {
		KAppTreeListItem::init(pixmap, parse, dir, _path, exec);
		return;
	}
	void protected_activate() {
		KAppTreeListItem::activate();
		return;
	}
	void protected_setOpen(bool o) {
		KAppTreeListItem::setOpen(o);
		return;
	}
};

kde_KAppTreeListItem * kde_new_KAppTreeListItem(kde_KListView* parent, qt_QString * name, qt_QPixmap * pixmap, int parse, int dir, qt_QString * p, qt_QString * c){
	return (kde_KAppTreeListItem *) new KAppTreeListItemBridge((KListView*)parent, (QString&)* (QString*)name, (QPixmap&)* (QPixmap*)pixmap, (bool)parse, (bool)dir, (QString)* (QString*)p, (QString)* (QString*)c);
}
kde_KAppTreeListItem * kde_new_KAppTreeListItem1(qt_QListViewItem * parent, qt_QString * name, qt_QPixmap * pixmap, int parse, int dir, qt_QString * p, qt_QString * c){
	return (kde_KAppTreeListItem *) new KAppTreeListItemBridge((QListViewItem*)parent, (QString&)* (QString*)name, (QPixmap&)* (QPixmap*)pixmap, (bool)parse, (bool)dir, (QString)* (QString*)p, (QString)* (QString*)c);
}
int kde_KAppTreeListItem_isDirectory( kde_KAppTreeListItem* instPointer){
	return (int) ((KAppTreeListItemBridge*)instPointer)->isDirectory();
}
qt_QString * kde_KAppTreeListItem_key( kde_KAppTreeListItem* instPointer,int column, int ascending){
	return (qt_QString *)new QString(((KAppTreeListItemBridge*)instPointer)->protected_key((int)column, (bool)ascending));
}
void kde_KAppTreeListItem_init( kde_KAppTreeListItem* instPointer,qt_QPixmap * pixmap, int parse, int dir, qt_QString * _path, qt_QString * exec){
	((KAppTreeListItemBridge*)instPointer)->protected_init((QPixmap&)* (QPixmap*)pixmap, (bool)parse, (bool)dir, (QString)* (QString*)_path, (QString)* (QString*)exec);
	return;
}
void kde_KAppTreeListItem_activate( kde_KAppTreeListItem* instPointer){
	((KAppTreeListItemBridge*)instPointer)->protected_activate();
	return;
}
void kde_KAppTreeListItem_setOpen( kde_KAppTreeListItem* instPointer,int o){
	((KAppTreeListItemBridge*)instPointer)->protected_setOpen((bool)o);
	return;
}
