diff options
Diffstat (limited to 'tdejava/koala/tdejava/KRFCDate.cpp')
-rw-r--r-- | tdejava/koala/tdejava/KRFCDate.cpp | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/tdejava/koala/tdejava/KRFCDate.cpp b/tdejava/koala/tdejava/KRFCDate.cpp new file mode 100644 index 00000000..6d554f6e --- /dev/null +++ b/tdejava/koala/tdejava/KRFCDate.cpp @@ -0,0 +1,94 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tqstring.h> +#include <krfcdate.h> +#include <tqcstring.h> + +#include <qtjava/QtSupport.h> +#include <tdejava/TDESupport.h> +#include <tdejava/KRFCDate.h> + +class KRFCDateJBridge : public KRFCDate +{ +public: + KRFCDateJBridge() : KRFCDate() {}; + ~KRFCDateJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRFCDate_dispose(JNIEnv* env, jobject obj) +{ + Java_org_trinitydesktop_koala_KRFCDate_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRFCDate_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (KRFCDate*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_trinitydesktop_koala_KRFCDate_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KRFCDate_localUTCOffset(JNIEnv* env, jclass cls) +{ + (void) cls; + (void) env; + jint xret = (jint) KRFCDateJBridge::localUTCOffset(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_trinitydesktop_koala_KRFCDate_newKRFCDate(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new KRFCDateJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KRFCDate_parseDateISO8601(JNIEnv* env, jclass cls, jstring date) +{ + (void) cls; +static TQString* _qstring_date = 0; + jint xret = (jint) KRFCDateJBridge::parseDateISO8601((const TQString&)*(TQString*) QtSupport::toTQString(env, date, &_qstring_date)); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_trinitydesktop_koala_KRFCDate_parseDate(JNIEnv* env, jclass cls, jstring date) +{ + (void) cls; +static TQString* _qstring_date = 0; + jint xret = (jint) KRFCDateJBridge::parseDate((const TQString&)*(TQString*) QtSupport::toTQString(env, date, &_qstring_date)); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_KRFCDate_rfc2822DateString__I(JNIEnv* env, jclass cls, jint utcTime) +{ + TQCString _qstring; + (void) cls; + _qstring = KRFCDateJBridge::rfc2822DateString((time_t) utcTime); + return QtSupport::fromTQCString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_trinitydesktop_koala_KRFCDate_rfc2822DateString__II(JNIEnv* env, jclass cls, jint utcTime, jint utcOffset) +{ + TQCString _qstring; + (void) cls; + _qstring = KRFCDateJBridge::rfc2822DateString((time_t) utcTime, (int) utcOffset); + return QtSupport::fromTQCString(env, &_qstring); +} + |