summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QTranslator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QTranslator.cpp')
-rw-r--r--qtjava/javalib/qtjava/QTranslator.cpp332
1 files changed, 332 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QTranslator.cpp b/qtjava/javalib/qtjava/QTranslator.cpp
new file mode 100644
index 00000000..584fab04
--- /dev/null
+++ b/qtjava/javalib/qtjava/QTranslator.cpp
@@ -0,0 +1,332 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <qstring.h>
+#include <qtranslator.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/QTranslator.h>
+
+class QTranslatorJBridge : public QTranslator
+{
+public:
+ QTranslatorJBridge(QObject* arg1,const char* arg2) : QTranslator(arg1,arg2) {};
+ QTranslatorJBridge(QObject* arg1) : QTranslator(arg1) {};
+ QTranslatorJBridge() : QTranslator() {};
+ ~QTranslatorJBridge() {QtSupport::qtKeyDeleted(this);}
+ void removeChild(QObject* arg1) {
+ if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
+ QObject::removeChild(arg1);
+ }
+ return;
+ }
+ void customEvent(QCustomEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
+ QObject::customEvent(arg1);
+ }
+ return;
+ }
+ void timerEvent(QTimerEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
+ QObject::timerEvent(arg1);
+ }
+ return;
+ }
+ void childEvent(QChildEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
+ QObject::childEvent(arg1);
+ }
+ return;
+ }
+ void insertChild(QObject* arg1) {
+ if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
+ QObject::insertChild(arg1);
+ }
+ return;
+ }
+ bool eventFilter(QObject* object,QEvent* event) {
+ if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QTranslator",object,event)) {
+ return QObject::eventFilter(object,event);
+ } else {
+ return TRUE;
+ }
+ }
+};
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QTranslator_className(JNIEnv* env, jobject obj)
+{
+ const char* _qstring;
+ _qstring = ((QTranslator*) QtSupport::getQt(env, obj))->className();
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_clear(JNIEnv* env, jobject obj)
+{
+ ((QTranslator*) QtSupport::getQt(env, obj))->clear();
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_contains__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
+{
+static QCString* _qstring_arg1 = 0;
+static QCString* _qstring_arg2 = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_contains__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring comment)
+{
+static QCString* _qstring_arg1 = 0;
+static QCString* _qstring_arg2 = 0;
+static QCString* _qstring_comment = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment));
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_qt_QTranslator_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj) && ((QTranslator*)QtSupport::getQt(env, obj))->parent() == 0) {
+ delete (QTranslator*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QTranslator_findMessage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
+{
+static QCString* _qstring_arg1 = 0;
+static QCString* _qstring_arg2 = 0;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new QTranslatorMessage(((QTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2))), "org.kde.qt.QTranslatorMessage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QTranslator_findMessage__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3)
+{
+static QCString* _qstring_arg1 = 0;
+static QCString* _qstring_arg2 = 0;
+static QCString* _qstring_arg3 = 0;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new QTranslatorMessage(((QTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3))), "org.kde.qt.QTranslatorMessage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText)
+{
+ QString _qstring;
+static QCString* _qstring_context = 0;
+static QCString* _qstring_sourceText = 0;
+ _qstring = ((QTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText));
+ return QtSupport::fromQString(env, &_qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring comment)
+{
+ QString _qstring;
+static QCString* _qstring_context = 0;
+static QCString* _qstring_sourceText = 0;
+static QCString* _qstring_comment = 0;
+ _qstring = ((QTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment));
+ return QtSupport::fromQString(env, &_qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_insert__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring translation)
+{
+static QCString* _qstring_context = 0;
+static QCString* _qstring_sourceText = 0;
+static QString* _qstring_translation = 0;
+ ((QTranslator*) QtSupport::getQt(env, obj))->insert((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const QString&)*(QString*) QtSupport::toQString(env, translation, &_qstring_translation));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_insert__Lorg_kde_qt_QTranslatorMessage_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ ((QTranslator*) QtSupport::getQt(env, obj))->insert((const QTranslatorMessage&)*(const QTranslatorMessage*) QtSupport::getQt(env, arg1));
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_isEmpty(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->isEmpty();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
+{
+static QString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory)
+{
+static QString* _qstring_filename = 0;
+static QString* _qstring_directory = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, directory, &_qstring_directory));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory, jstring search_delimiters)
+{
+static QString* _qstring_filename = 0;
+static QString* _qstring_directory = 0;
+static QString* _qstring_search_delimiters = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, directory, &_qstring_directory), (const QString&)*(QString*) QtSupport::toQString(env, search_delimiters, &_qstring_search_delimiters));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory, jstring search_delimiters, jstring suffix)
+{
+static QString* _qstring_filename = 0;
+static QString* _qstring_directory = 0;
+static QString* _qstring_search_delimiters = 0;
+static QString* _qstring_suffix = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, directory, &_qstring_directory), (const QString&)*(QString*) QtSupport::toQString(env, search_delimiters, &_qstring_search_delimiters), (const QString&)*(QString*) QtSupport::toQString(env, suffix, &_qstring_suffix));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_load___3CI(JNIEnv* env, jobject obj, jcharArray data, jint len)
+{
+static QByteArray* _qbytearray_data = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) len);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QTranslator_metaObject(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((QTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_newQTranslator__(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QTranslatorJBridge());
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_newQTranslator__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QTranslatorJBridge((QObject*) QtSupport::getQt(env, parent)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_newQTranslator__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
+{
+static QCString* _qstring_name = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QTranslatorJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_remove__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText)
+{
+static QCString* _qstring_context = 0;
+static QCString* _qstring_sourceText = 0;
+ ((QTranslator*) QtSupport::getQt(env, obj))->remove((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_remove__Lorg_kde_qt_QTranslatorMessage_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ ((QTranslator*) QtSupport::getQt(env, obj))->remove((const QTranslatorMessage&)*(const QTranslatorMessage*) QtSupport::getQt(env, arg1));
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_save__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
+{
+static QString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QTranslator_save__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring filename, jint mode)
+{
+static QString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (QTranslator::SaveMode) mode);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_squeeze__(JNIEnv* env, jobject obj)
+{
+ ((QTranslator*) QtSupport::getQt(env, obj))->squeeze();
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_squeeze__I(JNIEnv* env, jobject obj, jint arg1)
+{
+ ((QTranslator*) QtSupport::getQt(env, obj))->squeeze((QTranslator::SaveMode) arg1);
+ return;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QTranslator_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
+{
+ QString _qstring;
+ (void) cls;
+static QCString* _qstring_arg1 = 0;
+ _qstring = QTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
+ return QtSupport::fromQString(env, &_qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QTranslator_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
+{
+ QString _qstring;
+ (void) cls;
+static QCString* _qstring_arg1 = 0;
+static QCString* _qstring_arg2 = 0;
+ _qstring = QTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
+ return QtSupport::fromQString(env, &_qstring);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QTranslator_unsqueeze(JNIEnv* env, jobject obj)
+{
+ ((QTranslator*) QtSupport::getQt(env, obj))->unsqueeze();
+ return;
+}
+