diff options
Diffstat (limited to 'kdejava/koala/kdejava/KMimeMagic.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KMimeMagic.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kdejava/koala/kdejava/KMimeMagic.cpp b/kdejava/koala/kdejava/KMimeMagic.cpp index a2a2a761..f63d146c 100644 --- a/kdejava/koala/kdejava/KMimeMagic.cpp +++ b/kdejava/koala/kdejava/KMimeMagic.cpp @@ -11,7 +11,7 @@ class KMimeMagicJBridge : public KMimeMagic { public: KMimeMagicJBridge() : KMimeMagic() {}; - KMimeMagicJBridge(const TQString& arg1) : KMimeMagic(arg1) {}; + KMimeMagicJBridge(const TTQString& arg1) : KMimeMagic(arg1) {}; static void protected_initStatic() { KMimeMagic::initStatic(); return; @@ -39,25 +39,25 @@ Java_org_kde_koala_KMimeMagic_finalize(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KMimeMagic_findBufferFileType(JNIEnv* env, jobject obj, jbyteArray arg1, jstring filename) { -static TQByteArray* _qbyteArray_arg1 = 0; -static TQString* _qstring_filename = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeMagic*) QtSupport::getQt(env, obj))->findBufferFileType((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, arg1, &_qbyteArray_arg1), (const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename)), "org.kde.koala.KMimeMagicResult"); +static TTQByteArray* _qbyteArray_arg1 = 0; +static TTQString* _qstring_filename = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeMagic*) QtSupport::getQt(env, obj))->findBufferFileType((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, arg1, &_qbyteArray_arg1), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename)), "org.kde.koala.KMimeMagicResult"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_koala_KMimeMagic_findBufferType(JNIEnv* env, jobject obj, jbyteArray p) { -static TQByteArray* _qbyteArray_p = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeMagic*) QtSupport::getQt(env, obj))->findBufferType((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, p, &_qbyteArray_p)), "org.kde.koala.KMimeMagicResult"); +static TTQByteArray* _qbyteArray_p = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeMagic*) QtSupport::getQt(env, obj))->findBufferType((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, p, &_qbyteArray_p)), "org.kde.koala.KMimeMagicResult"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_koala_KMimeMagic_findFileType(JNIEnv* env, jobject obj, jstring _filename) { -static TQString* _qstring__filename = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeMagic*) QtSupport::getQt(env, obj))->findFileType((const TQString&)*(TQString*) QtSupport::toQString(env, _filename, &_qstring__filename)), "org.kde.koala.KMimeMagicResult"); +static TTQString* _qstring__filename = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeMagic*) QtSupport::getQt(env, obj))->findFileType((const TTQString&)*(TTQString*) QtSupport::toTQString(env, _filename, &_qstring__filename)), "org.kde.koala.KMimeMagicResult"); return xret; } @@ -79,7 +79,7 @@ Java_org_kde_koala_KMimeMagic_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KMimeMagic_mergeBufConfig(JNIEnv* env, jobject obj, jstring arg1) { -static TQCString* _qstring_arg1 = 0; +static TTQCString* _qstring_arg1 = 0; jboolean xret = (jboolean) ((KMimeMagic*) QtSupport::getQt(env, obj))->mergeBufConfig((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)); return xret; } @@ -87,8 +87,8 @@ static TQCString* _qstring_arg1 = 0; JNIEXPORT jboolean JNICALL Java_org_kde_koala_KMimeMagic_mergeConfig(JNIEnv* env, jobject obj, jstring configFile) { -static TQString* _qstring_configFile = 0; - jboolean xret = (jboolean) ((KMimeMagic*) QtSupport::getQt(env, obj))->mergeConfig((const TQString&)*(TQString*) QtSupport::toQString(env, configFile, &_qstring_configFile)); +static TTQString* _qstring_configFile = 0; + jboolean xret = (jboolean) ((KMimeMagic*) QtSupport::getQt(env, obj))->mergeConfig((const TTQString&)*(TTQString*) QtSupport::toTQString(env, configFile, &_qstring_configFile)); return xret; } @@ -105,9 +105,9 @@ Java_org_kde_koala_KMimeMagic_newKMimeMagic__(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KMimeMagic_newKMimeMagic__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring configFile) { -static TQString* _qstring_configFile = 0; +static TTQString* _qstring_configFile = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KMimeMagicJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, configFile, &_qstring_configFile))); + QtSupport::setQt(env, obj, new KMimeMagicJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, configFile, &_qstring_configFile))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; |