/***************************************************************************
                            kde_ListJob.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_ListJob.h"
}

#include <kio/jobclasses.h>

class ListJobBridge : public KIO::ListJob
{
public:
	ListJobBridge(const KURL& url, bool showProgressInfo, bool recursive, QString prefix, bool includeHidden) : ListJob(url, showProgressInfo, recursive, prefix, includeHidden) {}
	void protected_slotFinished() {
		ListJob::slotFinished();
		return;
	}
	void protected_slotResult(KIO::Job* job) {
		ListJob::slotResult(job);
		return;
	}
	void protected_slotListEntries(const KIO::UDSEntryList& list) {
		ListJob::slotListEntries(list);
		return;
	}
	void protected_slotRedirection(const KURL& url) {
		ListJob::slotRedirection(url);
		return;
	}
	void protected_gotEntries(KIO::Job* subjob, const KIO::UDSEntryList& list) {
		ListJob::gotEntries(subjob, list);
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

kde_ListJob * kde_new_ListJob(kde_KURL* url, int showProgressInfo, int recursive, qt_QString * prefix, int includeHidden){
	return (kde_ListJob *) new ListJobBridge((KURL&)* (KURL*)url, (bool)showProgressInfo, (bool)recursive, (QString)* (QString*)prefix, (bool)includeHidden);
}
void kde_ListJob_start( kde_ListJob* instPointer,kde_Slave* slave){
	((ListJobBridge*)instPointer)->start((KIO::Slave*)slave);
	return;
}
void kde_ListJob_slotFinished( kde_ListJob* instPointer){
	((ListJobBridge*)instPointer)->protected_slotFinished();
	return;
}
void kde_ListJob_slotResult( kde_ListJob* instPointer,kde_Job* job){
	((ListJobBridge*)instPointer)->protected_slotResult((KIO::Job*)job);
	return;
}
//void kde_ListJob_slotListEntries( kde_ListJob* instPointer,kde_UDSEntryList* list){
//	((ListJobBridge*)instPointer)->protected_slotListEntries((KIO::UDSEntryList&)* (KIO::UDSEntryList*)list);
//	return;
//}
void kde_ListJob_slotRedirection( kde_ListJob* instPointer,kde_KURL* url){
	((ListJobBridge*)instPointer)->protected_slotRedirection((KURL&)* (KURL*)url);
	return;
}
//void kde_ListJob_gotEntries( kde_ListJob* instPointer,kde_Job* subjob, kde_UDSEntryList* list){
//	((ListJobBridge*)instPointer)->protected_gotEntries((KIO::Job*)subjob, (KIO::UDSEntryList&)* (KIO::UDSEntryList*)list);
//	return;
//}
