/***************************************************************************
                            kde_KFileTreeBranch.cpp -  description
                             -------------------
    begin                : Tue Mar 19 20:11:49 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Mar 19 20:11:49 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_KFileTreeBranch.h"
}

#include <kfiletreebranch.h>

class KFileTreeBranchBridge : public KFileTreeBranch
{
public:
	KFileTreeBranchBridge(KFileTreeView* arg1, const KURL& url, const QString& name, const QPixmap& pix, bool showHidden, KFileTreeViewItem* branchRoot) : KFileTreeBranch(arg1, url, name, pix, showHidden, branchRoot) {}
	 KFileTreeViewItem * protected_createTreeViewItem(KFileTreeViewItem* parent, KFileItem* fileItem) {
		return ( KFileTreeViewItem *) KFileTreeBranch::createTreeViewItem(parent, fileItem);
	}
	 KFileTreeViewItem * protected_findTVIByURL(const KURL& arg1) {
		return ( KFileTreeViewItem *) KFileTreeBranch::findTVIByURL(arg1);
	}
	void protected_virtual_hook(int id, void* data) {
		KFileTreeBranch::virtual_hook(id, data);
		return;
	}
};

kde_KFileTreeBranch * kde_new_KFileTreeBranch(kde_KFileTreeView* arg1, kde_KURL* url, qt_QString * name, qt_QPixmap * pix, int showHidden, kde_KFileTreeViewItem* branchRoot){
	return (kde_KFileTreeBranch *) new KFileTreeBranchBridge((KFileTreeView*)arg1, (KURL&)* (KURL*)url, (QString&)* (QString*)name, (QPixmap&)* (QPixmap*)pix, (bool)showHidden, (KFileTreeViewItem*)branchRoot);
}
kde_KURL* kde_KFileTreeBranch_rootUrl( kde_KFileTreeBranch* instPointer){
	return (kde_KURL*)new KURL(((KFileTreeBranchBridge*)instPointer)->rootUrl());
}
void kde_KFileTreeBranch_setRoot( kde_KFileTreeBranch* instPointer,kde_KFileTreeViewItem* r){
	((KFileTreeBranchBridge*)instPointer)->setRoot((KFileTreeViewItem*)r);
	return;
}
kde_KFileTreeViewItem* kde_KFileTreeBranch_root( kde_KFileTreeBranch* instPointer){
	return (kde_KFileTreeViewItem*) ((KFileTreeBranchBridge*)instPointer)->root();
}
qt_QString * kde_KFileTreeBranch_name( kde_KFileTreeBranch* instPointer){
	return (qt_QString *)new QString(((KFileTreeBranchBridge*)instPointer)->name());
}
void kde_KFileTreeBranch_setName( kde_KFileTreeBranch* instPointer,qt_QString * n){
	((KFileTreeBranchBridge*)instPointer)->setName((QString)* (QString*)n);
	return;
}
qt_QPixmap * kde_KFileTreeBranch_pixmap( kde_KFileTreeBranch* instPointer){
	return (qt_QPixmap *) (const QPixmap *)&((KFileTreeBranchBridge*)instPointer)->pixmap();
}
qt_QPixmap * kde_KFileTreeBranch_openPixmap( kde_KFileTreeBranch* instPointer){
	return (qt_QPixmap *) (const QPixmap *)&((KFileTreeBranchBridge*)instPointer)->openPixmap();
}
int kde_KFileTreeBranch_showExtensions( kde_KFileTreeBranch* instPointer){
	return (int) ((KFileTreeBranchBridge*)instPointer)->showExtensions();
}
void kde_KFileTreeBranch_setOpen( kde_KFileTreeBranch* instPointer,int setopen){
	((KFileTreeBranchBridge*)instPointer)->setOpen((bool)setopen);
	return;
}
void kde_KFileTreeBranch_setChildRecurse( kde_KFileTreeBranch* instPointer,int t){
	((KFileTreeBranchBridge*)instPointer)->setChildRecurse((bool)t);
	return;
}
int kde_KFileTreeBranch_childRecurse( kde_KFileTreeBranch* instPointer){
	return (int) ((KFileTreeBranchBridge*)instPointer)->childRecurse();
}
int kde_KFileTreeBranch_populate( kde_KFileTreeBranch* instPointer,kde_KURL* url, kde_KFileTreeViewItem* currItem){
	return (int) ((KFileTreeBranchBridge*)instPointer)->populate((KURL&)* (KURL*)url, (KFileTreeViewItem*)currItem);
}
void kde_KFileTreeBranch_setShowExtensions( kde_KFileTreeBranch* instPointer,int visible){
	((KFileTreeBranchBridge*)instPointer)->setShowExtensions((bool)visible);
	return;
}
void kde_KFileTreeBranch_setOpenPixmap( kde_KFileTreeBranch* instPointer,qt_QPixmap * pix){
	((KFileTreeBranchBridge*)instPointer)->setOpenPixmap((QPixmap&)* (QPixmap*)pix);
	return;
}
kde_KFileTreeViewItem* kde_KFileTreeBranch_createTreeViewItem( kde_KFileTreeBranch* instPointer,kde_KFileTreeViewItem* parent, kde_KFileItem* fileItem){
	return (kde_KFileTreeViewItem*) ((KFileTreeBranchBridge*)instPointer)->protected_createTreeViewItem((KFileTreeViewItem*)parent, (KFileItem*)fileItem);
}
kde_KFileTreeViewItem* kde_KFileTreeBranch_findTVIByURL( kde_KFileTreeBranch* instPointer,kde_KURL* arg1){
	return (kde_KFileTreeViewItem*) ((KFileTreeBranchBridge*)instPointer)->protected_findTVIByURL((KURL&)* (KURL*)arg1);
}
void kde_KFileTreeBranch_virtual_hook( kde_KFileTreeBranch* instPointer,int identifier, void* data){
	((KFileTreeBranchBridge*)instPointer)->protected_virtual_hook((int)identifier, (void*)data);
	return;
}
