//Auto-generated by kalyptus. DO NOT EDIT.
#include <tderecentdocument.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <kurl.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/TDERecentDocument.h>

class TDERecentDocumentJBridge : public TDERecentDocument
{
public:
	TDERecentDocumentJBridge() : TDERecentDocument() {};
	~TDERecentDocumentJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_add__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring documentStr)
{
	(void) cls;
static TQString* _qstring_documentStr = 0;
	TDERecentDocumentJBridge::add((const TQString&)*(TQString*) QtSupport::toTQString(env, documentStr, &_qstring_documentStr));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_add__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring documentStr, jboolean isURL)
{
	(void) cls;
static TQString* _qstring_documentStr = 0;
	TDERecentDocumentJBridge::add((const TQString&)*(TQString*) QtSupport::toTQString(env, documentStr, &_qstring_documentStr), (bool) isURL);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_add__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	TDERecentDocumentJBridge::add((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_add__Lorg_trinitydesktop_koala_KURL_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject url, jstring desktopEntryName)
{
	(void) cls;
static TQString* _qstring_desktopEntryName = 0;
	TDERecentDocumentJBridge::add((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, desktopEntryName, &_qstring_desktopEntryName));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_clear(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TDERecentDocumentJBridge::clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDERecentDocument_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TDERecentDocument*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_maximumItems(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TDERecentDocumentJBridge::maximumItems();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_newTDERecentDocument(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDERecentDocumentJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_recentDocumentDirectory(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TDERecentDocumentJBridge::recentDocumentDirectory();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDERecentDocument_recentDocuments(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = TDERecentDocumentJBridge::recentDocuments();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

