//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <krfcdate.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KRFCDate.h>

class KRFCDateJBridge : public KRFCDate
{
public:
	KRFCDateJBridge() : KRFCDate() {};
	~KRFCDateJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KRFCDate_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KRFCDate_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KRFCDate_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KRFCDate_localUTCOffset(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KRFCDateJBridge::localUTCOffset();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KRFCDate_parseDateISO8601(JNIEnv* env, jclass cls, jstring date)
{
	(void) cls;
static QString* _qstring_date = 0;
	jint xret = (jint) KRFCDateJBridge::parseDateISO8601((const QString&)*(QString*) QtSupport::toQString(env, date, &_qstring_date));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KRFCDate_parseDate(JNIEnv* env, jclass cls, jstring date)
{
	(void) cls;
static QString* _qstring_date = 0;
	jint xret = (jint) KRFCDateJBridge::parseDate((const QString&)*(QString*) QtSupport::toQString(env, date, &_qstring_date));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRFCDate_rfc2822DateString__I(JNIEnv* env, jclass cls, jint utcTime)
{
	QCString  _qstring;
	(void) cls;
	_qstring = KRFCDateJBridge::rfc2822DateString((time_t) utcTime);
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KRFCDate_rfc2822DateString__II(JNIEnv* env, jclass cls, jint utcTime, jint utcOffset)
{
	QCString  _qstring;
	(void) cls;
	_qstring = KRFCDateJBridge::rfc2822DateString((time_t) utcTime, (int) utcOffset);
	return QtSupport::fromQCString(env, &_qstring);
}

