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

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

class KAboutPersonJBridge : public KAboutPerson
{
public:
	KAboutPersonJBridge(const char* arg1,const char* arg2,const char* arg3,const char* arg4) : KAboutPerson(arg1,arg2,arg3,arg4) {};
	KAboutPersonJBridge() : KAboutPerson() {};
	~KAboutPersonJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KAboutPerson_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KAboutPerson_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KAboutPerson_emailAddress(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KAboutPerson*) QtSupport::getQt(env, obj))->emailAddress();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KAboutPerson_name(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KAboutPerson*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAboutPerson_newKAboutPerson__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring task, jstring emailAddress, jstring webAddress)
{
static QCString* _qstring_name = 0;
static QCString* _qstring_task = 0;
static QCString* _qstring_emailAddress = 0;
static QCString* _qstring_webAddress = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAboutPersonJBridge((const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, task, &_qstring_task), (const char*) QtSupport::toCharString(env, emailAddress, &_qstring_emailAddress), (const char*) QtSupport::toCharString(env, webAddress, &_qstring_webAddress)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KAboutPerson_task(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KAboutPerson*) QtSupport::getQt(env, obj))->task();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KAboutPerson_webAddress(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KAboutPerson*) QtSupport::getQt(env, obj))->webAddress();
	return QtSupport::fromQString(env, &_qstring);
}

