/***************************************************************************
                            kde_KTrader.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_KTrader.h"
}

#include <ktrader.h>

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

void kde_del_KTrader( kde_KTrader* p ){
	delete (KTraderBridge*) p;
}
kde_OfferList* kde_KTrader_query( kde_KTrader* instPointer,qt_QString * servicetype, qt_QString * constraint, qt_QString * preferences){
	return (kde_OfferList*)new KTrader::OfferList(((KTraderBridge*)instPointer)->query((QString&)* (QString*)servicetype, (QString&)* (QString*)constraint, (QString&)* (QString*)preferences));
}
kde_OfferList* kde_KTrader_query1( kde_KTrader* instPointer,qt_QString * servicetype, qt_QString * genericServiceType, qt_QString * constraint, qt_QString * preferences){
	return (kde_OfferList*)new KTrader::OfferList(((KTraderBridge*)instPointer)->query((QString&)* (QString*)servicetype, (QString&)* (QString*)genericServiceType, (QString&)* (QString*)constraint, (QString&)* (QString*)preferences));
}
kde_KTrader* kde_KTrader_self( ){
	return (kde_KTrader*) KTraderBridge::self();
}
kde_KTrader * kde_new_KTrader(){
	return (kde_KTrader *) new KTraderBridge();
}
