/***************************************************************************
                            qt_QTimer.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_QTimer.h"
}

#include <qtimer.h>

class QTimerBridge : public QTimer
{
public:
	QTimerBridge(QObject* parent, const char* name) : QTimer(parent, name) {}
	~QTimerBridge() {}
	bool  protected_event(QEvent* arg1) {
		return (bool ) QTimer::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_QTimer * qt_new_QTimer(qt_QObject * parent, char* name){
	return (qt_QTimer *) new QTimerBridge((QObject*)parent, (char*)name);
}
void qt_del_QTimer( qt_QTimer* p ){
	delete (QTimerBridge*) p;
}
int qt_QTimer_isActive( qt_QTimer* instPointer){
	return (int) ((QTimerBridge*)instPointer)->isActive();
}
int qt_QTimer_start( qt_QTimer* instPointer,int msec, int sshot){
	return (int) ((QTimerBridge*)instPointer)->start((int)msec, (bool)sshot);
}
void qt_QTimer_changeInterval( qt_QTimer* instPointer,int msec){
	((QTimerBridge*)instPointer)->changeInterval((int)msec);
	return;
}
void qt_QTimer_stop( qt_QTimer* instPointer){
	((QTimerBridge*)instPointer)->stop();
	return;
}
void qt_QTimer_singleShot( int msec, qt_QObject * receiver, char* member){
	QTimerBridge::singleShot((int)msec, (QObject*)receiver, (char*)member);
	return;
}
int qt_QTimer_event( qt_QTimer* instPointer,qt_QEvent * arg1){
	return (int) ((QTimerBridge*)instPointer)->protected_event((QEvent*)arg1);
}
