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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAuServer_init(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQAuServer*) QtSupport::getQt(env, obj))->init((TQSound*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QAuServer_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQAuServer*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAuServer_play__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static TQString* _qstring_filename = 0;
	((TQAuServer*) QtSupport::getQt(env, obj))->play((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAuServer_play__Lorg_trinitydesktop_qt_QSound_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQAuServer*) QtSupport::getQt(env, obj))->play((TQSound*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QAuServer_stop(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQAuServer*) QtSupport::getQt(env, obj))->stop((TQSound*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QAuServer_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQAuServer::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QAuServer_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQAuServer::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

