/***************************************************************************
                            qt_QCustomEvent.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_QCustomEvent.h"
}

#include <qevent.h>

class QCustomEventBridge : public QCustomEvent
{
public:
	QCustomEventBridge(int type) : QCustomEvent(type) {}
	QCustomEventBridge(Type type, void* data) : QCustomEvent(type, data) {}
};

qt_QCustomEvent * qt_new_QCustomEvent(int type){
	return (qt_QCustomEvent *) new QCustomEventBridge((int)type);
}
qt_QCustomEvent * qt_new_QCustomEvent1(int type, void* data){
	return (qt_QCustomEvent *) new QCustomEventBridge((QEvent::Type)type, (void*)data);
}
void* qt_QCustomEvent_data( qt_QCustomEvent* instPointer){
	return (void*) ((QCustomEventBridge*)instPointer)->data();
}
void qt_QCustomEvent_setData( qt_QCustomEvent* instPointer,void* data){
	((QCustomEventBridge*)instPointer)->setData((void*)data);
	return;
}
