From 2edd282f894f0ac9f1b5cac1750bfd7b8655947d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 22 Jan 2013 20:44:12 -0600 Subject: Rename KInstance and KAboutData to avoid conflicts with KDE4 --- kdejava/koala/kdejava/KAboutData.cpp | 474 --------------------- kdejava/koala/kdejava/KAboutData.h | 67 --- kdejava/koala/kdejava/KInstance.cpp | 141 ------ kdejava/koala/kdejava/KInstance.h | 33 -- kdejava/koala/kdejava/TDEAboutData.cpp | 474 +++++++++++++++++++++ kdejava/koala/kdejava/TDEAboutData.h | 67 +++ kdejava/koala/kdejava/TDEInstance.cpp | 141 ++++++ kdejava/koala/kdejava/TDEInstance.h | 33 ++ kdejava/koala/org/kde/koala/KAboutData.java | 421 ------------------ kdejava/koala/org/kde/koala/KInstance.java | 121 ------ .../koala/org/kde/koala/KInstanceInterface.java | 15 - kdejava/koala/org/kde/koala/TDEAboutData.java | 421 ++++++++++++++++++ kdejava/koala/org/kde/koala/TDEInstance.java | 121 ++++++ .../koala/org/kde/koala/TDEInstanceInterface.java | 15 + 14 files changed, 1272 insertions(+), 1272 deletions(-) delete mode 100644 kdejava/koala/kdejava/KAboutData.cpp delete mode 100644 kdejava/koala/kdejava/KAboutData.h delete mode 100644 kdejava/koala/kdejava/KInstance.cpp delete mode 100644 kdejava/koala/kdejava/KInstance.h create mode 100644 kdejava/koala/kdejava/TDEAboutData.cpp create mode 100644 kdejava/koala/kdejava/TDEAboutData.h create mode 100644 kdejava/koala/kdejava/TDEInstance.cpp create mode 100644 kdejava/koala/kdejava/TDEInstance.h delete mode 100644 kdejava/koala/org/kde/koala/KAboutData.java delete mode 100644 kdejava/koala/org/kde/koala/KInstance.java delete mode 100644 kdejava/koala/org/kde/koala/KInstanceInterface.java create mode 100644 kdejava/koala/org/kde/koala/TDEAboutData.java create mode 100644 kdejava/koala/org/kde/koala/TDEInstance.java create mode 100644 kdejava/koala/org/kde/koala/TDEInstanceInterface.java (limited to 'kdejava') diff --git a/kdejava/koala/kdejava/KAboutData.cpp b/kdejava/koala/kdejava/KAboutData.cpp deleted file mode 100644 index 34f80276..00000000 --- a/kdejava/koala/kdejava/KAboutData.cpp +++ /dev/null @@ -1,474 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -#include -#include -#include - -#include -#include -#include - -class TDEAboutDataJBridge : public TDEAboutData -{ -public: - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6,const char* arg7,const char* arg8,const char* arg9) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) {}; - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6,const char* arg7,const char* arg8) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {}; - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6,const char* arg7) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {}; - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6) {}; - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5) : TDEAboutData(arg1,arg2,arg3,arg4,arg5) {}; - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4) : TDEAboutData(arg1,arg2,arg3,arg4) {}; - TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3) : TDEAboutData(arg1,arg2,arg3) {}; - ~TDEAboutDataJBridge() {QtSupport::qtKeyDeleted(this);} -}; - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_aboutTranslationTeam(JNIEnv* env, jclass cls) -{ - TQString _qstring; - (void) cls; - _qstring = TDEAboutDataJBridge::aboutTranslationTeam(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) -{ -static TQCString* _qstring_name = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_task = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_task = 0; -static TQCString* _qstring_emailAddress = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress, jstring webAddress) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_task = 0; -static TQCString* _qstring_emailAddress = 0; -static TQCString* _qstring_webAddress = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress), (const char*) QtSupport::toCharString(env, webAddress, &_qstring_webAddress)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) -{ -static TQCString* _qstring_name = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_task = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_task = 0; -static TQCString* _qstring_emailAddress = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress, jstring webAddress) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_task = 0; -static TQCString* _qstring_emailAddress = 0; -static TQCString* _qstring_webAddress = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress), (const char*) QtSupport::toCharString(env, webAddress, &_qstring_webAddress)); - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_appName(JNIEnv* env, jobject obj) -{ - const char* _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->appName(); - return QtSupport::fromCharString(env, (char *) _qstring); -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_bugAddress(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->bugAddress(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_copyrightStatement(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->copyrightStatement(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_customAuthorPlainText(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->customAuthorPlainText(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_customAuthorRichText(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->customAuthorRichText(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_TDEAboutData_customAuthorTextEnabled(JNIEnv* env, jobject obj) -{ - jboolean xret = (jboolean) ((TDEAboutData*) QtSupport::getQt(env, obj))->customAuthorTextEnabled(); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_dispose(JNIEnv* env, jobject obj) -{ - Java_org_kde_koala_TDEAboutData_finalize(env, obj); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_finalize(JNIEnv* env, jobject obj) -{ - if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TDEAboutData*)QtSupport::getQt(env, obj); - QtSupport::setQt(env, obj, 0); - } - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_homepage(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->homepage(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_TDEAboutData_isDisposed(JNIEnv* env, jobject obj) -{ - return (QtSupport::getQt(env, obj) == 0); -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_license(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->license(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; -static TQCString* _qstring_shortDescription = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; -static TQCString* _qstring_shortDescription = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType)); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; -static TQCString* _qstring_shortDescription = 0; -static TQCString* _qstring_copyrightStatement = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement, jstring text) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; -static TQCString* _qstring_shortDescription = 0; -static TQCString* _qstring_copyrightStatement = 0; -static TQCString* _qstring_text = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement), (const char*) QtSupport::toCharString(env, text, &_qstring_text))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement, jstring text, jstring homePageAddress) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; -static TQCString* _qstring_shortDescription = 0; -static TQCString* _qstring_copyrightStatement = 0; -static TQCString* _qstring_text = 0; -static TQCString* _qstring_homePageAddress = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement), (const char*) QtSupport::toCharString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, homePageAddress, &_qstring_homePageAddress))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement, jstring text, jstring homePageAddress, jstring bugsEmailAddress) -{ -static TQCString* _qstring_appName = 0; -static TQCString* _qstring_programName = 0; -static TQCString* _qstring_version = 0; -static TQCString* _qstring_shortDescription = 0; -static TQCString* _qstring_copyrightStatement = 0; -static TQCString* _qstring_text = 0; -static TQCString* _qstring_homePageAddress = 0; -static TQCString* _qstring_bugsEmailAddress = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement), (const char*) QtSupport::toCharString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, homePageAddress, &_qstring_homePageAddress), (const char*) QtSupport::toCharString(env, bugsEmailAddress, &_qstring_bugsEmailAddress))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_otherText(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->otherText(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_productName(JNIEnv* env, jobject obj) -{ - const char* _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->productName(); - return QtSupport::fromCharString(env, (char *) _qstring); -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEAboutData_programLogo(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TDEAboutData*) QtSupport::getQt(env, obj))->programLogo()), "org.kde.qt.TQImage", TRUE); - return xret; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_programName(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->programName(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setAppName(JNIEnv* env, jobject obj, jstring appName) -{ -static TQCString* _qstring_appName = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setAppName((const char*) QtSupport::toCharString(env, appName, &_qstring_appName)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setBugAddress(JNIEnv* env, jobject obj, jstring bugAddress) -{ -static TQCString* _qstring_bugAddress = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setBugAddress((const char*) QtSupport::toCharString(env, bugAddress, &_qstring_bugAddress)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setCopyrightStatement(JNIEnv* env, jobject obj, jstring copyrightStatement) -{ -static TQCString* _qstring_copyrightStatement = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setCopyrightStatement((const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setCustomAuthorText(JNIEnv* env, jobject obj, jstring plainText, jstring richText) -{ -static TQString* _qstring_plainText = 0; -static TQString* _qstring_richText = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setCustomAuthorText((const TQString&)*(TQString*) QtSupport::toTQString(env, plainText, &_qstring_plainText), (const TQString&)*(TQString*) QtSupport::toTQString(env, richText, &_qstring_richText)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setHomepage(JNIEnv* env, jobject obj, jstring homepage) -{ -static TQCString* _qstring_homepage = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setHomepage((const char*) QtSupport::toCharString(env, homepage, &_qstring_homepage)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setLicenseTextFile(JNIEnv* env, jobject obj, jstring file) -{ -static TQString* _qstring_file = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setLicenseTextFile((const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setLicenseText(JNIEnv* env, jobject obj, jstring license) -{ -static TQCString* _qstring_license = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setLicenseText((const char*) QtSupport::toCharString(env, license, &_qstring_license)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setLicense(JNIEnv* env, jobject obj, jint licenseKey) -{ - ((TDEAboutData*) QtSupport::getQt(env, obj))->setLicense((TDEAboutData::LicenseKey) licenseKey); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setOtherText(JNIEnv* env, jobject obj, jstring otherText) -{ -static TQCString* _qstring_otherText = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setOtherText((const char*) QtSupport::toCharString(env, otherText, &_qstring_otherText)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setProductName(JNIEnv* env, jobject obj, jstring name) -{ -static TQCString* _qstring_name = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setProductName((const char*) QtSupport::toCharString(env, name, &_qstring_name)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setProgramLogo(JNIEnv* env, jobject obj, jobject image) -{ - ((TDEAboutData*) QtSupport::getQt(env, obj))->setProgramLogo((const TQImage&)*(const TQImage*) QtSupport::getQt(env, image)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setProgramName(JNIEnv* env, jobject obj, jstring programName) -{ -static TQCString* _qstring_programName = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setProgramName((const char*) QtSupport::toCharString(env, programName, &_qstring_programName)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setShortDescription(JNIEnv* env, jobject obj, jstring shortDescription) -{ -static TQCString* _qstring_shortDescription = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setShortDescription((const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setTranslator(JNIEnv* env, jobject obj, jstring name, jstring emailAddress) -{ -static TQCString* _qstring_name = 0; -static TQCString* _qstring_emailAddress = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setTranslator((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress)); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_setVersion(JNIEnv* env, jobject obj, jstring version) -{ -static TQCString* _qstring_version = 0; - ((TDEAboutData*) QtSupport::getQt(env, obj))->setVersion((const char*) QtSupport::toCharString(env, version, &_qstring_version)); - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_shortDescription(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->shortDescription(); - return QtSupport::fromTQString(env, &_qstring); -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEAboutData_unsetCustomAuthorText(JNIEnv* env, jobject obj) -{ - ((TDEAboutData*) QtSupport::getQt(env, obj))->unsetCustomAuthorText(); - return; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEAboutData_version(JNIEnv* env, jobject obj) -{ - TQString _qstring; - _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->version(); - return QtSupport::fromTQString(env, &_qstring); -} - diff --git a/kdejava/koala/kdejava/KAboutData.h b/kdejava/koala/kdejava/KAboutData.h deleted file mode 100644 index e436e10e..00000000 --- a/kdejava/koala/kdejava/KAboutData.h +++ /dev/null @@ -1,67 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ - -#ifndef __org_kde_koala_TDEAboutData__ -#define __org_kde_koala_TDEAboutData__ - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif - -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setTranslator (JNIEnv *env, jobject, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setLicenseText (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setLicenseTextFile (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setAppName (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setProgramName (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setProgramLogo (JNIEnv *env, jobject, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setVersion (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setShortDescription (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setLicense (JNIEnv *env, jobject, jint); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setCopyrightStatement (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setOtherText (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setHomepage (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setBugAddress (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setProductName (JNIEnv *env, jobject, jstring); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_appName (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_productName (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_programName (JNIEnv *env, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEAboutData_programLogo (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_version (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_shortDescription (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_homepage (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_bugAddress (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_otherText (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_license (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_copyrightStatement (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_customAuthorPlainText (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_customAuthorRichText (JNIEnv *env, jobject); -extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDEAboutData_customAuthorTextEnabled (JNIEnv *env, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setCustomAuthorText (JNIEnv *env, jobject, jstring, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_unsetCustomAuthorText (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_aboutTranslationTeam (JNIEnv *env, jclass); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_finalize (JNIEnv *env, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_dispose (JNIEnv *env, jobject); -extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDEAboutData_isDisposed (JNIEnv *env, jobject); - -#ifdef __cplusplus -} -#endif - -#endif /* __org_kde_koala_TDEAboutData__ */ diff --git a/kdejava/koala/kdejava/KInstance.cpp b/kdejava/koala/kdejava/KInstance.cpp deleted file mode 100644 index de8d8368..00000000 --- a/kdejava/koala/kdejava/KInstance.cpp +++ /dev/null @@ -1,141 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -#include -#include -#include - -#include -#include -#include - -class TDEInstanceJBridge : public TDEInstance -{ -public: - TDEInstanceJBridge(const TQCString& arg1) : TDEInstance(arg1) {}; - TDEInstanceJBridge(const TDEAboutData* arg1) : TDEInstance(arg1) {}; - TDEInstanceJBridge(TDEInstance* arg1) : TDEInstance(arg1) {}; - void protected_setConfigName(const TQString& arg1) { - TDEInstance::setConfigName(arg1); - return; - } - ~TDEInstanceJBridge() {QtSupport::qtKeyDeleted(this);} -}; - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEInstance_aboutData(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->aboutData(), "org.kde.koala.TDEAboutData"); - return xret; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEInstance_config(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->config(), "org.kde.koala.KConfig"); - return xret; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEInstance_dirs(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->dirs(), "org.kde.koala.KStandardDirs"); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_dispose(JNIEnv* env, jobject obj) -{ - Java_org_kde_koala_TDEInstance_finalize(env, obj); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_finalize(JNIEnv* env, jobject obj) -{ - if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TDEInstance*)QtSupport::getQt(env, obj); - QtSupport::setQt(env, obj, 0); - } - return; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEInstance_iconLoader(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->iconLoader(), "org.kde.koala.KIconLoader"); - return xret; -} - -JNIEXPORT jstring JNICALL -Java_org_kde_koala_TDEInstance_instanceName(JNIEnv* env, jobject obj) -{ - TQCString _qstring; - _qstring = ((TDEInstance*) QtSupport::getQt(env, obj))->instanceName(); - return QtSupport::fromTQCString(env, &_qstring); -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_koala_TDEInstance_isDisposed(JNIEnv* env, jobject obj) -{ - return (QtSupport::getQt(env, obj) == 0); -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEInstance_mimeSourceFactory(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->mimeSourceFactory(), "org.kde.koala.KMimeSourceFactory"); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_newIconLoader(JNIEnv* env, jobject obj) -{ - ((TDEInstance*) QtSupport::getQt(env, obj))->newIconLoader(); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_newTDEInstance__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring instanceName) -{ -static TQCString* _qcstring_instanceName = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEInstanceJBridge((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, instanceName, &_qcstring_instanceName))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEAboutData_2(JNIEnv* env, jobject obj, jobject aboutData) -{ - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEInstanceJBridge((const TDEAboutData*) QtSupport::getQt(env, aboutData))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEInstanceInterface_2(JNIEnv* env, jobject obj, jobject src) -{ - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TDEInstanceJBridge((TDEInstance*) QtSupport::getQt(env, src))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_koala_TDEInstance_setConfigName(JNIEnv* env, jobject obj, jstring name) -{ -static TQString* _qstring_name = 0; - ((TDEInstanceJBridge*) QtSupport::getQt(env, obj))->protected_setConfigName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)); - return; -} - -JNIEXPORT jobject JNICALL -Java_org_kde_koala_TDEInstance_sharedConfig(JNIEnv* env, jobject obj) -{ - jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->sharedConfig(), "org.kde.koala.KSharedConfig"); - return xret; -} - diff --git a/kdejava/koala/kdejava/KInstance.h b/kdejava/koala/kdejava/KInstance.h deleted file mode 100644 index a75ee4c8..00000000 --- a/kdejava/koala/kdejava/KInstance.h +++ /dev/null @@ -1,33 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ - -#ifndef __org_kde_koala_TDEInstance__ -#define __org_kde_koala_TDEInstance__ - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif - -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newTDEInstance__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEAboutData_2 (JNIEnv *env, jobject, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEInstanceInterface_2 (JNIEnv *env, jobject, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_dirs (JNIEnv *env, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_config (JNIEnv *env, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_sharedConfig (JNIEnv *env, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_iconLoader (JNIEnv *env, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newIconLoader (JNIEnv *env, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_aboutData (JNIEnv *env, jobject); -extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEInstance_instanceName (JNIEnv *env, jobject); -extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_mimeSourceFactory (JNIEnv *env, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_setConfigName (JNIEnv *env, jobject, jstring); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_finalize (JNIEnv *env, jobject); -extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_dispose (JNIEnv *env, jobject); -extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDEInstance_isDisposed (JNIEnv *env, jobject); - -#ifdef __cplusplus -} -#endif - -#endif /* __org_kde_koala_TDEInstance__ */ diff --git a/kdejava/koala/kdejava/TDEAboutData.cpp b/kdejava/koala/kdejava/TDEAboutData.cpp new file mode 100644 index 00000000..34f80276 --- /dev/null +++ b/kdejava/koala/kdejava/TDEAboutData.cpp @@ -0,0 +1,474 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include +#include +#include + +#include +#include +#include + +class TDEAboutDataJBridge : public TDEAboutData +{ +public: + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6,const char* arg7,const char* arg8,const char* arg9) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) {}; + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6,const char* arg7,const char* arg8) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {}; + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6,const char* arg7) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {}; + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5,const char* arg6) : TDEAboutData(arg1,arg2,arg3,arg4,arg5,arg6) {}; + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4,int arg5) : TDEAboutData(arg1,arg2,arg3,arg4,arg5) {}; + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4) : TDEAboutData(arg1,arg2,arg3,arg4) {}; + TDEAboutDataJBridge(const char* arg1,const char* arg2,const char* arg3) : TDEAboutData(arg1,arg2,arg3) {}; + ~TDEAboutDataJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_aboutTranslationTeam(JNIEnv* env, jclass cls) +{ + TQString _qstring; + (void) cls; + _qstring = TDEAboutDataJBridge::aboutTranslationTeam(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) +{ +static TQCString* _qstring_name = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_task = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_task = 0; +static TQCString* _qstring_emailAddress = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress, jstring webAddress) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_task = 0; +static TQCString* _qstring_emailAddress = 0; +static TQCString* _qstring_webAddress = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addAuthor((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress), (const char*) QtSupport::toCharString(env, webAddress, &_qstring_webAddress)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) +{ +static TQCString* _qstring_name = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_task = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_task = 0; +static TQCString* _qstring_emailAddress = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress, jstring webAddress) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_task = 0; +static TQCString* _qstring_emailAddress = 0; +static TQCString* _qstring_webAddress = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->addCredit((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress), (const char*) QtSupport::toCharString(env, webAddress, &_qstring_webAddress)); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_appName(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->appName(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_bugAddress(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->bugAddress(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_copyrightStatement(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->copyrightStatement(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_customAuthorPlainText(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->customAuthorPlainText(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_customAuthorRichText(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->customAuthorRichText(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_TDEAboutData_customAuthorTextEnabled(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TDEAboutData*) QtSupport::getQt(env, obj))->customAuthorTextEnabled(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_koala_TDEAboutData_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (TDEAboutData*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_homepage(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->homepage(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_TDEAboutData_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_license(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->license(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; +static TQCString* _qstring_shortDescription = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; +static TQCString* _qstring_shortDescription = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; +static TQCString* _qstring_shortDescription = 0; +static TQCString* _qstring_copyrightStatement = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement, jstring text) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; +static TQCString* _qstring_shortDescription = 0; +static TQCString* _qstring_copyrightStatement = 0; +static TQCString* _qstring_text = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement), (const char*) QtSupport::toCharString(env, text, &_qstring_text))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement, jstring text, jstring homePageAddress) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; +static TQCString* _qstring_shortDescription = 0; +static TQCString* _qstring_copyrightStatement = 0; +static TQCString* _qstring_text = 0; +static TQCString* _qstring_homePageAddress = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement), (const char*) QtSupport::toCharString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, homePageAddress, &_qstring_homePageAddress))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appName, jstring programName, jstring version, jstring shortDescription, jint licenseType, jstring copyrightStatement, jstring text, jstring homePageAddress, jstring bugsEmailAddress) +{ +static TQCString* _qstring_appName = 0; +static TQCString* _qstring_programName = 0; +static TQCString* _qstring_version = 0; +static TQCString* _qstring_shortDescription = 0; +static TQCString* _qstring_copyrightStatement = 0; +static TQCString* _qstring_text = 0; +static TQCString* _qstring_homePageAddress = 0; +static TQCString* _qstring_bugsEmailAddress = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEAboutDataJBridge((const char*) QtSupport::toCharString(env, appName, &_qstring_appName), (const char*) QtSupport::toCharString(env, programName, &_qstring_programName), (const char*) QtSupport::toCharString(env, version, &_qstring_version), (const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription), (int) licenseType, (const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement), (const char*) QtSupport::toCharString(env, text, &_qstring_text), (const char*) QtSupport::toCharString(env, homePageAddress, &_qstring_homePageAddress), (const char*) QtSupport::toCharString(env, bugsEmailAddress, &_qstring_bugsEmailAddress))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_otherText(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->otherText(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_productName(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->productName(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEAboutData_programLogo(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TDEAboutData*) QtSupport::getQt(env, obj))->programLogo()), "org.kde.qt.TQImage", TRUE); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_programName(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->programName(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setAppName(JNIEnv* env, jobject obj, jstring appName) +{ +static TQCString* _qstring_appName = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setAppName((const char*) QtSupport::toCharString(env, appName, &_qstring_appName)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setBugAddress(JNIEnv* env, jobject obj, jstring bugAddress) +{ +static TQCString* _qstring_bugAddress = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setBugAddress((const char*) QtSupport::toCharString(env, bugAddress, &_qstring_bugAddress)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setCopyrightStatement(JNIEnv* env, jobject obj, jstring copyrightStatement) +{ +static TQCString* _qstring_copyrightStatement = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setCopyrightStatement((const char*) QtSupport::toCharString(env, copyrightStatement, &_qstring_copyrightStatement)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setCustomAuthorText(JNIEnv* env, jobject obj, jstring plainText, jstring richText) +{ +static TQString* _qstring_plainText = 0; +static TQString* _qstring_richText = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setCustomAuthorText((const TQString&)*(TQString*) QtSupport::toTQString(env, plainText, &_qstring_plainText), (const TQString&)*(TQString*) QtSupport::toTQString(env, richText, &_qstring_richText)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setHomepage(JNIEnv* env, jobject obj, jstring homepage) +{ +static TQCString* _qstring_homepage = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setHomepage((const char*) QtSupport::toCharString(env, homepage, &_qstring_homepage)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setLicenseTextFile(JNIEnv* env, jobject obj, jstring file) +{ +static TQString* _qstring_file = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setLicenseTextFile((const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setLicenseText(JNIEnv* env, jobject obj, jstring license) +{ +static TQCString* _qstring_license = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setLicenseText((const char*) QtSupport::toCharString(env, license, &_qstring_license)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setLicense(JNIEnv* env, jobject obj, jint licenseKey) +{ + ((TDEAboutData*) QtSupport::getQt(env, obj))->setLicense((TDEAboutData::LicenseKey) licenseKey); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setOtherText(JNIEnv* env, jobject obj, jstring otherText) +{ +static TQCString* _qstring_otherText = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setOtherText((const char*) QtSupport::toCharString(env, otherText, &_qstring_otherText)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setProductName(JNIEnv* env, jobject obj, jstring name) +{ +static TQCString* _qstring_name = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setProductName((const char*) QtSupport::toCharString(env, name, &_qstring_name)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setProgramLogo(JNIEnv* env, jobject obj, jobject image) +{ + ((TDEAboutData*) QtSupport::getQt(env, obj))->setProgramLogo((const TQImage&)*(const TQImage*) QtSupport::getQt(env, image)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setProgramName(JNIEnv* env, jobject obj, jstring programName) +{ +static TQCString* _qstring_programName = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setProgramName((const char*) QtSupport::toCharString(env, programName, &_qstring_programName)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setShortDescription(JNIEnv* env, jobject obj, jstring shortDescription) +{ +static TQCString* _qstring_shortDescription = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setShortDescription((const char*) QtSupport::toCharString(env, shortDescription, &_qstring_shortDescription)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setTranslator(JNIEnv* env, jobject obj, jstring name, jstring emailAddress) +{ +static TQCString* _qstring_name = 0; +static TQCString* _qstring_emailAddress = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setTranslator((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_setVersion(JNIEnv* env, jobject obj, jstring version) +{ +static TQCString* _qstring_version = 0; + ((TDEAboutData*) QtSupport::getQt(env, obj))->setVersion((const char*) QtSupport::toCharString(env, version, &_qstring_version)); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_shortDescription(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->shortDescription(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEAboutData_unsetCustomAuthorText(JNIEnv* env, jobject obj) +{ + ((TDEAboutData*) QtSupport::getQt(env, obj))->unsetCustomAuthorText(); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEAboutData_version(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TDEAboutData*) QtSupport::getQt(env, obj))->version(); + return QtSupport::fromTQString(env, &_qstring); +} + diff --git a/kdejava/koala/kdejava/TDEAboutData.h b/kdejava/koala/kdejava/TDEAboutData.h new file mode 100644 index 00000000..e436e10e --- /dev/null +++ b/kdejava/koala/kdejava/TDEAboutData.h @@ -0,0 +1,67 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ + +#ifndef __org_kde_koala_TDEAboutData__ +#define __org_kde_koala_TDEAboutData__ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I (JNIEnv *env, jobject, jstring, jstring, jstring, jstring, jint); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_newTDEAboutData__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addAuthor__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_addCredit__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setTranslator (JNIEnv *env, jobject, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setLicenseText (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setLicenseTextFile (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setAppName (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setProgramName (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setProgramLogo (JNIEnv *env, jobject, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setVersion (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setShortDescription (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setLicense (JNIEnv *env, jobject, jint); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setCopyrightStatement (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setOtherText (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setHomepage (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setBugAddress (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setProductName (JNIEnv *env, jobject, jstring); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_appName (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_productName (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_programName (JNIEnv *env, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEAboutData_programLogo (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_version (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_shortDescription (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_homepage (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_bugAddress (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_otherText (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_license (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_copyrightStatement (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_customAuthorPlainText (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_customAuthorRichText (JNIEnv *env, jobject); +extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDEAboutData_customAuthorTextEnabled (JNIEnv *env, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_setCustomAuthorText (JNIEnv *env, jobject, jstring, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_unsetCustomAuthorText (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEAboutData_aboutTranslationTeam (JNIEnv *env, jclass); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_finalize (JNIEnv *env, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEAboutData_dispose (JNIEnv *env, jobject); +extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDEAboutData_isDisposed (JNIEnv *env, jobject); + +#ifdef __cplusplus +} +#endif + +#endif /* __org_kde_koala_TDEAboutData__ */ diff --git a/kdejava/koala/kdejava/TDEInstance.cpp b/kdejava/koala/kdejava/TDEInstance.cpp new file mode 100644 index 00000000..de8d8368 --- /dev/null +++ b/kdejava/koala/kdejava/TDEInstance.cpp @@ -0,0 +1,141 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include +#include +#include + +#include +#include +#include + +class TDEInstanceJBridge : public TDEInstance +{ +public: + TDEInstanceJBridge(const TQCString& arg1) : TDEInstance(arg1) {}; + TDEInstanceJBridge(const TDEAboutData* arg1) : TDEInstance(arg1) {}; + TDEInstanceJBridge(TDEInstance* arg1) : TDEInstance(arg1) {}; + void protected_setConfigName(const TQString& arg1) { + TDEInstance::setConfigName(arg1); + return; + } + ~TDEInstanceJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEInstance_aboutData(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->aboutData(), "org.kde.koala.TDEAboutData"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEInstance_config(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->config(), "org.kde.koala.KConfig"); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEInstance_dirs(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->dirs(), "org.kde.koala.KStandardDirs"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_koala_TDEInstance_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (TDEInstance*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEInstance_iconLoader(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->iconLoader(), "org.kde.koala.KIconLoader"); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_koala_TDEInstance_instanceName(JNIEnv* env, jobject obj) +{ + TQCString _qstring; + _qstring = ((TDEInstance*) QtSupport::getQt(env, obj))->instanceName(); + return QtSupport::fromTQCString(env, &_qstring); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_koala_TDEInstance_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEInstance_mimeSourceFactory(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->mimeSourceFactory(), "org.kde.koala.KMimeSourceFactory"); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_newIconLoader(JNIEnv* env, jobject obj) +{ + ((TDEInstance*) QtSupport::getQt(env, obj))->newIconLoader(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_newTDEInstance__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring instanceName) +{ +static TQCString* _qcstring_instanceName = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEInstanceJBridge((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, instanceName, &_qcstring_instanceName))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEAboutData_2(JNIEnv* env, jobject obj, jobject aboutData) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEInstanceJBridge((const TDEAboutData*) QtSupport::getQt(env, aboutData))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEInstanceInterface_2(JNIEnv* env, jobject obj, jobject src) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TDEInstanceJBridge((TDEInstance*) QtSupport::getQt(env, src))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_koala_TDEInstance_setConfigName(JNIEnv* env, jobject obj, jstring name) +{ +static TQString* _qstring_name = 0; + ((TDEInstanceJBridge*) QtSupport::getQt(env, obj))->protected_setConfigName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)); + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_koala_TDEInstance_sharedConfig(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEInstance*) QtSupport::getQt(env, obj))->sharedConfig(), "org.kde.koala.KSharedConfig"); + return xret; +} + diff --git a/kdejava/koala/kdejava/TDEInstance.h b/kdejava/koala/kdejava/TDEInstance.h new file mode 100644 index 00000000..a75ee4c8 --- /dev/null +++ b/kdejava/koala/kdejava/TDEInstance.h @@ -0,0 +1,33 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ + +#ifndef __org_kde_koala_TDEInstance__ +#define __org_kde_koala_TDEInstance__ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newTDEInstance__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEAboutData_2 (JNIEnv *env, jobject, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newTDEInstance__Lorg_kde_koala_TDEInstanceInterface_2 (JNIEnv *env, jobject, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_dirs (JNIEnv *env, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_config (JNIEnv *env, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_sharedConfig (JNIEnv *env, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_iconLoader (JNIEnv *env, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_newIconLoader (JNIEnv *env, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_aboutData (JNIEnv *env, jobject); +extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDEInstance_instanceName (JNIEnv *env, jobject); +extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDEInstance_mimeSourceFactory (JNIEnv *env, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_setConfigName (JNIEnv *env, jobject, jstring); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_finalize (JNIEnv *env, jobject); +extern JNIEXPORT void JNICALL Java_org_kde_koala_TDEInstance_dispose (JNIEnv *env, jobject); +extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDEInstance_isDisposed (JNIEnv *env, jobject); + +#ifdef __cplusplus +} +#endif + +#endif /* __org_kde_koala_TDEInstance__ */ diff --git a/kdejava/koala/org/kde/koala/KAboutData.java b/kdejava/koala/org/kde/koala/KAboutData.java deleted file mode 100644 index 3e270d32..00000000 --- a/kdejava/koala/org/kde/koala/KAboutData.java +++ /dev/null @@ -1,421 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; -import org.kde.qt.TQImage; - -/** - - This class is used to store information about a program. It can store - such values as version number, program name, home page, email address - for bug reporting, multiple authors and contributors - (using KAboutPerson), license and copyright information. - Currently, the values set here are shown by the "About" box - (see KAboutDialog), used by the bug report dialog (see KBugReport), - and by the help shown on command line (see TDECmdLineArgs). - @author Espen Sand (espen@kde.org), David Faure (faure@kde.org) - - @short Holds information needed by the "About" box and other classes. - -*/ -public class TDEAboutData implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEAboutData(Class dummy){} - - /** - Descibes the license of the software. - @short Descibes the license of the software. - */ - public static final int License_Custom = -2; - public static final int License_File = -1; - public static final int License_Unknown = 0; - public static final int License_GPL = 1; - public static final int License_GPL_V2 = 1; - public static final int License_LGPL = 2; - public static final int License_LGPL_V2 = 2; - public static final int License_BSD = 3; - public static final int License_Artistic = 4; - public static final int License_QPL = 5; - public static final int License_QPL_V1_0 = 5; - - /** - Constructor. - @param appName The program name used internally. Example: "kedit" - @param programName A displayable program name string. This string - should be marked for translation. Example: I18N_NOOP("KEdit") - @param version The program version string. - @param shortDescription A short description of what the program does. - This string should be marked for translation. - Example: I18N_NOOP("A simple text editor.") - @param licenseType The license identifier. Use setLicenseText if - you use a license not predefined here. - @param copyrightStatement A copyright statement, that can look like this: - "(c) 1999-2000, Name". The string specified here is not modified - in any manner. The author information from addAuthor is not - used. - @param text Some free form text, that can contain any kind of - information. The text can contain newlines. This string - should be marked for translation. - @param homePageAddress The program homepage string. - Start the address with "http://". "http://some.domain" is - is correct, "some.domain" is not. - @param bugsEmailAddress The bug report email address string. - This defaults to the kde.org bug system. - @short Constructor. - */ - public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress, String bugsEmailAddress) { - newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text,homePageAddress,bugsEmailAddress); - } - private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress, String bugsEmailAddress); - public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress) { - newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text,homePageAddress); - } - private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress); - public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text) { - newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text); - } - private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text); - public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement) { - newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement); - } - private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement); - public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType) { - newTDEAboutData(appName,programName,version,shortDescription,licenseType); - } - private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType); - public TDEAboutData(String appName, String programName, String version, String shortDescription) { - newTDEAboutData(appName,programName,version,shortDescription); - } - private native void newTDEAboutData(String appName, String programName, String version, String shortDescription); - public TDEAboutData(String appName, String programName, String version) { - newTDEAboutData(appName,programName,version); - } - private native void newTDEAboutData(String appName, String programName, String version); - /** - Defines an author. You can call this function as many times you - need. Each entry is appended to a list. The person in the first entry - is assumed to be the leader of the project. - @param name The developer's name in UTF-8 encoding. - @param task What the person is responsible for. This text can contain - newlines. It should be marked for translation like this: - I18N_NOOP("Task description..."). Can be 0. - @param emailAddress An Email address where the person can be reached. - Can be 0. - @param webAddress The person's homepage or a relevant link. - Start the address with "http://". "http://some.domain" is - correct, "some.domain" is not. Can be 0. - @short Defines an author. - */ - public native void addAuthor(String name, String task, String emailAddress, String webAddress); - public native void addAuthor(String name, String task, String emailAddress); - public native void addAuthor(String name, String task); - public native void addAuthor(String name); - /** - Defines a person that deserves credit. You can call this function - as many times you need. Each entry is appended to a list. - @param name The person's name in UTF-8 encoding. - @param task What the person has done to deserve the honor. The - text can contain newlines. It should be marked for - translation like this: I18N_NOOP("Task description...") - Can be 0. - @param emailAddress An Email address when the person can be reached. - Can be 0. - @param webAddress The person's homepage or a relevant link. - Start the address with "http://". "http://some.domain" is - is correct, "some.domain" is not. Can be 0. - @short Defines a person that deserves credit. - */ - public native void addCredit(String name, String task, String emailAddress, String webAddress); - public native void addCredit(String name, String task, String emailAddress); - public native void addCredit(String name, String task); - public native void addCredit(String name); - /** - Sets the name of the translator of the gui. Since this depends - on the language, just use a dummy text marked for translation. - For example: -
-		 setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\\nYour names")
-		 ,I18N_NOOP("_: EMAIL OF TRANSLATORS\\nYour emails"));
-		 
- The translator can then translate this dummy text with his name - or with a list of names separated with ",". - If there is no translation or the application is used with the - default language, this function call is ignored. - Note: If you are using the default KDE automake environment, - there is no need to use this function, because the two - default strings above are added to the applications po file - automatically. - @param name the name of the translator - @param emailAddress the email address of the translator - @short Sets the name of the translator of the gui. - @see KAboutTranslator - */ - public native void setTranslator(String name, String emailAddress); - /** - Defines a license text. - The text will be translated if it got marked for - translations with the I18N_NOOP() macro. - Example: -
-		 setLicenseText( I18N_NOOP("This is my license"));
-		 
- NOTE: No copy of the text is made. - @param license The license text in utf8 encoding. - @short Defines a license text. - */ - public native void setLicenseText(String license); - /** - Defines a license text. - @param file File containing the license text. - @short Defines a license text. - */ - public native void setLicenseTextFile(String file); - /** - Defines the program name used internally. - @param appName The application name. Example: "kate". - @short Defines the program name used internally. - */ - public native void setAppName(String appName); - /** - Defines the displayable program name string. - @param programName The program name. This string should be - marked for translation. - Example: I18N_NOOP("Advanced Text Editor"). - @short Defines the displayable program name string. - */ - public native void setProgramName(String programName); - /** - Defines the program logo. - Use this if you need to have application logo - in AboutData other than application icon. - @param image logo image. - @short Defines the program logo. - @see #programLogo - */ - public native void setProgramLogo(TQImage image); - /** - Defines the program version string. - @param version The program version. - @short Defines the program version string. - */ - public native void setVersion(String version); - /** - Defines a short description of what the program does. - @param shortDescription The program description This string should be marked - for translation. Example: I18N_NOOP("An advanced text editor - with syntax highlithing support."). - @short Defines a short description of what the program does. - */ - public native void setShortDescription(String shortDescription); - /** - Defines the license identifier. - @param licenseKey The license identifier. - @short Defines the license identifier. - */ - public native void setLicense(int licenseKey); - /** - Defines the copyright statement to show when displaying the license. - @param copyrightStatement A copyright statement, that can look like - this: "(c) 1999-2000, Name". The string specified here is not - modified in any manner. The author information from addAuthor - is not used. - @short Defines the copyright statement to show when displaying the license. - */ - public native void setCopyrightStatement(String copyrightStatement); - /** - Defines the additional text to show in the about dialog. - @param otherText Some free form text, that can contain any kind of - information. The text can contain newlines. This string - should be marked for translation. - @short Defines the additional text to show in the about dialog. - */ - public native void setOtherText(String otherText); - /** - Defines the program homepage. - @param homepage The program homepage string. - Start the address with "http://". "http://kate.kde.org" is - is correct, "kde.kde.org" is not. - @short Defines the program homepage. - */ - public native void setHomepage(String homepage); - /** - Defines the address where bug reports should be sent. - @param bugAddress The bug report email address string. - This defaults to the kde.org bug system. - @short Defines the address where bug reports should be sent. - */ - public native void setBugAddress(String bugAddress); - /** - Defines the product name wich will be used in the KBugReport dialog. - By default it's the appName, but you can overwrite it here to provide - support for special components e.g. 'product/component' like - 'kontact/summary'. - @param name The name of product - @short Defines the product name wich will be used in the KBugReport dialog. - */ - public native void setProductName(String name); - /** - Returns the application's internal name. - @return the internal program name. - - @short Returns the application's internal name. - */ - public native String appName(); - /** - Returns the application's product name, which will be used in KBugReport - dialog. By default it returns appName(), otherwise the one which is set - with setProductName() - @return the product name. - - @short Returns the application's product name, which will be used in KBugReport dialog. - */ - public native String productName(); - /** - Returns the translated program name. - @return the program name (translated). - - @short Returns the translated program name. - */ - public native String programName(); - /** - Returns the program logo image. - @return the program logo data or null image if there is - no custom application logo defined. - - @short Returns the program logo image. - */ - public native TQImage programLogo(); - /** - Returns the program's version. - @return the version string. - - @short Returns the program's version. - */ - public native String version(); - /** - Returns a short, translated description. - @return the short description (translated). Can be - null if not set. - - @short Returns a short, translated description. - */ - public native String shortDescription(); - /** - Returns the application homepage. - @return the application homepage URL. Can be null if - not set. - - @short Returns the application homepage. - */ - public native String homepage(); - /** - Returns the email address for bugs. - @return the email address where to report bugs. - - @short Returns the email address for bugs. - */ - public native String bugAddress(); - /** - Returns a list of authors. - @return author information (list of persons). - - @short Returns a list of authors. - */ - // const TQValueList authors(); >>>> NOT CONVERTED - /** - Returns a list of persons who contributed. - @return credit information (list of persons). - - @short Returns a list of persons who contributed. - */ - // const TQValueList credits(); >>>> NOT CONVERTED - /** - Returns a list of translators. - @return translators information (list of persons) - - @short Returns a list of translators. - */ - // const TQValueList translators(); >>>> NOT CONVERTED - /** - Returns a translated, free form text. - @return the free form text (translated). Can be null if not set. - - @short Returns a translated, free form text. - */ - public native String otherText(); - /** - Returns the license. If the licenseType argument of the constructor has been - used, any text defined by setLicenseText is ignored, - and the standard text for the chosen license will be returned. - @return The license text. - - @short Returns the license. - */ - public native String license(); - /** - Returns the copyright statement. - @return the copyright statement. Can be null if not set. - - @short Returns the copyright statement. - */ - public native String copyrightStatement(); - /** - Returns the plain text displayed around the list of authors instead - of the default message telling users to send bug reports to bugAddress(). - @return the plain text displayed around the list of authors instead - of the default message. Can be null. - - @short Returns the plain text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress(). - */ - public native String customAuthorPlainText(); - /** - Returns the rich text displayed around the list of authors instead - of the default message telling users to send bug reports to bugAddress(). - @return the rich text displayed around the list of authors instead - of the default message. Can be null. - - @short Returns the rich text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress(). - */ - public native String customAuthorRichText(); - /** - Returns whether custom text should be displayed around the list of - authors. - @return whether custom text should be displayed around the list of - authors. - - @short Returns whether custom text should be displayed around the list of authors. - */ - public native boolean customAuthorTextEnabled(); - /** - Sets the custom text displayed around the list of authors instead - of the default message telling users to send bug reports to bugAddress(). - @param plainText The plain text. - @param richText The rich text. - Both parameters can be null to not display any message at - all. Call unsetCustomAuthorText() to revert to the default mesage. - @short Sets the custom text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress(). - */ - public native void setCustomAuthorText(String plainText, String richText); - /** - Clears any custom text displayed around the list of authors and falls - back to the default message telling users to send bug reports to - bugAddress(). - @short Clears any custom text displayed around the list of authors and falls back to the default message telling users to send bug reports to bugAddress(). - */ - public native void unsetCustomAuthorText(); - /** - Returns a message about the translation team. - @return a message about the translation team - - @short Returns a message about the translation team. - */ - public static native String aboutTranslationTeam(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KInstance.java b/kdejava/koala/org/kde/koala/KInstance.java deleted file mode 100644 index a012c30e..00000000 --- a/kdejava/koala/org/kde/koala/KInstance.java +++ /dev/null @@ -1,121 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; - -/** - - Access to KDE global objects for use in shared libraries. In - practical terms, this class is used in KDE components. This allows - components to store things that normally would be accessed by - KGlobal. - @author Torben Weis - - @short Access to KDE global objects for use in shared libraries. - -*/ -public class TDEInstance implements QtSupport, TDEInstanceInterface { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEInstance(Class dummy){} - - /** - Constructor. - @param instanceName the name of the instance - @short Constructor. - */ - public TDEInstance(String instanceName) { - newTDEInstance(instanceName); - } - private native void newTDEInstance(String instanceName); - /** - Constructor. - When building a TDEInstance that is not your TDEApplication, - make sure that the TDEAboutData and the TDEInstance have the same life time. - You have to destroy both, since the instance doesn't own the about data. - Don't build a TDEAboutData on the stack in this case ! - Building a TDEAboutData on the stack is only ok for usage with - TDECmdLineArgs and TDEApplication (not destroyed until the app exits). - @param aboutData data about this instance (see TDEAboutData) - @short Constructor. - */ - public TDEInstance(TDEAboutData aboutData) { - newTDEInstance(aboutData); - } - private native void newTDEInstance(TDEAboutData aboutData); - public TDEInstance(TDEInstanceInterface src) { - newTDEInstance(src); - } - private native void newTDEInstance(TDEInstanceInterface src); - /** - Returns the application standard dirs object. - @return The KStandardDirs of the application. - - @short Returns the application standard dirs object. - */ - public native KStandardDirs dirs(); - /** - Returns the general config object ("appnamerc"). - @return the KConfig object for the instance. - - @short Returns the general config object ("appnamerc"). - */ - public native KConfig config(); - /** - Returns the general config object ("appnamerc"). - @return the KConfig object for the instance. - - @short Returns the general config object ("appnamerc"). - */ - public native KSharedConfig sharedConfig(); - /** - Returns an iconloader object. - @return the iconloader object. - - @short Returns an iconloader object. - */ - public native KIconLoader iconLoader(); - /** - Re-allocate the global iconloader. - @short Re-allocate the global iconloader. - */ - public native void newIconLoader(); - /** - Returns the about data of this instance - Warning, can be null - @return the about data of the instance, or 0 if it has - not been set yet - - @short Returns the about data of this instance Warning, can be 0L - */ - public native TDEAboutData aboutData(); - /** - Returns the name of the instance - @return the instance name, can be null if the TDEInstance has been - created with a null name - - @short Returns the name of the instance - */ - public native String instanceName(); - /** - Returns the KMimeSourceFactory of the instance. - Mainly added for API completeness and future extensibility. - @return the KMimeSourceFactory set as default for this application. - - @short Returns the KMimeSourceFactory of the instance. - */ - public native KMimeSourceFactory mimeSourceFactory(); - /** - Set name of default config file. - @param name the name of the default config file - @short Set name of default config file. - */ - protected native void setConfigName(String name); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KInstanceInterface.java b/kdejava/koala/org/kde/koala/KInstanceInterface.java deleted file mode 100644 index 2e338eb0..00000000 --- a/kdejava/koala/org/kde/koala/KInstanceInterface.java +++ /dev/null @@ -1,15 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.QtSupport; - -public interface TDEInstanceInterface { - KStandardDirs dirs(); - KConfig config(); - KSharedConfig sharedConfig(); - KIconLoader iconLoader(); - void newIconLoader(); - TDEAboutData aboutData(); - String instanceName(); - KMimeSourceFactory mimeSourceFactory(); -} diff --git a/kdejava/koala/org/kde/koala/TDEAboutData.java b/kdejava/koala/org/kde/koala/TDEAboutData.java new file mode 100644 index 00000000..3e270d32 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEAboutData.java @@ -0,0 +1,421 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import org.kde.qt.TQImage; + +/** + + This class is used to store information about a program. It can store + such values as version number, program name, home page, email address + for bug reporting, multiple authors and contributors + (using KAboutPerson), license and copyright information. + Currently, the values set here are shown by the "About" box + (see KAboutDialog), used by the bug report dialog (see KBugReport), + and by the help shown on command line (see TDECmdLineArgs). + @author Espen Sand (espen@kde.org), David Faure (faure@kde.org) + + @short Holds information needed by the "About" box and other classes. + +*/ +public class TDEAboutData implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEAboutData(Class dummy){} + + /** + Descibes the license of the software. + @short Descibes the license of the software. + */ + public static final int License_Custom = -2; + public static final int License_File = -1; + public static final int License_Unknown = 0; + public static final int License_GPL = 1; + public static final int License_GPL_V2 = 1; + public static final int License_LGPL = 2; + public static final int License_LGPL_V2 = 2; + public static final int License_BSD = 3; + public static final int License_Artistic = 4; + public static final int License_QPL = 5; + public static final int License_QPL_V1_0 = 5; + + /** + Constructor. + @param appName The program name used internally. Example: "kedit" + @param programName A displayable program name string. This string + should be marked for translation. Example: I18N_NOOP("KEdit") + @param version The program version string. + @param shortDescription A short description of what the program does. + This string should be marked for translation. + Example: I18N_NOOP("A simple text editor.") + @param licenseType The license identifier. Use setLicenseText if + you use a license not predefined here. + @param copyrightStatement A copyright statement, that can look like this: + "(c) 1999-2000, Name". The string specified here is not modified + in any manner. The author information from addAuthor is not + used. + @param text Some free form text, that can contain any kind of + information. The text can contain newlines. This string + should be marked for translation. + @param homePageAddress The program homepage string. + Start the address with "http://". "http://some.domain" is + is correct, "some.domain" is not. + @param bugsEmailAddress The bug report email address string. + This defaults to the kde.org bug system. + @short Constructor. + */ + public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress, String bugsEmailAddress) { + newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text,homePageAddress,bugsEmailAddress); + } + private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress, String bugsEmailAddress); + public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress) { + newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text,homePageAddress); + } + private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text, String homePageAddress); + public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text) { + newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement,text); + } + private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement, String text); + public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement) { + newTDEAboutData(appName,programName,version,shortDescription,licenseType,copyrightStatement); + } + private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType, String copyrightStatement); + public TDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType) { + newTDEAboutData(appName,programName,version,shortDescription,licenseType); + } + private native void newTDEAboutData(String appName, String programName, String version, String shortDescription, int licenseType); + public TDEAboutData(String appName, String programName, String version, String shortDescription) { + newTDEAboutData(appName,programName,version,shortDescription); + } + private native void newTDEAboutData(String appName, String programName, String version, String shortDescription); + public TDEAboutData(String appName, String programName, String version) { + newTDEAboutData(appName,programName,version); + } + private native void newTDEAboutData(String appName, String programName, String version); + /** + Defines an author. You can call this function as many times you + need. Each entry is appended to a list. The person in the first entry + is assumed to be the leader of the project. + @param name The developer's name in UTF-8 encoding. + @param task What the person is responsible for. This text can contain + newlines. It should be marked for translation like this: + I18N_NOOP("Task description..."). Can be 0. + @param emailAddress An Email address where the person can be reached. + Can be 0. + @param webAddress The person's homepage or a relevant link. + Start the address with "http://". "http://some.domain" is + correct, "some.domain" is not. Can be 0. + @short Defines an author. + */ + public native void addAuthor(String name, String task, String emailAddress, String webAddress); + public native void addAuthor(String name, String task, String emailAddress); + public native void addAuthor(String name, String task); + public native void addAuthor(String name); + /** + Defines a person that deserves credit. You can call this function + as many times you need. Each entry is appended to a list. + @param name The person's name in UTF-8 encoding. + @param task What the person has done to deserve the honor. The + text can contain newlines. It should be marked for + translation like this: I18N_NOOP("Task description...") + Can be 0. + @param emailAddress An Email address when the person can be reached. + Can be 0. + @param webAddress The person's homepage or a relevant link. + Start the address with "http://". "http://some.domain" is + is correct, "some.domain" is not. Can be 0. + @short Defines a person that deserves credit. + */ + public native void addCredit(String name, String task, String emailAddress, String webAddress); + public native void addCredit(String name, String task, String emailAddress); + public native void addCredit(String name, String task); + public native void addCredit(String name); + /** + Sets the name of the translator of the gui. Since this depends + on the language, just use a dummy text marked for translation. + For example: +
+		 setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\\nYour names")
+		 ,I18N_NOOP("_: EMAIL OF TRANSLATORS\\nYour emails"));
+		 
+ The translator can then translate this dummy text with his name + or with a list of names separated with ",". + If there is no translation or the application is used with the + default language, this function call is ignored. + Note: If you are using the default KDE automake environment, + there is no need to use this function, because the two + default strings above are added to the applications po file + automatically. + @param name the name of the translator + @param emailAddress the email address of the translator + @short Sets the name of the translator of the gui. + @see KAboutTranslator + */ + public native void setTranslator(String name, String emailAddress); + /** + Defines a license text. + The text will be translated if it got marked for + translations with the I18N_NOOP() macro. + Example: +
+		 setLicenseText( I18N_NOOP("This is my license"));
+		 
+ NOTE: No copy of the text is made. + @param license The license text in utf8 encoding. + @short Defines a license text. + */ + public native void setLicenseText(String license); + /** + Defines a license text. + @param file File containing the license text. + @short Defines a license text. + */ + public native void setLicenseTextFile(String file); + /** + Defines the program name used internally. + @param appName The application name. Example: "kate". + @short Defines the program name used internally. + */ + public native void setAppName(String appName); + /** + Defines the displayable program name string. + @param programName The program name. This string should be + marked for translation. + Example: I18N_NOOP("Advanced Text Editor"). + @short Defines the displayable program name string. + */ + public native void setProgramName(String programName); + /** + Defines the program logo. + Use this if you need to have application logo + in AboutData other than application icon. + @param image logo image. + @short Defines the program logo. + @see #programLogo + */ + public native void setProgramLogo(TQImage image); + /** + Defines the program version string. + @param version The program version. + @short Defines the program version string. + */ + public native void setVersion(String version); + /** + Defines a short description of what the program does. + @param shortDescription The program description This string should be marked + for translation. Example: I18N_NOOP("An advanced text editor + with syntax highlithing support."). + @short Defines a short description of what the program does. + */ + public native void setShortDescription(String shortDescription); + /** + Defines the license identifier. + @param licenseKey The license identifier. + @short Defines the license identifier. + */ + public native void setLicense(int licenseKey); + /** + Defines the copyright statement to show when displaying the license. + @param copyrightStatement A copyright statement, that can look like + this: "(c) 1999-2000, Name". The string specified here is not + modified in any manner. The author information from addAuthor + is not used. + @short Defines the copyright statement to show when displaying the license. + */ + public native void setCopyrightStatement(String copyrightStatement); + /** + Defines the additional text to show in the about dialog. + @param otherText Some free form text, that can contain any kind of + information. The text can contain newlines. This string + should be marked for translation. + @short Defines the additional text to show in the about dialog. + */ + public native void setOtherText(String otherText); + /** + Defines the program homepage. + @param homepage The program homepage string. + Start the address with "http://". "http://kate.kde.org" is + is correct, "kde.kde.org" is not. + @short Defines the program homepage. + */ + public native void setHomepage(String homepage); + /** + Defines the address where bug reports should be sent. + @param bugAddress The bug report email address string. + This defaults to the kde.org bug system. + @short Defines the address where bug reports should be sent. + */ + public native void setBugAddress(String bugAddress); + /** + Defines the product name wich will be used in the KBugReport dialog. + By default it's the appName, but you can overwrite it here to provide + support for special components e.g. 'product/component' like + 'kontact/summary'. + @param name The name of product + @short Defines the product name wich will be used in the KBugReport dialog. + */ + public native void setProductName(String name); + /** + Returns the application's internal name. + @return the internal program name. + + @short Returns the application's internal name. + */ + public native String appName(); + /** + Returns the application's product name, which will be used in KBugReport + dialog. By default it returns appName(), otherwise the one which is set + with setProductName() + @return the product name. + + @short Returns the application's product name, which will be used in KBugReport dialog. + */ + public native String productName(); + /** + Returns the translated program name. + @return the program name (translated). + + @short Returns the translated program name. + */ + public native String programName(); + /** + Returns the program logo image. + @return the program logo data or null image if there is + no custom application logo defined. + + @short Returns the program logo image. + */ + public native TQImage programLogo(); + /** + Returns the program's version. + @return the version string. + + @short Returns the program's version. + */ + public native String version(); + /** + Returns a short, translated description. + @return the short description (translated). Can be + null if not set. + + @short Returns a short, translated description. + */ + public native String shortDescription(); + /** + Returns the application homepage. + @return the application homepage URL. Can be null if + not set. + + @short Returns the application homepage. + */ + public native String homepage(); + /** + Returns the email address for bugs. + @return the email address where to report bugs. + + @short Returns the email address for bugs. + */ + public native String bugAddress(); + /** + Returns a list of authors. + @return author information (list of persons). + + @short Returns a list of authors. + */ + // const TQValueList authors(); >>>> NOT CONVERTED + /** + Returns a list of persons who contributed. + @return credit information (list of persons). + + @short Returns a list of persons who contributed. + */ + // const TQValueList credits(); >>>> NOT CONVERTED + /** + Returns a list of translators. + @return translators information (list of persons) + + @short Returns a list of translators. + */ + // const TQValueList translators(); >>>> NOT CONVERTED + /** + Returns a translated, free form text. + @return the free form text (translated). Can be null if not set. + + @short Returns a translated, free form text. + */ + public native String otherText(); + /** + Returns the license. If the licenseType argument of the constructor has been + used, any text defined by setLicenseText is ignored, + and the standard text for the chosen license will be returned. + @return The license text. + + @short Returns the license. + */ + public native String license(); + /** + Returns the copyright statement. + @return the copyright statement. Can be null if not set. + + @short Returns the copyright statement. + */ + public native String copyrightStatement(); + /** + Returns the plain text displayed around the list of authors instead + of the default message telling users to send bug reports to bugAddress(). + @return the plain text displayed around the list of authors instead + of the default message. Can be null. + + @short Returns the plain text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress(). + */ + public native String customAuthorPlainText(); + /** + Returns the rich text displayed around the list of authors instead + of the default message telling users to send bug reports to bugAddress(). + @return the rich text displayed around the list of authors instead + of the default message. Can be null. + + @short Returns the rich text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress(). + */ + public native String customAuthorRichText(); + /** + Returns whether custom text should be displayed around the list of + authors. + @return whether custom text should be displayed around the list of + authors. + + @short Returns whether custom text should be displayed around the list of authors. + */ + public native boolean customAuthorTextEnabled(); + /** + Sets the custom text displayed around the list of authors instead + of the default message telling users to send bug reports to bugAddress(). + @param plainText The plain text. + @param richText The rich text. + Both parameters can be null to not display any message at + all. Call unsetCustomAuthorText() to revert to the default mesage. + @short Sets the custom text displayed around the list of authors instead of the default message telling users to send bug reports to bugAddress(). + */ + public native void setCustomAuthorText(String plainText, String richText); + /** + Clears any custom text displayed around the list of authors and falls + back to the default message telling users to send bug reports to + bugAddress(). + @short Clears any custom text displayed around the list of authors and falls back to the default message telling users to send bug reports to bugAddress(). + */ + public native void unsetCustomAuthorText(); + /** + Returns a message about the translation team. + @return a message about the translation team + + @short Returns a message about the translation team. + */ + public static native String aboutTranslationTeam(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEInstance.java b/kdejava/koala/org/kde/koala/TDEInstance.java new file mode 100644 index 00000000..a012c30e --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEInstance.java @@ -0,0 +1,121 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + Access to KDE global objects for use in shared libraries. In + practical terms, this class is used in KDE components. This allows + components to store things that normally would be accessed by + KGlobal. + @author Torben Weis + + @short Access to KDE global objects for use in shared libraries. + +*/ +public class TDEInstance implements QtSupport, TDEInstanceInterface { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEInstance(Class dummy){} + + /** + Constructor. + @param instanceName the name of the instance + @short Constructor. + */ + public TDEInstance(String instanceName) { + newTDEInstance(instanceName); + } + private native void newTDEInstance(String instanceName); + /** + Constructor. + When building a TDEInstance that is not your TDEApplication, + make sure that the TDEAboutData and the TDEInstance have the same life time. + You have to destroy both, since the instance doesn't own the about data. + Don't build a TDEAboutData on the stack in this case ! + Building a TDEAboutData on the stack is only ok for usage with + TDECmdLineArgs and TDEApplication (not destroyed until the app exits). + @param aboutData data about this instance (see TDEAboutData) + @short Constructor. + */ + public TDEInstance(TDEAboutData aboutData) { + newTDEInstance(aboutData); + } + private native void newTDEInstance(TDEAboutData aboutData); + public TDEInstance(TDEInstanceInterface src) { + newTDEInstance(src); + } + private native void newTDEInstance(TDEInstanceInterface src); + /** + Returns the application standard dirs object. + @return The KStandardDirs of the application. + + @short Returns the application standard dirs object. + */ + public native KStandardDirs dirs(); + /** + Returns the general config object ("appnamerc"). + @return the KConfig object for the instance. + + @short Returns the general config object ("appnamerc"). + */ + public native KConfig config(); + /** + Returns the general config object ("appnamerc"). + @return the KConfig object for the instance. + + @short Returns the general config object ("appnamerc"). + */ + public native KSharedConfig sharedConfig(); + /** + Returns an iconloader object. + @return the iconloader object. + + @short Returns an iconloader object. + */ + public native KIconLoader iconLoader(); + /** + Re-allocate the global iconloader. + @short Re-allocate the global iconloader. + */ + public native void newIconLoader(); + /** + Returns the about data of this instance + Warning, can be null + @return the about data of the instance, or 0 if it has + not been set yet + + @short Returns the about data of this instance Warning, can be 0L + */ + public native TDEAboutData aboutData(); + /** + Returns the name of the instance + @return the instance name, can be null if the TDEInstance has been + created with a null name + + @short Returns the name of the instance + */ + public native String instanceName(); + /** + Returns the KMimeSourceFactory of the instance. + Mainly added for API completeness and future extensibility. + @return the KMimeSourceFactory set as default for this application. + + @short Returns the KMimeSourceFactory of the instance. + */ + public native KMimeSourceFactory mimeSourceFactory(); + /** + Set name of default config file. + @param name the name of the default config file + @short Set name of default config file. + */ + protected native void setConfigName(String name); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEInstanceInterface.java b/kdejava/koala/org/kde/koala/TDEInstanceInterface.java new file mode 100644 index 00000000..2e338eb0 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEInstanceInterface.java @@ -0,0 +1,15 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.QtSupport; + +public interface TDEInstanceInterface { + KStandardDirs dirs(); + KConfig config(); + KSharedConfig sharedConfig(); + KIconLoader iconLoader(); + void newIconLoader(); + TDEAboutData aboutData(); + String instanceName(); + KMimeSourceFactory mimeSourceFactory(); +} -- cgit v1.2.1