/***************************************************************************
                            kde_TransferJob.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_TransferJob.h"
}

#include <kio/jobclasses.h>

class TransferJobBridge : public KIO::TransferJob
{
public:
	TransferJobBridge(const KURL& url, int command, const QByteArray& packedArgs, const QByteArray& _staticData, bool showProgressInfo) : TransferJob(url, command, packedArgs, _staticData, showProgressInfo) {}
	void protected_slotRedirection(const KURL& url) {
		TransferJob::slotRedirection(url);
		return;
	}
	void protected_slotFinished() {
		TransferJob::slotFinished();
		return;
	}
	void protected_slotData(const QByteArray& data) {
		TransferJob::slotData(data);
		return;
	}
	void protected_slotDataReq() {
		TransferJob::slotDataReq();
		return;
	}
	void protected_slotMimetype(const QString& mimetype) {
		TransferJob::slotMimetype(mimetype);
		return;
	}
	void protected_slotNeedSubURLData() {
		TransferJob::slotNeedSubURLData();
		return;
	}
	void protected_slotSubURLData(KIO::Job* arg1, const QByteArray& arg2) {
		TransferJob::slotSubURLData(arg1, arg2);
		return;
	}
	void protected_slotErrorPage() {
		TransferJob::slotErrorPage();
		return;
	}
	void protected_slotCanResume(KIO::filesize_t offset) {
		TransferJob::slotCanResume(offset);
		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_TransferJob * kde_new_TransferJob(kde_KURL* url, int command, qt_QByteArray* packedArgs, qt_QByteArray* _staticData, int showProgressInfo){
	return (kde_TransferJob *) new TransferJobBridge((KURL&)* (KURL*)url, (int)command, (QByteArray&)* (QByteArray*)packedArgs, (QByteArray&)* (QByteArray*)_staticData, (bool)showProgressInfo);
}
void kde_TransferJob_start( kde_TransferJob* instPointer,kde_Slave* slave){
	((TransferJobBridge*)instPointer)->start((KIO::Slave*)slave);
	return;
}
void kde_TransferJob_slotResult( kde_TransferJob* instPointer,kde_Job* job){
	((TransferJobBridge*)instPointer)->slotResult((KIO::Job*)job);
	return;
}
void kde_TransferJob_suspend( kde_TransferJob* instPointer){
	((TransferJobBridge*)instPointer)->suspend();
	return;
}
void kde_TransferJob_resume( kde_TransferJob* instPointer){
	((TransferJobBridge*)instPointer)->resume();
	return;
}
int kde_TransferJob_isSuspended( kde_TransferJob* instPointer){
	return (int) ((TransferJobBridge*)instPointer)->isSuspended();
}
int kde_TransferJob_isErrorPage( kde_TransferJob* instPointer){
	return (int) ((TransferJobBridge*)instPointer)->isErrorPage();
}
void kde_TransferJob_slotRedirection( kde_TransferJob* instPointer,kde_KURL* url){
	((TransferJobBridge*)instPointer)->protected_slotRedirection((KURL&)* (KURL*)url);
	return;
}
void kde_TransferJob_slotFinished( kde_TransferJob* instPointer){
	((TransferJobBridge*)instPointer)->protected_slotFinished();
	return;
}
void kde_TransferJob_slotData( kde_TransferJob* instPointer,qt_QByteArray* data){
	((TransferJobBridge*)instPointer)->protected_slotData((QByteArray&)* (QByteArray*)data);
	return;
}
void kde_TransferJob_slotDataReq( kde_TransferJob* instPointer){
	((TransferJobBridge*)instPointer)->protected_slotDataReq();
	return;
}
void kde_TransferJob_slotMimetype( kde_TransferJob* instPointer,qt_QString * mimetype){
	((TransferJobBridge*)instPointer)->protected_slotMimetype((QString&)* (QString*)mimetype);
	return;
}
void kde_TransferJob_slotNeedSubURLData( kde_TransferJob* instPointer){
	((TransferJobBridge*)instPointer)->protected_slotNeedSubURLData();
	return;
}
void kde_TransferJob_slotSubURLData( kde_TransferJob* instPointer,kde_Job* arg1, qt_QByteArray* arg2){
	((TransferJobBridge*)instPointer)->protected_slotSubURLData((KIO::Job*)arg1, (QByteArray&)* (QByteArray*)arg2);
	return;
}
void kde_TransferJob_slotErrorPage( kde_TransferJob* instPointer){
	((TransferJobBridge*)instPointer)->protected_slotErrorPage();
	return;
}
void kde_TransferJob_slotCanResume( kde_TransferJob* instPointer,KIO::filesize_t offset){
	((TransferJobBridge*)instPointer)->protected_slotCanResume((KIO::filesize_t)offset);
	return;
}
