diff options
Diffstat (limited to 'tdejava/koala/tdejava/KTar.cpp')
-rw-r--r-- | tdejava/koala/tdejava/KTar.cpp | 208 |
1 files changed, 208 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/KTar.cpp b/tdejava/koala/tdejava/KTar.cpp new file mode 100644 index 00000000..a88b3893 --- /dev/null +++ b/tdejava/koala/tdejava/KTar.cpp @@ -0,0 +1,208 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <ktar.h> +#include <tqstring.h> +#include <tqcstring.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/KTar.h> + +class KTarJBridge : public KTar +{ +public: + KTarJBridge(const TQString& arg1,const TQString& arg2) : KTar(arg1,arg2) {}; + KTarJBridge(const TQString& arg1) : KTar(arg1) {}; + KTarJBridge(TQIODevice* arg1) : KTar(arg1) {}; + bool protected_openArchive(int arg1) { + return (bool) KTar::openArchive(arg1); + } + bool protected_closeArchive() { + return (bool) KTar::closeArchive(); + } + bool protected_prepareWriting_impl(const TQString& arg1,const TQString& arg2,const TQString& arg3,uint arg4,mode_t arg5,time_t arg6,time_t arg7,time_t arg8) { + return (bool) KTar::prepareWriting_impl(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + } + bool protected_writeDir_impl(const TQString& arg1,const TQString& arg2,const TQString& arg3,mode_t arg4,time_t arg5,time_t arg6,time_t arg7) { + return (bool) KTar::writeDir_impl(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + } + bool protected_writeSymLink_impl(const TQString& arg1,const TQString& arg2,const TQString& arg3,const TQString& arg4,mode_t arg5,time_t arg6,time_t arg7,time_t arg8) { + return (bool) KTar::writeSymLink_impl(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + } + ~KTarJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_closeArchive(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((KTarJBridge*) QtSupport::getQt(env, obj))->protected_closeArchive(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KTar_dispose(JNIEnv* env, jobject obj) +{ + Java_org_trinitydesktop_koala_KTar_finalize(env, obj); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_doneWriting(JNIEnv* env, jobject obj, jint size) +{ + jboolean xret = (jboolean) ((KTar*) QtSupport::getQt(env, obj))->doneWriting((uint) size); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_KTar_fileName(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((KTar*) QtSupport::getQt(env, obj))->fileName(); + return QtSupport::fromTQString(env, &_qstring); +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KTar_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (KTar*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KTar_newKTar__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename) +{ +static TQString* _qstring_filename = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KTarJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KTar_newKTar__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring mimetype) +{ +static TQString* _qstring_filename = 0; +static TQString* _qstring_mimetype = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KTarJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, mimetype, &_qstring_mimetype))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KTar_newKTar__Lorg_trinitydesktop_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject dev) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KTarJBridge((TQIODevice*) QtSupport::getQt(env, dev))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_openArchive(JNIEnv* env, jobject obj, jint mode) +{ + jboolean xret = (jboolean) ((KTarJBridge*) QtSupport::getQt(env, obj))->protected_openArchive((int) mode); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_prepareWriting_1impl(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size, jlong perm, jint atime, jint mtime, jint ctime) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTarJBridge*) QtSupport::getQt(env, obj))->protected_prepareWriting_impl((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (uint) size, (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_prepareWriting__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTar*) QtSupport::getQt(env, obj))->prepareWriting((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (uint) size); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_prepareWriting__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2IJIII(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size, jlong perm, jint atime, jint mtime, jint ctime) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTar*) QtSupport::getQt(env, obj))->prepareWriting((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (uint) size, (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KTar_setOrigFileName(JNIEnv* env, jobject obj, jstring fileName) +{ +static TQCString* _qcstring_fileName = 0; + ((KTar*) QtSupport::getQt(env, obj))->setOrigFileName((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, fileName, &_qcstring_fileName)); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_writeDir_1impl(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jlong perm, jint atime, jint mtime, jint ctime) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTarJBridge*) QtSupport::getQt(env, obj))->protected_writeDir_impl((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_writeDir__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTar*) QtSupport::getQt(env, obj))->writeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group)); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_writeDir__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2JIII(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jlong perm, jint atime, jint mtime, jint ctime) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTar*) QtSupport::getQt(env, obj))->writeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_writeSymLink_1impl(JNIEnv* env, jobject obj, jstring name, jstring target, jstring user, jstring group, jlong perm, jint atime, jint mtime, jint ctime) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_target = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTarJBridge*) QtSupport::getQt(env, obj))->protected_writeSymLink_impl((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, target, &_qstring_target), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KTar_writeSymLink(JNIEnv* env, jobject obj, jstring name, jstring target, jstring user, jstring group, jlong perm, jint atime, jint mtime, jint ctime) +{ +static TQString* _qstring_name = 0; +static TQString* _qstring_target = 0; +static TQString* _qstring_user = 0; +static TQString* _qstring_group = 0; + jboolean xret = (jboolean) ((KTar*) QtSupport::getQt(env, obj))->writeSymLink((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, target, &_qstring_target), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime); + return xret; +} + |