/***************************************************************************
                            qt_QColorDrag.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QColorDrag.h"
}

#include <qdragobject.h>

class QColorDragBridge : public QColorDrag
{
public:
	QColorDragBridge(const QColor& col, QWidget* dragsource, const char* name) : QColorDrag(col, dragsource, name) {}
	QColorDragBridge(QWidget* dragSource, const char* name) : QColorDrag(dragSource, name) {}
	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;
	}
};

qt_QColorDrag * qt_new_QColorDrag(qt_QColor * col, qt_QWidget * dragsource, char* name){
	return (qt_QColorDrag *) new QColorDragBridge((QColor&)* (QColor*)col, (QWidget*)dragsource, (char*)name);
}
qt_QColorDrag * qt_new_QColorDrag1(qt_QWidget * dragSource, char* name){
	return (qt_QColorDrag *) new QColorDragBridge((QWidget*)dragSource, (char*)name);
}
void qt_QColorDrag_setColor( qt_QColorDrag* instPointer,qt_QColor * col){
	((QColorDragBridge*)instPointer)->setColor((QColor&)* (QColor*)col);
	return;
}
int qt_QColorDrag_canDecode( qt_QMimeSource* arg1){
	return (int) QColorDragBridge::canDecode((QMimeSource*)arg1);
}
int qt_QColorDrag_decode( qt_QMimeSource* arg1, qt_QColor * col){
	return (int) QColorDragBridge::decode((QMimeSource*)arg1, (QColor&)* (QColor*)col);
}
