/***************************************************************************
                            kde_StatJob.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_StatJob.h"
}

#include <kio/jobclasses.h>

class StatJobBridge : public KIO::StatJob
{
public:
	StatJobBridge(const KURL& url, int command, const QByteArray& packedArgs, bool showProgressInfo) : StatJob(url, command, packedArgs, showProgressInfo) {}
	void protected_slotStatEntry(const KIO::UDSEntry& entry) {
		StatJob::slotStatEntry(entry);
		return;
	}
	void protected_slotRedirection(const KURL& url) {
		StatJob::slotRedirection(url);
		return;
	}
	void protected_slotFinished() {
		StatJob::slotFinished();
		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_StatJob * kde_new_StatJob(kde_KURL* url, int command, qt_QByteArray* packedArgs, int showProgressInfo){
	return (kde_StatJob *) new StatJobBridge((KURL&)* (KURL*)url, (int)command, (QByteArray&)* (QByteArray*)packedArgs, (bool)showProgressInfo);
}
void kde_StatJob_setSide( kde_StatJob* instPointer,int source){
	((StatJobBridge*)instPointer)->setSide((bool)source);
	return;
}
void kde_StatJob_setDetails( kde_StatJob* instPointer,short int details){
	((StatJobBridge*)instPointer)->setDetails((short int)details);
	return;
}
//kde_UDSEntry* kde_StatJob_statResult( kde_StatJob* instPointer){
//	return (kde_UDSEntry*) (const UDSEntry *)&((StatJobBridge*)instPointer)->statResult();
//}
void kde_StatJob_start( kde_StatJob* instPointer,kde_Slave* slave){
	((StatJobBridge*)instPointer)->start((KIO::Slave*)slave);
	return;
}
//void kde_StatJob_slotStatEntry( kde_StatJob* instPointer,kde_UDSEntry* entry){
//	((StatJobBridge*)instPointer)->protected_slotStatEntry((KIO::UDSEntry&)* (KIO::UDSEntry*)entry);
//	return;
//}
void kde_StatJob_slotRedirection( kde_StatJob* instPointer,kde_KURL* url){
	((StatJobBridge*)instPointer)->protected_slotRedirection((KURL&)* (KURL*)url);
	return;
}
void kde_StatJob_slotFinished( kde_StatJob* instPointer){
	((StatJobBridge*)instPointer)->protected_slotFinished();
	return;
}
