/***************************************************************************
                            kde_Observer.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_Observer.h"
}

#include <kio/observer.h>

class ObserverBridge : public Observer
{
public:
	ObserverBridge() : Observer() {}
	~ObserverBridge() {}
	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;
	}
};

int kde_Observer_newJob( kde_Observer* instPointer,kde_Job* job, int showProgress){
	return (int) ((ObserverBridge*)instPointer)->newJob((KIO::Job*)job, (bool)showProgress);
}
void kde_Observer_jobFinished( kde_Observer* instPointer,int progressId){
	((ObserverBridge*)instPointer)->jobFinished((int)progressId);
	return;
}
int kde_Observer_openPassDlg( kde_Observer* instPointer,qt_QString * prompt, qt_QString * user, qt_QString * pass, int readOnly){
	return (int) ((ObserverBridge*)instPointer)->openPassDlg((QString&)* (QString*)prompt, (QString&)* (QString*)user, (QString&)* (QString*)pass, (bool)readOnly);
}
int kde_Observer_openPassDlg1( kde_Observer* instPointer,kde_AuthInfo* info){
	return (int) ((ObserverBridge*)instPointer)->openPassDlg((KIO::AuthInfo&)* (KIO::AuthInfo*)info);
}
int kde_Observer_messageBox( kde_Observer* instPointer,int progressId, int type, qt_QString * text, qt_QString * caption, qt_QString * buttonYes, qt_QString * buttonNo){
	return (int) ((ObserverBridge*)instPointer)->messageBox((int)progressId, (int)type, (QString&)* (QString*)text, (QString&)* (QString*)caption, (QString&)* (QString*)buttonYes, (QString&)* (QString*)buttonNo);
}
//int kde_Observer_open_RenameDlg( kde_Observer* instPointer,kde_Job* job, qt_QString * caption, qt_QString * src, qt_QString * dest, int mode, qt_QString * newDest, KIO::filesize_t sizeSrc (KIO::filesize_t) -1 arg1, KIO::filesize_t sizeDest (KIO::filesize_t) -1 arg2, time_t ctimeSrc  -1 arg3, time_t ctimeDest  -1 arg4, time_t mtimeSrc  -1 arg5, time_t mtimeDest  -1 arg6){
//	return (int) ((ObserverBridge*)instPointer)->open_RenameDlg((KIO::Job*)job, (QString&)* (QString*)caption, (QString&)* (QString*)src, (QString&)* (QString*)dest, (KIO::RenameDlg_Mode)mode, (QString&)* (QString*)newDest, (KIO::filesize_t sizeSrc (KIO::filesize_t) -1)arg1, (KIO::filesize_t sizeDest (KIO::filesize_t) -1)arg2, (time_t ctimeSrc  -1)arg3, (time_t ctimeDest  -1)arg4, (time_t mtimeSrc  -1)arg5, (time_t mtimeDest  -1)arg6);
//}
int kde_Observer_open_SkipDlg( kde_Observer* instPointer,kde_Job* job, int multi, qt_QString * error_text){
	return (int) ((ObserverBridge*)instPointer)->open_SkipDlg((KIO::Job*)job, (bool)multi, (QString&)* (QString*)error_text);
}
//k_dcop: /** * Called by the UI kde_Observer_Server( kde_Observer* instPointer,using DCOP) if the user presses cancel* / void killJob( int progressId){
//	return (k_dcop: /** * Called by the UI) ((ObserverBridge*)instPointer)->Server((using DCOP) if the user presses cancel* / void killJob( int)progressId);
//}
//KIO::MetaData kde_Observer_metadata( kde_Observer* instPointer,int progressId){
//	return (KIO::MetaData) ((ObserverBridge*)instPointer)->metadata((int)progressId);
//}
void kde_Observer_stating( kde_Observer* instPointer,kde_Job* arg1, kde_KURL* url){
	((ObserverBridge*)instPointer)->stating((KIO::Job*)arg1, (KURL&)* (KURL*)url);
	return;
}
void kde_Observer_mounting( kde_Observer* instPointer,kde_Job* arg1, qt_QString * dev, qt_QString * point){
	((ObserverBridge*)instPointer)->mounting((KIO::Job*)arg1, (QString&)* (QString*)dev, (QString&)* (QString*)point);
	return;
}
void kde_Observer_unmounting( kde_Observer* instPointer,kde_Job* arg1, qt_QString * point){
	((ObserverBridge*)instPointer)->unmounting((KIO::Job*)arg1, (QString&)* (QString*)point);
	return;
}
void kde_Observer_slotTotalSize( kde_Observer* instPointer,kde_Job* arg1, KIO::filesize_t size){
	((ObserverBridge*)instPointer)->slotTotalSize((KIO::Job*)arg1, (KIO::filesize_t)size);
	return;
}
void kde_Observer_slotTotalFiles( kde_Observer* instPointer,kde_Job* arg1, unsigned long files){
	((ObserverBridge*)instPointer)->slotTotalFiles((KIO::Job*)arg1, (unsigned long)files);
	return;
}
void kde_Observer_slotTotalDirs( kde_Observer* instPointer,kde_Job* arg1, unsigned long dirs){
	((ObserverBridge*)instPointer)->slotTotalDirs((KIO::Job*)arg1, (unsigned long)dirs);
	return;
}
void kde_Observer_slotProcessedSize( kde_Observer* instPointer,kde_Job* arg1, KIO::filesize_t size){
	((ObserverBridge*)instPointer)->slotProcessedSize((KIO::Job*)arg1, (KIO::filesize_t)size);
	return;
}
void kde_Observer_slotProcessedFiles( kde_Observer* instPointer,kde_Job* arg1, unsigned long files){
	((ObserverBridge*)instPointer)->slotProcessedFiles((KIO::Job*)arg1, (unsigned long)files);
	return;
}
void kde_Observer_slotProcessedDirs( kde_Observer* instPointer,kde_Job* arg1, unsigned long dirs){
	((ObserverBridge*)instPointer)->slotProcessedDirs((KIO::Job*)arg1, (unsigned long)dirs);
	return;
}
void kde_Observer_slotSpeed( kde_Observer* instPointer,kde_Job* arg1, unsigned long bytes_per_second){
	((ObserverBridge*)instPointer)->slotSpeed((KIO::Job*)arg1, (unsigned long)bytes_per_second);
	return;
}
void kde_Observer_slotPercent( kde_Observer* instPointer,kde_Job* arg1, unsigned long percent){
	((ObserverBridge*)instPointer)->slotPercent((KIO::Job*)arg1, (unsigned long)percent);
	return;
}
void kde_Observer_slotInfoMessage( kde_Observer* instPointer,kde_Job* arg1, qt_QString * msg){
	((ObserverBridge*)instPointer)->slotInfoMessage((KIO::Job*)arg1, (QString&)* (QString*)msg);
	return;
}
void kde_Observer_slotCopying( kde_Observer* instPointer,kde_Job* arg1, kde_KURL* from, kde_KURL* to){
	((ObserverBridge*)instPointer)->slotCopying((KIO::Job*)arg1, (KURL&)* (KURL*)from, (KURL&)* (KURL*)to);
	return;
}
void kde_Observer_slotMoving( kde_Observer* instPointer,kde_Job* arg1, kde_KURL* from, kde_KURL* to){
	((ObserverBridge*)instPointer)->slotMoving((KIO::Job*)arg1, (KURL&)* (KURL*)from, (KURL&)* (KURL*)to);
	return;
}
void kde_Observer_slotDeleting( kde_Observer* instPointer,kde_Job* arg1, kde_KURL* url){
	((ObserverBridge*)instPointer)->slotDeleting((KIO::Job*)arg1, (KURL&)* (KURL*)url);
	return;
}
void kde_Observer_slotCreatingDir( kde_Observer* instPointer,kde_Job* arg1, kde_KURL* dir){
	((ObserverBridge*)instPointer)->slotCreatingDir((KIO::Job*)arg1, (KURL&)* (KURL*)dir);
	return;
}
void kde_Observer_slotCanResume( kde_Observer* instPointer,kde_Job* arg1, KIO::filesize_t offset){
	((ObserverBridge*)instPointer)->slotCanResume((KIO::Job*)arg1, (KIO::filesize_t)offset);
	return;
}
kde_Observer* kde_Observer_self( ){
	return (kde_Observer*) ObserverBridge::self();
}
kde_Observer * kde_new_Observer(){
	return (kde_Observer *) new ObserverBridge();
}
void kde_del_Observer( kde_Observer* p ){
	delete (ObserverBridge*) p;
}
kde_DCOPObject* kde_Observer_DCOPObject(kde_Observer* instPointer){
	return (kde_DCOPObject*) (DCOPObject *) (Observer *) instPointer;
}
qt_QObject * kde_Observer_QObject(kde_Observer* instPointer){
	return (qt_QObject *) (QObject *) (Observer *) instPointer;
}
