/***************************************************************************
                            qt_QChildEvent.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_QChildEvent.h"
}

#include <qevent.h>

class QChildEventBridge : public QChildEvent
{
public:
	QChildEventBridge(Type type, QObject* child) : QChildEvent(type, child) {}
};

qt_QChildEvent * qt_new_QChildEvent(int type, qt_QObject * child){
	return (qt_QChildEvent *) new QChildEventBridge((QEvent::Type)type, (QObject*)child);
}
qt_QObject * qt_QChildEvent_child( qt_QChildEvent* instPointer){
	return (qt_QObject *) ((QChildEventBridge*)instPointer)->child();
}
int qt_QChildEvent_inserted( qt_QChildEvent* instPointer){
	return (int) ((QChildEventBridge*)instPointer)->inserted();
}
int qt_QChildEvent_removed( qt_QChildEvent* instPointer){
	return (int) ((QChildEventBridge*)instPointer)->removed();
}
