/***************************************************************************
                            qt_QSound.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QSound.h"
}

#include <qsound.h>

class QSoundBridge : public QSound
{
public:
	QSoundBridge(const QString& filename, QObject* parent, const char* name) : QSound(filename, parent, name) {}
	~QSoundBridge() {}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QSound * qt_new_QSound(qt_QString * filename, qt_QObject * parent, char* name){
	return (qt_QSound *) new QSoundBridge((QString&)* (QString*)filename, (QObject*)parent, (char*)name);
}
void qt_del_QSound( qt_QSound* p ){
	delete (QSoundBridge*) p;
}
int qt_QSound_loops( qt_QSound* instPointer){
	return (int) ((QSoundBridge*)instPointer)->loops();
}
int qt_QSound_loopsRemaining( qt_QSound* instPointer){
	return (int) ((QSoundBridge*)instPointer)->loopsRemaining();
}
void qt_QSound_setLoops( qt_QSound* instPointer,int arg1){
	((QSoundBridge*)instPointer)->setLoops((int)arg1);
	return;
}
qt_QString * qt_QSound_fileName( qt_QSound* instPointer){
	return (qt_QString *)new QString(((QSoundBridge*)instPointer)->fileName());
}
int qt_QSound_isFinished( qt_QSound* instPointer){
	return (int) ((QSoundBridge*)instPointer)->isFinished();
}
void qt_QSound_play( qt_QSound* instPointer){
	((QSoundBridge*)instPointer)->play();
	return;
}
void qt_QSound_stop( qt_QSound* instPointer){
	((QSoundBridge*)instPointer)->stop();
	return;
}
int qt_QSound_isAvailable( ){
	return (int) QSoundBridge::isAvailable();
}
void qt_QSound_play1( qt_QString * filename){
	QSoundBridge::play((QString&)* (QString*)filename);
	return;
}
int qt_QSound_available( ){
	return (int) QSoundBridge::available();
}
