mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
123 lines
4.4 KiB
C++
123 lines
4.4 KiB
C++
#include <QCameraFeedbackControl>
|
|
#include <QMediaControl>
|
|
#include <QMetaObject>
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QByteArray>
|
|
#include <cstring>
|
|
#include <qcamerafeedbackcontrol.h>
|
|
#include "gen_qcamerafeedbackcontrol.h"
|
|
|
|
#ifndef _Bool
|
|
#define _Bool bool
|
|
#endif
|
|
#include "_cgo_export.h"
|
|
|
|
void QCameraFeedbackControl_virtbase(QCameraFeedbackControl* src, QMediaControl** outptr_QMediaControl) {
|
|
*outptr_QMediaControl = static_cast<QMediaControl*>(src);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
void QCameraFeedbackControl_Delete(QCameraFeedbackControl* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QCameraFeedbackControl*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|