miqt/qt/multimedia/gen_qcamerafeedbackcontrol.cpp

115 lines
4.2 KiB
C++
Raw Normal View History

2024-11-04 10:15:32 +00:00
#include <QCameraFeedbackControl>
2024-11-19 06:29:06 +00:00
#include <QMediaControl>
2024-11-04 10:15:32 +00:00
#include <QMetaObject>
2024-11-19 06:29:06 +00:00
#include <QObject>
2024-11-04 10:15:32 +00:00
#include <QString>
#include <QByteArray>
#include <cstring>
#include <qcamerafeedbackcontrol.h>
#include "gen_qcamerafeedbackcontrol.h"
#include "_cgo_export.h"
QMetaObject* QCameraFeedbackControl_MetaObject(const QCameraFeedbackControl* self) {
return (QMetaObject*) self->metaObject();
}
void* QCameraFeedbackControl_Metacast(QCameraFeedbackControl* self, const char* param1) {
return self->qt_metacast(param1);
}
struct miqt_string QCameraFeedbackControl_Tr(const char* s) {
QString _ret = QCameraFeedbackControl::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraFeedbackControl_TrUtf8(const char* s) {
QString _ret = QCameraFeedbackControl::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
bool QCameraFeedbackControl_IsEventFeedbackLocked(const QCameraFeedbackControl* self, int param1) {
return self->isEventFeedbackLocked(static_cast<QCameraFeedbackControl::EventType>(param1));
}
bool QCameraFeedbackControl_IsEventFeedbackEnabled(const QCameraFeedbackControl* self, int param1) {
return self->isEventFeedbackEnabled(static_cast<QCameraFeedbackControl::EventType>(param1));
}
bool QCameraFeedbackControl_SetEventFeedbackEnabled(QCameraFeedbackControl* self, int param1, bool param2) {
return self->setEventFeedbackEnabled(static_cast<QCameraFeedbackControl::EventType>(param1), param2);
}
void QCameraFeedbackControl_ResetEventFeedback(QCameraFeedbackControl* self, int param1) {
self->resetEventFeedback(static_cast<QCameraFeedbackControl::EventType>(param1));
}
bool QCameraFeedbackControl_SetEventFeedbackSound(QCameraFeedbackControl* self, int param1, struct miqt_string filePath) {
QString filePath_QString = QString::fromUtf8(filePath.data, filePath.len);
return self->setEventFeedbackSound(static_cast<QCameraFeedbackControl::EventType>(param1), filePath_QString);
}
struct miqt_string QCameraFeedbackControl_Tr2(const char* s, const char* c) {
QString _ret = QCameraFeedbackControl::tr(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraFeedbackControl_Tr3(const char* s, const char* c, int n) {
QString _ret = QCameraFeedbackControl::tr(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraFeedbackControl_TrUtf82(const char* s, const char* c) {
QString _ret = QCameraFeedbackControl::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraFeedbackControl_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QCameraFeedbackControl::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
2024-11-19 06:29:06 +00:00
void QCameraFeedbackControl_Delete(QCameraFeedbackControl* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QCameraFeedbackControl*>( self );
} else {
delete self;
}
2024-11-04 10:15:32 +00:00
}