/***************************************************************************
                            kde_FileCopyJob.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_FileCopyJob.h"
}

#include <kio/jobclasses.h>

class FileCopyJobBridge : public KIO::FileCopyJob
{
public:
	FileCopyJobBridge(const KURL& src, const KURL& dest, int permissions, bool move, bool overwrite, bool resume, bool showProgressInfo) : FileCopyJob(src, dest, permissions, move, overwrite, resume, showProgressInfo) {}
	~FileCopyJobBridge() {}
	void protected_startCopyJob() {
		FileCopyJob::startCopyJob();
		return;
	}
	void protected_startCopyJob(const KURL& slave_url) {
		FileCopyJob::startCopyJob(slave_url);
		return;
	}
	void protected_startDataPump() {
		FileCopyJob::startDataPump();
		return;
	}
	void protected_connectSubjob(KIO::SimpleJob* job) {
		FileCopyJob::connectSubjob(job);
		return;
	}
	void protected_slotResult(KIO::Job* job) {
		FileCopyJob::slotResult(job);
		return;
	}
	void protected_slotProcessedSize(KIO::Job* arg1, KIO::filesize_t size) {
		FileCopyJob::slotProcessedSize(arg1, size);
		return;
	}
	void protected_slotTotalSize(KIO::Job* arg1, KIO::filesize_t size) {
		FileCopyJob::slotTotalSize(arg1, size);
		return;
	}
	void protected_slotPercent(KIO::Job* arg1, unsigned long pct) {
		FileCopyJob::slotPercent(arg1, pct);
		return;
	}
	void protected_slotCanResume(KIO::Job* arg1, KIO::filesize_t offset) {
		FileCopyJob::slotCanResume(arg1, 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_FileCopyJob * kde_new_FileCopyJob(kde_KURL* src, kde_KURL* dest, int permissions, int move, int overwrite, int resume, int showProgressInfo){
	return (kde_FileCopyJob *) new FileCopyJobBridge((KURL&)* (KURL*)src, (KURL&)* (KURL*)dest, (int)permissions, (bool)move, (bool)overwrite, (bool)resume, (bool)showProgressInfo);
}
void kde_del_FileCopyJob( kde_FileCopyJob* p ){
	delete (FileCopyJobBridge*) p;
}
void kde_FileCopyJob_setSourceSize( kde_FileCopyJob* instPointer,off_t size){
	((FileCopyJobBridge*)instPointer)->setSourceSize((off_t)size);
	return;
}
kde_KURL* kde_FileCopyJob_srcURL( kde_FileCopyJob* instPointer){
	return (kde_KURL*)new KURL(((FileCopyJobBridge*)instPointer)->srcURL());
}
kde_KURL* kde_FileCopyJob_destURL( kde_FileCopyJob* instPointer){
	return (kde_KURL*)new KURL(((FileCopyJobBridge*)instPointer)->destURL());
}
void kde_FileCopyJob_slotStart( kde_FileCopyJob* instPointer){
	((FileCopyJobBridge*)instPointer)->slotStart();
	return;
}
void kde_FileCopyJob_slotData( kde_FileCopyJob* instPointer,kde_Job* arg1, qt_QByteArray* data){
	((FileCopyJobBridge*)instPointer)->slotData((KIO::Job*)arg1, (QByteArray&)* (QByteArray*)data);
	return;
}
void kde_FileCopyJob_slotDataReq( kde_FileCopyJob* instPointer,kde_Job* arg1, qt_QByteArray* data){
	((FileCopyJobBridge*)instPointer)->slotDataReq((KIO::Job*)arg1, (QByteArray&)* (QByteArray*)data);
	return;
}
void kde_FileCopyJob_startCopyJob( kde_FileCopyJob* instPointer){
	((FileCopyJobBridge*)instPointer)->protected_startCopyJob();
	return;
}
void kde_FileCopyJob_startCopyJob1( kde_FileCopyJob* instPointer,kde_KURL* slave_url){
	((FileCopyJobBridge*)instPointer)->protected_startCopyJob((KURL&)* (KURL*)slave_url);
	return;
}
void kde_FileCopyJob_startDataPump( kde_FileCopyJob* instPointer){
	((FileCopyJobBridge*)instPointer)->protected_startDataPump();
	return;
}
void kde_FileCopyJob_connectSubjob( kde_FileCopyJob* instPointer,kde_SimpleJob* job){
	((FileCopyJobBridge*)instPointer)->protected_connectSubjob((KIO::SimpleJob*)job);
	return;
}
void kde_FileCopyJob_slotResult( kde_FileCopyJob* instPointer,kde_Job* job){
	((FileCopyJobBridge*)instPointer)->protected_slotResult((KIO::Job*)job);
	return;
}
void kde_FileCopyJob_slotProcessedSize( kde_FileCopyJob* instPointer,kde_Job* arg1, KIO::filesize_t size){
	((FileCopyJobBridge*)instPointer)->protected_slotProcessedSize((KIO::Job*)arg1, (KIO::filesize_t)size);
	return;
}
void kde_FileCopyJob_slotTotalSize( kde_FileCopyJob* instPointer,kde_Job* arg1, KIO::filesize_t size){
	((FileCopyJobBridge*)instPointer)->protected_slotTotalSize((KIO::Job*)arg1, (KIO::filesize_t)size);
	return;
}
void kde_FileCopyJob_slotPercent( kde_FileCopyJob* instPointer,kde_Job* arg1, unsigned long pct){
	((FileCopyJobBridge*)instPointer)->protected_slotPercent((KIO::Job*)arg1, (unsigned long)pct);
	return;
}
void kde_FileCopyJob_slotCanResume( kde_FileCopyJob* instPointer,kde_Job* arg1, KIO::filesize_t offset){
	((FileCopyJobBridge*)instPointer)->protected_slotCanResume((KIO::Job*)arg1, (KIO::filesize_t)offset);
	return;
}
