/***************************************************************************
                            kde_KColorDrag.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_KColorDrag.h"
}

#include <kcolordrag.h>

class KColorDragBridge : public KColorDrag
{
public:
	KColorDragBridge(QWidget* dragsource, const char* name) : KColorDrag(dragsource, name) {}
	KColorDragBridge(const QColor& col, QWidget* dragsource, const char* name) : KColorDrag(col, dragsource, name) {}
	~KColorDragBridge() {}
	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_KColorDrag * kde_new_KColorDrag(qt_QWidget * dragsource, char* name){
	return (kde_KColorDrag *) new KColorDragBridge((QWidget*)dragsource, (char*)name);
}
kde_KColorDrag * kde_new_KColorDrag1(qt_QColor * col, qt_QWidget * dragsource, char* name){
	return (kde_KColorDrag *) new KColorDragBridge((QColor&)* (QColor*)col, (QWidget*)dragsource, (char*)name);
}
void kde_del_KColorDrag( kde_KColorDrag* p ){
	delete (KColorDragBridge*) p;
}
void kde_KColorDrag_setColor( kde_KColorDrag* instPointer,qt_QColor * col){
	((KColorDragBridge*)instPointer)->setColor((QColor&)* (QColor*)col);
	return;
}
int kde_KColorDrag_canDecode( qt_QMimeSource* e){
	return (int) KColorDragBridge::canDecode((QMimeSource*)e);
}
int kde_KColorDrag_decode( qt_QMimeSource* e, qt_QColor * col){
	return (int) KColorDragBridge::decode((QMimeSource*)e, (QColor&)* (QColor*)col);
}
kde_KColorDrag* kde_KColorDrag_makeDrag( qt_QColor * arg1, qt_QWidget * dragsource){
	return (kde_KColorDrag*) KColorDragBridge::makeDrag((QColor&)* (QColor*)arg1, (QWidget*)dragsource);
}
