miqt/qt/multimedia/gen_qsound.h

52 lines
1.5 KiB
C++

#pragma once
#ifndef MIQT_QT_MULTIMEDIA_GEN_QSOUND_H
#define MIQT_QT_MULTIMEDIA_GEN_QSOUND_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QMetaObject;
class QObject;
class QSound;
#else
typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject;
typedef struct QSound QSound;
#endif
QSound* QSound_new(struct miqt_string filename);
QSound* QSound_new2(struct miqt_string filename, QObject* parent);
QMetaObject* QSound_MetaObject(const QSound* self);
void* QSound_Metacast(QSound* self, const char* param1);
struct miqt_string QSound_Tr(const char* s);
struct miqt_string QSound_TrUtf8(const char* s);
void QSound_Play(struct miqt_string filename);
int QSound_Loops(const QSound* self);
int QSound_LoopsRemaining(const QSound* self);
void QSound_SetLoops(QSound* self, int loops);
struct miqt_string QSound_FileName(const QSound* self);
bool QSound_IsFinished(const QSound* self);
void QSound_Play2(QSound* self);
void QSound_Stop(QSound* self);
struct miqt_string QSound_Tr2(const char* s, const char* c);
struct miqt_string QSound_Tr3(const char* s, const char* c, int n);
struct miqt_string QSound_TrUtf82(const char* s, const char* c);
struct miqt_string QSound_TrUtf83(const char* s, const char* c, int n);
void QSound_Delete(QSound* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif