/***************************************************************************
                            qt_QSignal.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_QSignal.h"
}

#include <qsignal.h>

class QSignalBridge : public QSignal
{
public:
	QSignalBridge(QObject* parent, const char* name) : QSignal(parent, name) {}
	~QSignalBridge() {}
	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_QSignal * qt_new_QSignal(qt_QObject * parent, char* name){
	return (qt_QSignal *) new QSignalBridge((QObject*)parent, (char*)name);
}
void qt_del_QSignal( qt_QSignal* p ){
	delete (QSignalBridge*) p;
}
int qt_QSignal_connect( qt_QSignal* instPointer,qt_QObject * receiver, char* member){
	return (int) ((QSignalBridge*)instPointer)->connect((QObject*)receiver, (char*)member);
}
int qt_QSignal_disconnect( qt_QSignal* instPointer,qt_QObject * receiver, char* member){
	return (int) ((QSignalBridge*)instPointer)->disconnect((QObject*)receiver, (char*)member);
}
void qt_QSignal_activate( qt_QSignal* instPointer){
	((QSignalBridge*)instPointer)->activate();
	return;
}
int qt_QSignal_isBlocked( qt_QSignal* instPointer){
	return (int) ((QSignalBridge*)instPointer)->isBlocked();
}
void qt_QSignal_block( qt_QSignal* instPointer,int b){
	((QSignalBridge*)instPointer)->block((bool)b);
	return;
}
void qt_QSignal_setParameter( qt_QSignal* instPointer,int value){
	((QSignalBridge*)instPointer)->setParameter((int)value);
	return;
}
int qt_QSignal_parameter( qt_QSignal* instPointer){
	return (int) ((QSignalBridge*)instPointer)->parameter();
}
void qt_QSignal_setValue( qt_QSignal* instPointer,qt_QVariant * value){
	((QSignalBridge*)instPointer)->setValue((QVariant&)* (QVariant*)value);
	return;
}
qt_QVariant * qt_QSignal_value( qt_QSignal* instPointer){
	return (qt_QVariant *)new QVariant(((QSignalBridge*)instPointer)->value());
}
