/***************************************************************************
                            kde_MimetypeJob.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_MimetypeJob.h"
}

#include <kio/jobclasses.h>

class MimetypeJobBridge : public KIO::MimetypeJob
{
public:
	MimetypeJobBridge(const KURL& url, int command, const QByteArray& packedArgs, bool showProgressInfo) : MimetypeJob(url, command, packedArgs, showProgressInfo) {}
	void protected_slotFinished() {
		MimetypeJob::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_MimetypeJob * kde_new_MimetypeJob(kde_KURL* url, int command, qt_QByteArray* packedArgs, int showProgressInfo){
	return (kde_MimetypeJob *) new MimetypeJobBridge((KURL&)* (KURL*)url, (int)command, (QByteArray&)* (QByteArray*)packedArgs, (bool)showProgressInfo);
}
qt_QString * kde_MimetypeJob_mimetype( kde_MimetypeJob* instPointer){
	return (qt_QString *)new QString(((MimetypeJobBridge*)instPointer)->mimetype());
}
void kde_MimetypeJob_start( kde_MimetypeJob* instPointer,kde_Slave* slave){
	((MimetypeJobBridge*)instPointer)->start((KIO::Slave*)slave);
	return;
}
void kde_MimetypeJob_slotFinished( kde_MimetypeJob* instPointer){
	((MimetypeJobBridge*)instPointer)->protected_slotFinished();
	return;
}
