/***************************************************************************
                            qt_QAccessibleObject.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_QAccessibleObject.h"
}

#include <qaccessible.h>

#if defined(QT_ACCESSIBILITY_SUPPORT)

class QAccessibleObjectBridge : public QAccessibleObject
{
public:
	QAccessibleObjectBridge(QObject* object) : QAccessibleObject(object) {}
	~QAccessibleObjectBridge() {}
	QObject * protected_object() {
		return (QObject *) QAccessibleObject::object();
	}
	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_QAccessibleObject * qt_new_QAccessibleObject(qt_QObject * object){
	return (qt_QAccessibleObject *) new QAccessibleObjectBridge((QObject*)object);
}
void qt_del_QAccessibleObject( qt_QAccessibleObject* p ){
	delete (QAccessibleObjectBridge*) p;
}
//long qt_QAccessibleObject_queryInterface( qt_QAccessibleObject* instPointer,qt_QUuid* arg1, qt_QUnknownInterface** arg2){
//	return (long) ((QAccessibleObjectBridge*)instPointer)->queryInterface((QUuid&)* (QUuid*)arg1, (QUnknownInterface**)arg2);
//}
//Q_REFCOUNT bool qt_QAccessibleObject_isValid( qt_QAccessibleObject* instPointer){
//	return (Q_REFCOUNT bool) ((QAccessibleObjectBridge*)instPointer)->isValid();
//}
qt_QObject * qt_QAccessibleObject_object( qt_QAccessibleObject* instPointer){
	return (qt_QObject *) ((QAccessibleObjectBridge*)instPointer)->protected_object();
}
qt_QAccessibleInterface* qt_QAccessibleObject_QAccessibleInterface(qt_QAccessibleObject* instPointer){
	return (qt_QAccessibleInterface*) (QAccessibleInterface *) (QAccessibleObject *) instPointer;
}
qt_QObject * qt_QAccessibleObject_QObject(qt_QAccessibleObject* instPointer){
	return (qt_QObject *) (QObject *) (QAccessibleObject *) instPointer;
}
#endif

