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

#include <qtjava/QtSupport.h>
#include <qtjava/QSessionManager.h>

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSessionManager_allowsErrorInteraction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSessionManager*) QtSupport::getQt(env, obj))->allowsErrorInteraction();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSessionManager_allowsInteraction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSessionManager*) QtSupport::getQt(env, obj))->allowsInteraction();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_cancel(JNIEnv* env, jobject obj)
{
	((QSessionManager*) QtSupport::getQt(env, obj))->cancel();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QSessionManager*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSessionManager_discardCommand(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QSessionManager*) QtSupport::getQt(env, obj))->discardCommand();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSessionManager_isPhase2(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSessionManager*) QtSupport::getQt(env, obj))->isPhase2();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSessionManager_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSessionManager*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_release(JNIEnv* env, jobject obj)
{
	((QSessionManager*) QtSupport::getQt(env, obj))->release();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_requestPhase2(JNIEnv* env, jobject obj)
{
	((QSessionManager*) QtSupport::getQt(env, obj))->requestPhase2();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSessionManager_restartCommand(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QSessionManager*) QtSupport::getQt(env, obj))->restartCommand();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSessionManager_restartHint(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QSessionManager*) QtSupport::getQt(env, obj))->restartHint();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setDiscardCommand(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static QStringList* _qlist_arg1 = 0;
	((QSessionManager*) QtSupport::getQt(env, obj))->setDiscardCommand((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setManagerProperty__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring value)
{
static QString* _qstring_name = 0;
static QString* _qstring_value = 0;
	((QSessionManager*) QtSupport::getQt(env, obj))->setManagerProperty((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setManagerProperty__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jobjectArray value)
{
static QString* _qstring_name = 0;
static QStringList* _qlist_value = 0;
	((QSessionManager*) QtSupport::getQt(env, obj))->setManagerProperty((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, value, &_qlist_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setRestartCommand(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static QStringList* _qlist_arg1 = 0;
	((QSessionManager*) QtSupport::getQt(env, obj))->setRestartCommand((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSessionManager_setRestartHint(JNIEnv* env, jobject obj, jint arg1)
{
	((QSessionManager*) QtSupport::getQt(env, obj))->setRestartHint((QSessionManager::RestartHint) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QSessionManager::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSessionManager_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QSessionManager::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

