/***************************************************************************
                            qt_QSocketNotifier.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_QSocketNotifier.h"
}

#include <qsocketnotifier.h>

class QSocketNotifierBridge : public QSocketNotifier
{
public:
	QSocketNotifierBridge(int socket, Type arg1, QObject* parent, const char* name) : QSocketNotifier(socket, arg1, parent, name) {}
	~QSocketNotifierBridge() {}
	bool  protected_event(QEvent* arg1) {
		return (bool ) QSocketNotifier::event(arg1);
	}
	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_QSocketNotifier * qt_new_QSocketNotifier(int socket, int arg1, qt_QObject * parent, char* name){
	return (qt_QSocketNotifier *) new QSocketNotifierBridge((int)socket, (QSocketNotifier::Type)arg1, (QObject*)parent, (char*)name);
}
void qt_del_QSocketNotifier( qt_QSocketNotifier* p ){
	delete (QSocketNotifierBridge*) p;
}
int qt_QSocketNotifier_socket( qt_QSocketNotifier* instPointer){
	return (int) ((QSocketNotifierBridge*)instPointer)->socket();
}
int qt_QSocketNotifier_type( qt_QSocketNotifier* instPointer){
	return (int) ((QSocketNotifierBridge*)instPointer)->type();
}
int qt_QSocketNotifier_isEnabled( qt_QSocketNotifier* instPointer){
	return (int) ((QSocketNotifierBridge*)instPointer)->isEnabled();
}
void qt_QSocketNotifier_setEnabled( qt_QSocketNotifier* instPointer,int arg1){
	((QSocketNotifierBridge*)instPointer)->setEnabled((bool)arg1);
	return;
}
int qt_QSocketNotifier_event( qt_QSocketNotifier* instPointer,qt_QEvent * arg1){
	return (int) ((QSocketNotifierBridge*)instPointer)->protected_event((QEvent*)arg1);
}
