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

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

class KEMailSettingsJBridge : public KEMailSettings
{
public:
	KEMailSettingsJBridge() : KEMailSettings() {};
	~KEMailSettingsJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_currentProfileName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->currentProfileName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_defaultProfileName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->defaultProfileName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KEMailSettings_finalize(env, obj);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_getSetting(JNIEnv* env, jobject obj, jint s)
{
	TQString  _qstring;
	_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->getSetting((KEMailSettings::Setting) s);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_profiles(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KEMailSettings*) QtSupport::getQt(env, obj))->profiles();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_setDefault(JNIEnv* env, jobject obj, jstring def)
{
static TQString* _qstring_def = 0;
	((KEMailSettings*) QtSupport::getQt(env, obj))->setDefault((const TQString&)*(TQString*) QtSupport::toTQString(env, def, &_qstring_def));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_setProfile(JNIEnv* env, jobject obj, jstring s)
{
static TQString* _qstring_s = 0;
	((KEMailSettings*) QtSupport::getQt(env, obj))->setProfile((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KEMailSettings_setSetting(JNIEnv* env, jobject obj, jint s, jstring v)
{
static TQString* _qstring_v = 0;
	((KEMailSettings*) QtSupport::getQt(env, obj))->setSetting((KEMailSettings::Setting) s, (const TQString&)*(TQString*) QtSupport::toTQString(env, v, &_qstring_v));
	return;
}

