diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-08 20:06:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-01-08 20:06:00 +0100 |
commit | 636f509299122d02087c6fd62e1e4a46dbd22026 (patch) | |
tree | 70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/tdejava/Factory.cpp | |
parent | 719b61750c08343f530068ed4127623aeac71cf0 (diff) | |
download | tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip |
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/tdejava/Factory.cpp')
-rw-r--r-- | tdejava/koala/tdejava/Factory.cpp | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/Factory.cpp b/tdejava/koala/tdejava/Factory.cpp new file mode 100644 index 00000000..35ca6af7 --- /dev/null +++ b/tdejava/koala/tdejava/Factory.cpp @@ -0,0 +1,100 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tqstringlist.h> +#include <tdeparts/factory.h> +#include <tqcstring.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/Factory.h> + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_Factory_className(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((KParts::Factory*) QtSupport::getQt(env, obj))->className(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart(), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parentWidget) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget)), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName) +{ +static TQCString* _qstring_widgetName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName)), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent) +{ +static TQCString* _qstring_widgetName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent)), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name) +{ +static TQCString* _qstring_widgetName = 0; +static TQCString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name, jstring classname) +{ +static TQCString* _qstring_widgetName = 0; +static TQCString* _qstring_name = 0; +static TQCString* _qstring_classname = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname)), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name, jstring classname, jobjectArray args) +{ +static TQCString* _qstring_widgetName = 0; +static TQCString* _qstring_name = 0; +static TQCString* _qstring_classname = 0; +static TQStringList* _qlist_args = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args)), "org.trinitydesktop.koala.Part"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_metaObject(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_partInstanceFromLibrary(JNIEnv* env, jclass cls, jstring libraryName) +{ + (void) cls; +static TQCString* _qcstring_libraryName = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)KParts::Factory::partInstanceFromLibrary((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, libraryName, &_qcstring_libraryName)), "org.trinitydesktop.koala.TDEInstanceInterface"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_Factory_partInstance(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->partInstance(), "org.trinitydesktop.koala.TDEInstanceInterface"); + return xret; +} + |