/***************************************************************************
                            kde_KURLDrag.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_KURLDrag.h"
}

#include <kurldrag.h>

class KURLDragBridge : public KURLDrag
{
public:
	KURLDragBridge(const KURL::List& urls, QWidget* dragSource, const char* name) : KURLDrag(urls, dragSource, name) {}
	~KURLDragBridge() {}
	 const char *  protected_format(int i) {
		return ( const char * ) KURLDrag::format(i);
	}
	 QByteArray  protected_encodedData(const char* mime) {
		return ( QByteArray ) KURLDrag::encodedData(mime);
	}
	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_KURLDrag * kde_new_KURLDrag(kde_KURLList* urls, qt_QWidget * dragSource, char* name){
	return (kde_KURLDrag *) new KURLDragBridge((KURL::List&)* (KURL::List*)urls, (QWidget*)dragSource, (char*)name);
}
void kde_del_KURLDrag( kde_KURLDrag* p ){
	delete (KURLDragBridge*) p;
}
kde_KURLDrag* kde_KURLDrag_newDrag( kde_KURLList* urls, qt_QWidget * dragSource, char* name){
	return (kde_KURLDrag*) KURLDragBridge::newDrag((KURL::List&)* (KURL::List*)urls, (QWidget*)dragSource, (char*)name);
}
int kde_KURLDrag_decode( qt_QMimeSource* e, kde_KURLList* urls){
	return (int) KURLDragBridge::decode((QMimeSource*)e, (KURL::List&)* (KURL::List*)urls);
}
//int kde_KURLDrag_decode2( qt_QStringList* e, kde_KURLList* uris){
//	return (int) KURLDragBridge::decode((QStringList&)* (QStringList*)e, (KURL::List&)* (KURL::List*)uris);
//}
char* kde_KURLDrag_format( kde_KURLDrag* instPointer,int i){
	return (char*) ((KURLDragBridge*)instPointer)->protected_format((int)i);
}
qt_QByteArray* kde_KURLDrag_encodedData( kde_KURLDrag* instPointer,char* mime){
	return (qt_QByteArray*)new QByteArray(((KURLDragBridge*)instPointer)->protected_encodedData((char*)mime));
}
