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

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

class KAudioPlayerJBridge : public KAudioPlayer
{
public:
	KAudioPlayerJBridge(const QString& arg1,QObject* arg2,const char* arg3) : KAudioPlayer(arg1,arg2,arg3) {};
	KAudioPlayerJBridge(const QString& arg1,QObject* arg2) : KAudioPlayer(arg1,arg2) {};
	KAudioPlayerJBridge(const QString& arg1) : KAudioPlayer(arg1) {};
	~KAudioPlayerJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KAudioPlayer",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KAudioPlayer_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KAudioPlayer*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KAudioPlayer*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_newKAudioPlayer__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static QString* _qstring_filename = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAudioPlayerJBridge((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_newKAudioPlayer__Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jstring filename, jobject parent)
{
static QString* _qstring_filename = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAudioPlayerJBridge((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_newKAudioPlayer__Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jobject parent, jstring name)
{
static QString* _qstring_filename = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KAudioPlayerJBridge((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_play__(JNIEnv* env, jobject obj)
{
	((KAudioPlayer*) QtSupport::getQt(env, obj))->play();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KAudioPlayer_play__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filename)
{
	(void) cls;
static QString* _qstring_filename = 0;
	KAudioPlayerJBridge::play((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return;
}

