/***************************************************************************
                            qt_QImageDrag.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_QImageDrag.h"
}

#include <qdragobject.h>

class QImageDragBridge : public QImageDrag
{
public:
	QImageDragBridge(QImage image, QWidget* dragSource, const char* name) : QImageDrag(image, dragSource, name) {}
	QImageDragBridge(QWidget* dragSource, const char* name) : QImageDrag(dragSource, name) {}
	~QImageDragBridge() {}
	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_QImageDrag * qt_new_QImageDrag(qt_QImage * image, qt_QWidget * dragSource, char* name){
	return (qt_QImageDrag *) new QImageDragBridge((QImage)* (QImage*)image, (QWidget*)dragSource, (char*)name);
}
qt_QImageDrag * qt_new_QImageDrag1(qt_QWidget * dragSource, char* name){
	return (qt_QImageDrag *) new QImageDragBridge((QWidget*)dragSource, (char*)name);
}
void qt_del_QImageDrag( qt_QImageDrag* p ){
	delete (QImageDragBridge*) p;
}
void qt_QImageDrag_setImage( qt_QImageDrag* instPointer,qt_QImage * image){
	((QImageDragBridge*)instPointer)->setImage((QImage)* (QImage*)image);
	return;
}
char* qt_QImageDrag_format( qt_QImageDrag* instPointer,int i){
	return (char*) ((QImageDragBridge*)instPointer)->format((int)i);
}
qt_QByteArray* qt_QImageDrag_encodedData( qt_QImageDrag* instPointer,char* arg1){
	return (qt_QByteArray*)new QByteArray(((QImageDragBridge*)instPointer)->encodedData((char*)arg1));
}
int qt_QImageDrag_canDecode( qt_QMimeSource* e){
	return (int) QImageDragBridge::canDecode((QMimeSource*)e);
}
int qt_QImageDrag_decode( qt_QMimeSource* e, qt_QImage * i){
	return (int) QImageDragBridge::decode((QMimeSource*)e, (QImage&)* (QImage*)i);
}
int qt_QImageDrag_decode1( qt_QMimeSource* e, qt_QPixmap * i){
	return (int) QImageDragBridge::decode((QMimeSource*)e, (QPixmap&)* (QPixmap*)i);
}
