/***************************************************************************
                            kde_CopyJob.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_CopyJob.h"
}

#include <kio/jobclasses.h>

class CopyJobBridge : public KIO::CopyJob
{
public:
	CopyJobBridge(const KURL::List& src, const KURL& dest, CopyMode mode, bool asMethod, bool showProgressInfo) : CopyJob(src, dest, mode, asMethod, showProgressInfo) {}
	void protected_statNextSrc() {
		CopyJob::statNextSrc();
		return;
	}
	void protected_slotResultStating(KIO::Job* job) {
		CopyJob::slotResultStating(job);
		return;
	}
	void protected_startListing(const KURL& src) {
		CopyJob::startListing(src);
		return;
	}
	void protected_slotResultCreatingDirs(KIO::Job* job) {
		CopyJob::slotResultCreatingDirs(job);
		return;
	}
	void protected_slotResultConflictCreatingDirs(KIO::Job* job) {
		CopyJob::slotResultConflictCreatingDirs(job);
		return;
	}
	void protected_createNextDir() {
		CopyJob::createNextDir();
		return;
	}
	void protected_slotResultCopyingFiles(KIO::Job* job) {
		CopyJob::slotResultCopyingFiles(job);
		return;
	}
	void protected_slotResultConflictCopyingFiles(KIO::Job* job) {
		CopyJob::slotResultConflictCopyingFiles(job);
		return;
	}
	void protected_copyNextFile() {
		CopyJob::copyNextFile();
		return;
	}
	void protected_slotResultDeletingDirs(KIO::Job* job) {
		CopyJob::slotResultDeletingDirs(job);
		return;
	}
	void protected_deleteNextDir() {
		CopyJob::deleteNextDir();
		return;
	}
	void protected_skip(const KURL& sourceURL) {
		CopyJob::skip(sourceURL);
		return;
	}
	void protected_slotStart() {
		CopyJob::slotStart();
		return;
	}
	void protected_slotEntries(KIO::Job* arg1, const KIO::UDSEntryList& list) {
		CopyJob::slotEntries(arg1, list);
		return;
	}
	void protected_slotResult(KIO::Job* job) {
		CopyJob::slotResult(job);
		return;
	}
	void protected_slotProcessedSize(KIO::Job* arg1, KIO::filesize_t data_size) {
		CopyJob::slotProcessedSize(arg1, data_size);
		return;
	}
	void protected_slotTotalSize(KIO::Job* arg1, KIO::filesize_t size) {
		CopyJob::slotTotalSize(arg1, size);
		return;
	}
	void protected_slotReport() {
		CopyJob::slotReport();
		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_CopyJob * kde_new_CopyJob(kde_KURLList* src, kde_KURL* dest, int mode, int asMethod, int showProgressInfo){
	return (kde_CopyJob *) new CopyJobBridge((KURL::List&)* (KURL::List*)src, (KURL&)* (KURL*)dest, (KIO::CopyJob::CopyMode)mode, (bool)asMethod, (bool)showProgressInfo);
}
//kde_KURLList* kde_CopyJob_srcURLs( kde_CopyJob* instPointer){
//	return (kde_KURLList*) ((CopyJobBridge*)instPointer)->srcURLs();
//}
kde_KURL* kde_CopyJob_destURL( kde_CopyJob* instPointer){
	return (kde_KURL*)new KURL(((CopyJobBridge*)instPointer)->destURL());
}
void kde_CopyJob_statNextSrc( kde_CopyJob* instPointer){
	((CopyJobBridge*)instPointer)->protected_statNextSrc();
	return;
}
void kde_CopyJob_slotResultStating( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResultStating((KIO::Job*)job);
	return;
}
void kde_CopyJob_startListing( kde_CopyJob* instPointer,kde_KURL* src){
	((CopyJobBridge*)instPointer)->protected_startListing((KURL&)* (KURL*)src);
	return;
}
void kde_CopyJob_slotResultCreatingDirs( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResultCreatingDirs((KIO::Job*)job);
	return;
}
void kde_CopyJob_slotResultConflictCreatingDirs( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResultConflictCreatingDirs((KIO::Job*)job);
	return;
}
void kde_CopyJob_createNextDir( kde_CopyJob* instPointer){
	((CopyJobBridge*)instPointer)->protected_createNextDir();
	return;
}
void kde_CopyJob_slotResultCopyingFiles( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResultCopyingFiles((KIO::Job*)job);
	return;
}
void kde_CopyJob_slotResultConflictCopyingFiles( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResultConflictCopyingFiles((KIO::Job*)job);
	return;
}
void kde_CopyJob_copyNextFile( kde_CopyJob* instPointer){
	((CopyJobBridge*)instPointer)->protected_copyNextFile();
	return;
}
void kde_CopyJob_slotResultDeletingDirs( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResultDeletingDirs((KIO::Job*)job);
	return;
}
void kde_CopyJob_deleteNextDir( kde_CopyJob* instPointer){
	((CopyJobBridge*)instPointer)->protected_deleteNextDir();
	return;
}
void kde_CopyJob_skip( kde_CopyJob* instPointer,kde_KURL* sourceURL){
	((CopyJobBridge*)instPointer)->protected_skip((KURL&)* (KURL*)sourceURL);
	return;
}
void kde_CopyJob_slotStart( kde_CopyJob* instPointer){
	((CopyJobBridge*)instPointer)->protected_slotStart();
	return;
}
//void kde_CopyJob_slotEntries( kde_CopyJob* instPointer,kde_Job* arg1, kde_UDSEntryList* list){
//	((CopyJobBridge*)instPointer)->protected_slotEntries((KIO::Job*)arg1, (KIO::UDSEntryList&)* (KIO::UDSEntryList*)list);
//	return;
//}
void kde_CopyJob_slotResult( kde_CopyJob* instPointer,kde_Job* job){
	((CopyJobBridge*)instPointer)->protected_slotResult((KIO::Job*)job);
	return;
}
void kde_CopyJob_slotProcessedSize( kde_CopyJob* instPointer,kde_Job* arg1, KIO::filesize_t data_size){
	((CopyJobBridge*)instPointer)->protected_slotProcessedSize((KIO::Job*)arg1, (KIO::filesize_t)data_size);
	return;
}
void kde_CopyJob_slotTotalSize( kde_CopyJob* instPointer,kde_Job* arg1, KIO::filesize_t size){
	((CopyJobBridge*)instPointer)->protected_slotTotalSize((KIO::Job*)arg1, (KIO::filesize_t)size);
	return;
}
void kde_CopyJob_slotReport( kde_CopyJob* instPointer){
	((CopyJobBridge*)instPointer)->protected_slotReport();
	return;
}
