#include #include #include #include #include #include #include #include #include "gen_qcameralockscontrol.h" #include "_cgo_export.h" QMetaObject* QCameraLocksControl_MetaObject(const QCameraLocksControl* self) { return (QMetaObject*) self->metaObject(); } void* QCameraLocksControl_Metacast(QCameraLocksControl* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QCameraLocksControl_Tr(const char* s) { QString _ret = QCameraLocksControl::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraLocksControl_TrUtf8(const char* s) { QString _ret = QCameraLocksControl::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QCameraLocksControl_SupportedLocks(const QCameraLocksControl* self) { QCamera::LockTypes _ret = self->supportedLocks(); return static_cast(_ret); } int QCameraLocksControl_LockStatus(const QCameraLocksControl* self, int lock) { QCamera::LockStatus _ret = self->lockStatus(static_cast(lock)); return static_cast(_ret); } void QCameraLocksControl_SearchAndLock(QCameraLocksControl* self, int locks) { self->searchAndLock(static_cast(locks)); } void QCameraLocksControl_Unlock(QCameraLocksControl* self, int locks) { self->unlock(static_cast(locks)); } void QCameraLocksControl_LockStatusChanged(QCameraLocksControl* self, int typeVal, int status, int reason) { self->lockStatusChanged(static_cast(typeVal), static_cast(status), static_cast(reason)); } void QCameraLocksControl_connect_LockStatusChanged(QCameraLocksControl* self, intptr_t slot) { QCameraLocksControl::connect(self, static_cast(&QCameraLocksControl::lockStatusChanged), self, [=](QCamera::LockType typeVal, QCamera::LockStatus status, QCamera::LockChangeReason reason) { QCamera::LockType typeVal_ret = typeVal; int sigval1 = static_cast(typeVal_ret); QCamera::LockStatus status_ret = status; int sigval2 = static_cast(status_ret); QCamera::LockChangeReason reason_ret = reason; int sigval3 = static_cast(reason_ret); miqt_exec_callback_QCameraLocksControl_LockStatusChanged(slot, sigval1, sigval2, sigval3); }); } struct miqt_string QCameraLocksControl_Tr2(const char* s, const char* c) { QString _ret = QCameraLocksControl::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraLocksControl_Tr3(const char* s, const char* c, int n) { QString _ret = QCameraLocksControl::tr(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraLocksControl_TrUtf82(const char* s, const char* c) { QString _ret = QCameraLocksControl::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraLocksControl_TrUtf83(const char* s, const char* c, int n) { QString _ret = QCameraLocksControl::trUtf8(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QCameraLocksControl_Delete(QCameraLocksControl* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }