/***************************************************************************
                            qt_QTranslator.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_QTranslator.h"
}

#include <qtranslator.h>

class QTranslatorBridge : public QTranslator
{
public:
	QTranslatorBridge(QObject* parent, const char* name) : QTranslator(parent, name) {}
	~QTranslatorBridge() {}
	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_QTranslator * qt_new_QTranslator(qt_QObject * parent, char* name){
	return (qt_QTranslator *) new QTranslatorBridge((QObject*)parent, (char*)name);
}
void qt_del_QTranslator( qt_QTranslator* p ){
	delete (QTranslatorBridge*) p;
}
qt_QString * qt_QTranslator_find( qt_QTranslator* instPointer,char* context, char* sourceText, char* comment){
	return (qt_QString *)new QString(((QTranslatorBridge*)instPointer)->find((char*)context, (char*)sourceText, (char*)comment));
}
qt_QTranslatorMessage* qt_QTranslator_findMessage( qt_QTranslator* instPointer,char* arg1, char* arg2, char* arg3){
	return (qt_QTranslatorMessage*)new QTranslatorMessage(((QTranslatorBridge*)instPointer)->findMessage((char*)arg1, (char*)arg2, (char*)arg3));
}
int qt_QTranslator_load( qt_QTranslator* instPointer,qt_QString * filename, qt_QString * directory, qt_QString * search_delimiters, qt_QString * suffix){
	return (int) ((QTranslatorBridge*)instPointer)->load((QString&)* (QString*)filename, (QString&)* (QString*)directory, (QString&)* (QString*)search_delimiters, (QString&)* (QString*)suffix);
}
void qt_QTranslator_clear( qt_QTranslator* instPointer){
	((QTranslatorBridge*)instPointer)->clear();
	return;
}
int qt_QTranslator_save( qt_QTranslator* instPointer,qt_QString * filename, int mode){
	return (int) ((QTranslatorBridge*)instPointer)->save((QString&)* (QString*)filename, (QTranslator::SaveMode)mode);
}
void qt_QTranslator_insert( qt_QTranslator* instPointer,qt_QTranslatorMessage* arg1){
	((QTranslatorBridge*)instPointer)->insert((QTranslatorMessage&)* (QTranslatorMessage*)arg1);
	return;
}
void qt_QTranslator_insert1( qt_QTranslator* instPointer,char* context, char* sourceText, qt_QString * translation){
	((QTranslatorBridge*)instPointer)->insert((char*)context, (char*)sourceText, (QString&)* (QString*)translation);
	return;
}
void qt_QTranslator_remove( qt_QTranslator* instPointer,qt_QTranslatorMessage* arg1){
	((QTranslatorBridge*)instPointer)->remove((QTranslatorMessage&)* (QTranslatorMessage*)arg1);
	return;
}
void qt_QTranslator_remove1( qt_QTranslator* instPointer,char* context, char* sourceText){
	((QTranslatorBridge*)instPointer)->remove((char*)context, (char*)sourceText);
	return;
}
int qt_QTranslator_contains( qt_QTranslator* instPointer,char* arg1, char* arg2, char* comment){
	return (int) ((QTranslatorBridge*)instPointer)->contains((char*)arg1, (char*)arg2, (char*)comment);
}
void qt_QTranslator_squeeze( qt_QTranslator* instPointer,int arg1){
	((QTranslatorBridge*)instPointer)->squeeze((QTranslator::SaveMode)arg1);
	return;
}
void qt_QTranslator_unsqueeze( qt_QTranslator* instPointer){
	((QTranslatorBridge*)instPointer)->unsqueeze();
	return;
}
