/***************************************************************************
                            qt_QTranslatorMessage.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_QTranslatorMessage.h"
}

#include <qtranslator.h>

class QTranslatorMessageBridge : public QTranslatorMessage
{
public:
	QTranslatorMessageBridge() : QTranslatorMessage() {}
	QTranslatorMessageBridge(const char* context, const char* sourceText, const char* comment, const QString& translation) : QTranslatorMessage(context, sourceText, comment, translation) {}
	QTranslatorMessageBridge(QDataStream& arg1) : QTranslatorMessage(arg1) {}
	QTranslatorMessageBridge(const QTranslatorMessage& m) : QTranslatorMessage(m) {}
};

qt_QTranslatorMessage * qt_new_QTranslatorMessage(){
	return (qt_QTranslatorMessage *) new QTranslatorMessageBridge();
}
qt_QTranslatorMessage * qt_new_QTranslatorMessage1(char* context, char* sourceText, char* comment, qt_QString * translation){
	return (qt_QTranslatorMessage *) new QTranslatorMessageBridge((char*)context, (char*)sourceText, (char*)comment, (QString&)* (QString*)translation);
}
qt_QTranslatorMessage * qt_new_QTranslatorMessage2(qt_QDataStream * arg1){
	return (qt_QTranslatorMessage *) new QTranslatorMessageBridge((QDataStream&)* (QDataStream*)arg1);
}
qt_QTranslatorMessage * qt_new_QTranslatorMessage3(qt_QTranslatorMessage* m){
	return (qt_QTranslatorMessage *) new QTranslatorMessageBridge((QTranslatorMessage&)* (QTranslatorMessage*)m);
}
unsigned int qt_QTranslatorMessage_hash( qt_QTranslatorMessage* instPointer){
	return (unsigned int) ((QTranslatorMessageBridge*)instPointer)->hash();
}
char* qt_QTranslatorMessage_context( qt_QTranslatorMessage* instPointer){
	return (char*) ((QTranslatorMessageBridge*)instPointer)->context();
}
char* qt_QTranslatorMessage_sourceText( qt_QTranslatorMessage* instPointer){
	return (char*) ((QTranslatorMessageBridge*)instPointer)->sourceText();
}
char* qt_QTranslatorMessage_comment( qt_QTranslatorMessage* instPointer){
	return (char*) ((QTranslatorMessageBridge*)instPointer)->comment();
}
void qt_QTranslatorMessage_setTranslation( qt_QTranslatorMessage* instPointer,qt_QString * translation){
	((QTranslatorMessageBridge*)instPointer)->setTranslation((QString&)* (QString*)translation);
	return;
}
qt_QString * qt_QTranslatorMessage_translation( qt_QTranslatorMessage* instPointer){
	return (qt_QString *)new QString(((QTranslatorMessageBridge*)instPointer)->translation());
}
void qt_QTranslatorMessage_write( qt_QTranslatorMessage* instPointer,qt_QDataStream * s, int strip, int prefix){
	((QTranslatorMessageBridge*)instPointer)->write((QDataStream&)* (QDataStream*)s, (bool)strip, (QTranslatorMessage::Prefix)prefix);
	return;
}
int qt_QTranslatorMessage_commonPrefix( qt_QTranslatorMessage* instPointer,qt_QTranslatorMessage* arg1){
	return (int) ((QTranslatorMessageBridge*)instPointer)->commonPrefix((QTranslatorMessage&)* (QTranslatorMessage*)arg1);
}
