diff options
Diffstat (limited to 'tdejava/koala/tdejava/KSimpleFileFilter.cpp')
-rw-r--r-- | tdejava/koala/tdejava/KSimpleFileFilter.cpp | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/KSimpleFileFilter.cpp b/tdejava/koala/tdejava/KSimpleFileFilter.cpp new file mode 100644 index 00000000..c0f74e72 --- /dev/null +++ b/tdejava/koala/tdejava/KSimpleFileFilter.cpp @@ -0,0 +1,139 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tdefilefilter.h> +#include <tqstring.h> +#include <tqstringlist.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/KSimpleFileFilter.h> + +class KSimpleFileFilterJBridge : public KSimpleFileFilter +{ +public: + KSimpleFileFilterJBridge() : KSimpleFileFilter() {}; + ~KSimpleFileFilterJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_dispose(JNIEnv* env, jobject obj) +{ + Java_org_trinitydesktop_koala_KSimpleFileFilter_finalize(env, obj); + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_filterDotFiles(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->filterDotFiles(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_filterSpecials(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->filterSpecials(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (KSimpleFileFilter*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jobject JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_mimeFilters(JNIEnv* env, jobject obj) +{ + TQStringList _qlist; + _qlist = ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->mimeFilters(); + return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist); +} + +JNIEXPORT jlong JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_modeFilter(JNIEnv* env, jobject obj) +{ + jlong xret = (jlong) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->modeFilter(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_newKSimpleFileFilter(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KSimpleFileFilterJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_passesFilter(JNIEnv* env, jobject obj, jobject item) +{ + jboolean xret = (jboolean) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->passesFilter((const KFileItem*) QtSupport::getQt(env, item)); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setFilterDotFiles(JNIEnv* env, jobject obj, jboolean filter) +{ + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setFilterDotFiles((bool) filter); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setFilterSpecials(JNIEnv* env, jobject obj, jboolean filter) +{ + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setFilterSpecials((bool) filter); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setMimeFilters(JNIEnv* env, jobject obj, jobjectArray mimeFilters) +{ +static TQStringList* _qlist_mimeFilters = 0; + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setMimeFilters((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, mimeFilters, &_qlist_mimeFilters)); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setModeFilter(JNIEnv* env, jobject obj, jlong mode) +{ + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setModeFilter((mode_t) mode); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setNameFilters__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilters) +{ +static TQString* _qstring_nameFilters = 0; + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setNameFilters((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilters, &_qstring_nameFilters)); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setNameFilters__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring nameFilters, jboolean caseSensitive) +{ +static TQString* _qstring_nameFilters = 0; + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setNameFilters((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilters, &_qstring_nameFilters), (bool) caseSensitive); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KSimpleFileFilter_setNameFilters__Ljava_lang_String_2ZC(JNIEnv* env, jobject obj, jstring nameFilters, jboolean caseSensitive, jchar separator) +{ +static TQString* _qstring_nameFilters = 0; +static TQChar* _qchar_separator = 0; + ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setNameFilters((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilters, &_qstring_nameFilters), (bool) caseSensitive, (const TQChar&)*(TQChar*) QtSupport::toTQChar(env, separator, &_qchar_separator)); + return; +} + |