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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KEMailSettings_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KEMailSettings_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KEMailSettings_getSetting(JNIEnv* env, jobject obj, jint s)
{
	QString  _qstring;
	_qstring = ((KEMailSettings*) QtSupport::getQt(env, obj))->getSetting((KEMailSettings::Setting) s);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KEMailSettings_profiles(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KEMailSettings*) QtSupport::getQt(env, obj))->profiles();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

