/***************************************************************************
                            qt_QRegExpValidator.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_QRegExpValidator.h"
}

#include <qvalidator.h>

class QRegExpValidatorBridge : public QRegExpValidator
{
public:
	QRegExpValidatorBridge(QObject* parent, const char* name) : QRegExpValidator(parent, name) {}
	QRegExpValidatorBridge(const QRegExp& rx, QObject* parent, const char* name) : QRegExpValidator(rx, parent, name) {}
	~QRegExpValidatorBridge() {}
	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_QRegExpValidator * qt_new_QRegExpValidator(qt_QObject * parent, char* name){
	return (qt_QRegExpValidator *) new QRegExpValidatorBridge((QObject*)parent, (char*)name);
}
qt_QRegExpValidator * qt_new_QRegExpValidator1(qt_QRegExp* rx, qt_QObject * parent, char* name){
	return (qt_QRegExpValidator *) new QRegExpValidatorBridge((QRegExp&)* (QRegExp*)rx, (QObject*)parent, (char*)name);
}
void qt_del_QRegExpValidator( qt_QRegExpValidator* p ){
	delete (QRegExpValidatorBridge*) p;
}
int qt_QRegExpValidator_validate( qt_QRegExpValidator* instPointer,qt_QString * input, int pos){
	return (int) ((QRegExpValidatorBridge*)instPointer)->validate((QString&)* (QString*)input, (int&)pos);
}
void qt_QRegExpValidator_setRegExp( qt_QRegExpValidator* instPointer,qt_QRegExp* rx){
	((QRegExpValidatorBridge*)instPointer)->setRegExp((QRegExp&)* (QRegExp*)rx);
	return;
}
qt_QRegExp* qt_QRegExpValidator_regExp( qt_QRegExpValidator* instPointer){
	return (qt_QRegExp*) (const QRegExp *)&((QRegExpValidatorBridge*)instPointer)->regExp();
}
