/***************************************************************************
                            qt_QIconDrag.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_QIconDrag.h"
}

#include <qiconview.h>

class QIconDragBridge : public QIconDrag
{
public:
	QIconDragBridge(QWidget* dragSource, const char* name) : QIconDrag(dragSource, name) {}
	~QIconDragBridge() {}
	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_QIconDrag * qt_new_QIconDrag(qt_QWidget * dragSource, char* name){
	return (qt_QIconDrag *) new QIconDragBridge((QWidget*)dragSource, (char*)name);
}
void qt_del_QIconDrag( qt_QIconDrag* p ){
	delete (QIconDragBridge*) p;
}
void qt_QIconDrag_append( qt_QIconDrag* instPointer,qt_QIconDragItem* item, qt_QRect* pr, qt_QRect* tr){
	((QIconDragBridge*)instPointer)->append((QIconDragItem&)* (QIconDragItem*)item, (QRect&)* (QRect*)pr, (QRect&)* (QRect*)tr);
	return;
}
char* qt_QIconDrag_format( qt_QIconDrag* instPointer,int i){
	return (char*) ((QIconDragBridge*)instPointer)->format((int)i);
}
qt_QByteArray* qt_QIconDrag_encodedData( qt_QIconDrag* instPointer,char* mime){
	return (qt_QByteArray*)new QByteArray(((QIconDragBridge*)instPointer)->encodedData((char*)mime));
}
int qt_QIconDrag_canDecode( qt_QMimeSource* e){
	return (int) QIconDragBridge::canDecode((QMimeSource*)e);
}
