PythonQtWrapper_QSound.h
44 lines
| 1.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSOUND_H | ||
#define PYTHONQTWRAPPER_QSOUND_H | ||||
#include <qsound.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
florianlink
|
r24 | class PythonQtShell_QSound : public QSound | ||
{ | ||||
public: | ||||
PythonQtShell_QSound(const QString& filename, QObject* parent = 0):QSound(filename, parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QSound : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QSound* new_QSound(const QString& filename, QObject* parent = 0); | ||||
void delete_QSound(QSound* obj) { delete obj; } | ||||
florianlink
|
r28 | bool static_QSound_isAvailable(); | ||
florianlink
|
r73 | bool isFinished(QSound* theWrappedObject) const; | ||
florianlink
|
r13 | int loopsRemaining(QSound* theWrappedObject) const; | ||
florianlink
|
r73 | void static_QSound_play(const QString& filename); | ||
int loops(QSound* theWrappedObject) const; | ||||
florianlink
|
r28 | void setLoops(QSound* theWrappedObject, int arg__1); | ||
florianlink
|
r73 | QString fileName(QSound* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSOUND_H | ||||