miqt/qt/multimedia/gen_qmediaplaylist.h

110 lines
5.6 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYLIST_H
#define MIQT_QT_MULTIMEDIA_GEN_QMEDIAPLAYLIST_H
2024-11-04 10:15:32 +00:00
#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 QIODevice;
class QMediaContent;
class QMediaObject;
class QMediaPlaylist;
class QMetaObject;
class QNetworkRequest;
class QObject;
class QUrl;
#else
typedef struct QIODevice QIODevice;
typedef struct QMediaContent QMediaContent;
typedef struct QMediaObject QMediaObject;
typedef struct QMediaPlaylist QMediaPlaylist;
typedef struct QMetaObject QMetaObject;
typedef struct QNetworkRequest QNetworkRequest;
typedef struct QObject QObject;
typedef struct QUrl QUrl;
#endif
QMediaPlaylist* QMediaPlaylist_new();
QMediaPlaylist* QMediaPlaylist_new2(QObject* parent);
QMetaObject* QMediaPlaylist_MetaObject(const QMediaPlaylist* self);
void* QMediaPlaylist_Metacast(QMediaPlaylist* self, const char* param1);
struct miqt_string QMediaPlaylist_Tr(const char* s);
struct miqt_string QMediaPlaylist_TrUtf8(const char* s);
QMediaObject* QMediaPlaylist_MediaObject(const QMediaPlaylist* self);
int QMediaPlaylist_PlaybackMode(const QMediaPlaylist* self);
void QMediaPlaylist_SetPlaybackMode(QMediaPlaylist* self, int mode);
int QMediaPlaylist_CurrentIndex(const QMediaPlaylist* self);
QMediaContent* QMediaPlaylist_CurrentMedia(const QMediaPlaylist* self);
int QMediaPlaylist_NextIndex(const QMediaPlaylist* self);
int QMediaPlaylist_PreviousIndex(const QMediaPlaylist* self);
QMediaContent* QMediaPlaylist_Media(const QMediaPlaylist* self, int index);
int QMediaPlaylist_MediaCount(const QMediaPlaylist* self);
bool QMediaPlaylist_IsEmpty(const QMediaPlaylist* self);
bool QMediaPlaylist_IsReadOnly(const QMediaPlaylist* self);
bool QMediaPlaylist_AddMedia(QMediaPlaylist* self, QMediaContent* content);
bool QMediaPlaylist_AddMediaWithItems(QMediaPlaylist* self, struct miqt_array /* of QMediaContent* */ items);
2024-11-04 10:15:32 +00:00
bool QMediaPlaylist_InsertMedia(QMediaPlaylist* self, int index, QMediaContent* content);
bool QMediaPlaylist_InsertMedia2(QMediaPlaylist* self, int index, struct miqt_array /* of QMediaContent* */ items);
2024-11-04 10:15:32 +00:00
bool QMediaPlaylist_MoveMedia(QMediaPlaylist* self, int from, int to);
bool QMediaPlaylist_RemoveMedia(QMediaPlaylist* self, int pos);
bool QMediaPlaylist_RemoveMedia2(QMediaPlaylist* self, int start, int end);
bool QMediaPlaylist_Clear(QMediaPlaylist* self);
void QMediaPlaylist_Load(QMediaPlaylist* self, QNetworkRequest* request);
void QMediaPlaylist_LoadWithLocation(QMediaPlaylist* self, QUrl* location);
void QMediaPlaylist_LoadWithDevice(QMediaPlaylist* self, QIODevice* device);
bool QMediaPlaylist_Save(QMediaPlaylist* self, QUrl* location);
bool QMediaPlaylist_Save2(QMediaPlaylist* self, QIODevice* device, const char* format);
int QMediaPlaylist_Error(const QMediaPlaylist* self);
struct miqt_string QMediaPlaylist_ErrorString(const QMediaPlaylist* self);
void QMediaPlaylist_Shuffle(QMediaPlaylist* self);
void QMediaPlaylist_Next(QMediaPlaylist* self);
void QMediaPlaylist_Previous(QMediaPlaylist* self);
void QMediaPlaylist_SetCurrentIndex(QMediaPlaylist* self, int index);
void QMediaPlaylist_CurrentIndexChanged(QMediaPlaylist* self, int index);
void QMediaPlaylist_connect_CurrentIndexChanged(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_PlaybackModeChanged(QMediaPlaylist* self, int mode);
void QMediaPlaylist_connect_PlaybackModeChanged(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_CurrentMediaChanged(QMediaPlaylist* self, QMediaContent* param1);
void QMediaPlaylist_connect_CurrentMediaChanged(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_MediaAboutToBeInserted(QMediaPlaylist* self, int start, int end);
void QMediaPlaylist_connect_MediaAboutToBeInserted(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_MediaInserted(QMediaPlaylist* self, int start, int end);
void QMediaPlaylist_connect_MediaInserted(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_MediaAboutToBeRemoved(QMediaPlaylist* self, int start, int end);
void QMediaPlaylist_connect_MediaAboutToBeRemoved(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_MediaRemoved(QMediaPlaylist* self, int start, int end);
void QMediaPlaylist_connect_MediaRemoved(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_MediaChanged(QMediaPlaylist* self, int start, int end);
void QMediaPlaylist_connect_MediaChanged(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_Loaded(QMediaPlaylist* self);
void QMediaPlaylist_connect_Loaded(QMediaPlaylist* self, intptr_t slot);
void QMediaPlaylist_LoadFailed(QMediaPlaylist* self);
void QMediaPlaylist_connect_LoadFailed(QMediaPlaylist* self, intptr_t slot);
struct miqt_string QMediaPlaylist_Tr2(const char* s, const char* c);
struct miqt_string QMediaPlaylist_Tr3(const char* s, const char* c, int n);
struct miqt_string QMediaPlaylist_TrUtf82(const char* s, const char* c);
struct miqt_string QMediaPlaylist_TrUtf83(const char* s, const char* c, int n);
int QMediaPlaylist_NextIndex1(const QMediaPlaylist* self, int steps);
int QMediaPlaylist_PreviousIndex1(const QMediaPlaylist* self, int steps);
void QMediaPlaylist_Load2(QMediaPlaylist* self, QNetworkRequest* request, const char* format);
void QMediaPlaylist_Load22(QMediaPlaylist* self, QUrl* location, const char* format);
void QMediaPlaylist_Load23(QMediaPlaylist* self, QIODevice* device, const char* format);
bool QMediaPlaylist_Save22(QMediaPlaylist* self, QUrl* location, const char* format);
void QMediaPlaylist_Delete(QMediaPlaylist* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif