/***************************************************************************
                            kde_Slave.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_Slave.h"
}

#include <kio/slaveinterface.h>

class SlaveInterfaceBridge : public KIO::SlaveInterface
{
public:
	SlaveInterfaceBridge(KIO::Connection* connection) : SlaveInterface(connection) {}
	~SlaveInterfaceBridge() {}
	 bool  protected_dispatch() {
		return ( bool ) SlaveInterface::dispatch();
	}
	 bool  protected_dispatch(int _cmd, const QByteArray& data) {
		return ( bool ) SlaveInterface::dispatch(_cmd, data);
	}
	void protected_openPassDlg(KIO::AuthInfo& info) {
		SlaveInterface::openPassDlg(info);
		return;
	}
	void protected_openPassDlg(const QString& prompt, const QString& user, const QString& caption, const QString& comment, const QString& label, bool readOnly) {
		SlaveInterface::openPassDlg(prompt, user, caption, comment, label, readOnly);
		return;
	}
	void protected_openPassDlg(const QString& prompt, const QString& user, bool readOnly) {
		SlaveInterface::openPassDlg(prompt, user, readOnly);
		return;
	}
	void protected_messageBox(int type, const QString& text, const QString& caption, const QString& buttonYes, const QString& buttonNo) {
		SlaveInterface::messageBox(type, text, caption, buttonYes, buttonNo);
		return;
	}
	void protected_requestNetwork(const QString& arg1, const QString& arg2) {
		SlaveInterface::requestNetwork(arg1, arg2);
		return;
	}
	void protected_dropNetwork(const QString& arg1, const QString& arg2) {
		SlaveInterface::dropNetwork(arg1, arg2);
		return;
	}
	void protected_sigpipe_handler(int arg1) {
		SlaveInterface::sigpipe_handler(arg1);
		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_Slave * kde_new_SlaveInterface(kde_Connection* connection){
	return (kde_Slave *) new SlaveInterfaceBridge((KIO::Connection*)connection);
}
void kde_del_SlaveInterface( kde_Slave* p ){
	delete (SlaveInterfaceBridge*) p;
}
void kde_Slave_setConnection( kde_Slave* instPointer,kde_Connection* connection){
	((SlaveInterfaceBridge*)instPointer)->setConnection((KIO::Connection*)connection);
	return;
}
kde_Connection* kde_Slave_connection( kde_Slave* instPointer){
	return (kde_Connection*) ((SlaveInterfaceBridge*)instPointer)->connection();
}
void kde_Slave_setProgressId( kde_Slave* instPointer,int identifier){
	((SlaveInterfaceBridge*)instPointer)->setProgressId((int)identifier);
	return;
}
int kde_Slave_progressId( kde_Slave* instPointer){
	return (int) ((SlaveInterfaceBridge*)instPointer)->progressId();
}
void kde_Slave_sendResumeAnswer( kde_Slave* instPointer,int resume){
	((SlaveInterfaceBridge*)instPointer)->sendResumeAnswer((bool)resume);
	return;
}
int kde_Slave_dispatch( kde_Slave* instPointer){
	return (int) ((SlaveInterfaceBridge*)instPointer)->protected_dispatch();
}
int kde_Slave_dispatch1( kde_Slave* instPointer,int _cmd, qt_QByteArray* data){
	return (int) ((SlaveInterfaceBridge*)instPointer)->protected_dispatch((int)_cmd, (QByteArray&)* (QByteArray*)data);
}
void kde_Slave_openPassDlg( kde_Slave* instPointer,kde_AuthInfo* info){
	((SlaveInterfaceBridge*)instPointer)->protected_openPassDlg((KIO::AuthInfo&)* (KIO::AuthInfo*)info);
	return;
}
void kde_Slave_openPassDlg1( kde_Slave* instPointer,qt_QString * prompt, qt_QString * user, qt_QString * caption, qt_QString * comment, qt_QString * label, int readOnly){
	((SlaveInterfaceBridge*)instPointer)->protected_openPassDlg((QString&)* (QString*)prompt, (QString&)* (QString*)user, (QString&)* (QString*)caption, (QString&)* (QString*)comment, (QString&)* (QString*)label, (bool)readOnly);
	return;
}
void kde_Slave_openPassDlg2( kde_Slave* instPointer,qt_QString * prompt, qt_QString * user, int readOnly){
	((SlaveInterfaceBridge*)instPointer)->protected_openPassDlg((QString&)* (QString*)prompt, (QString&)* (QString*)user, (bool)readOnly);
	return;
}
void kde_Slave_messageBox( kde_Slave* instPointer,int type, qt_QString * text, qt_QString * caption, qt_QString * buttonYes, qt_QString * buttonNo){
	((SlaveInterfaceBridge*)instPointer)->protected_messageBox((int)type, (QString&)* (QString*)text, (QString&)* (QString*)caption, (QString&)* (QString*)buttonYes, (QString&)* (QString*)buttonNo);
	return;
}
void kde_Slave_requestNetwork( kde_Slave* instPointer,qt_QString * arg1, qt_QString * arg2){
	((SlaveInterfaceBridge*)instPointer)->protected_requestNetwork((QString&)* (QString*)arg1, (QString&)* (QString*)arg2);
	return;
}
void kde_Slave_dropNetwork( kde_Slave* instPointer,qt_QString * arg1, qt_QString * arg2){
	((SlaveInterfaceBridge*)instPointer)->protected_dropNetwork((QString&)* (QString*)arg1, (QString&)* (QString*)arg2);
	return;
}
//void kde_Slave_sigpipe_handler( int arg1){
//	SlaveInterfaceBridge::protected_sigpipe_handler((int)arg1);
//	return;
//}
