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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QAuServer_init(JNIEnv* env, jobject obj, jobject arg1)
{
	((QAuServer*) QtSupport::getQt(env, obj))->init((QSound*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QAuServer_okay(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QAuServer*) QtSupport::getQt(env, obj))->okay();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAuServer_play__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static QString* _qstring_filename = 0;
	((QAuServer*) QtSupport::getQt(env, obj))->play((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAuServer_play__Lorg_kde_qt_QSound_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QAuServer*) QtSupport::getQt(env, obj))->play((QSound*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QAuServer_stop(JNIEnv* env, jobject obj, jobject arg1)
{
	((QAuServer*) QtSupport::getQt(env, obj))->stop((QSound*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QAuServer_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 = QAuServer::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

