miqt/qt/gen_qmetaobject.cpp

549 lines
26 KiB
C++
Raw Normal View History

#include <QByteArray>
#include <QGenericArgument>
#include <QGenericReturnArgument>
#include <QList>
#include <QMetaClassInfo>
#include <QMetaEnum>
#include <QMetaMethod>
#include <QMetaObject>
#include <QMetaProperty>
#include <QObject>
#include <QVariant>
2024-08-29 07:01:51 +00:00
#include "qmetaobject.h"
2024-08-29 07:01:51 +00:00
#include "gen_qmetaobject.h"
extern "C" {
extern void miqt_exec_callback(void* cb, int argc, void* argv);
}
QMetaMethod* QMetaMethod_new() {
return new QMetaMethod();
}
QMetaMethod* QMetaMethod_new2(QMetaMethod* param1) {
return new QMetaMethod(*param1);
}
QByteArray* QMetaMethod_MethodSignature(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
QByteArray ret = const_cast<const QMetaMethod*>(self)->methodSignature();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(ret));
}
QByteArray* QMetaMethod_Name(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
QByteArray ret = const_cast<const QMetaMethod*>(self)->name();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(ret));
}
2024-08-29 07:01:51 +00:00
const char* QMetaMethod_TypeName(QMetaMethod* self) {
return (const char*) const_cast<const QMetaMethod*>(self)->typeName();
}
int QMetaMethod_ReturnType(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->returnType();
}
int QMetaMethod_ParameterCount(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->parameterCount();
}
int QMetaMethod_ParameterType(QMetaMethod* self, int index) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->parameterType(static_cast<int>(index));
}
void QMetaMethod_GetParameterTypes(QMetaMethod* self, int* types) {
2024-08-29 07:01:51 +00:00
const_cast<const QMetaMethod*>(self)->getParameterTypes(static_cast<int*>(types));
}
void QMetaMethod_ParameterTypes(QMetaMethod* self, QByteArray*** _out, size_t* _out_len) {
2024-08-29 07:01:51 +00:00
QList<QByteArray> ret = const_cast<const QMetaMethod*>(self)->parameterTypes();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QByteArray** __out = static_cast<QByteArray**>(malloc(sizeof(QByteArray**) * ret.length()));
for (size_t i = 0, e = ret.length(); i < e; ++i) {
__out[i] = new QByteArray(ret[i]);
}
*_out = __out;
*_out_len = ret.length();
}
void QMetaMethod_ParameterNames(QMetaMethod* self, QByteArray*** _out, size_t* _out_len) {
2024-08-29 07:01:51 +00:00
QList<QByteArray> ret = const_cast<const QMetaMethod*>(self)->parameterNames();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QByteArray** __out = static_cast<QByteArray**>(malloc(sizeof(QByteArray**) * ret.length()));
for (size_t i = 0, e = ret.length(); i < e; ++i) {
__out[i] = new QByteArray(ret[i]);
}
*_out = __out;
*_out_len = ret.length();
}
2024-08-29 07:01:51 +00:00
const char* QMetaMethod_Tag(QMetaMethod* self) {
return (const char*) const_cast<const QMetaMethod*>(self)->tag();
}
uintptr_t QMetaMethod_Access(QMetaMethod* self) {
QMetaMethod::Access ret = const_cast<const QMetaMethod*>(self)->access();
return static_cast<uintptr_t>(ret);
}
uintptr_t QMetaMethod_MethodType(QMetaMethod* self) {
QMetaMethod::MethodType ret = const_cast<const QMetaMethod*>(self)->methodType();
return static_cast<uintptr_t>(ret);
}
int QMetaMethod_Attributes(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->attributes();
}
int QMetaMethod_MethodIndex(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->methodIndex();
}
int QMetaMethod_Revision(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->revision();
}
QMetaObject* QMetaMethod_EnclosingMetaObject(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return (QMetaObject*) const_cast<const QMetaMethod*>(self)->enclosingMetaObject();
}
bool QMetaMethod_Invoke(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke2(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue);
}
bool QMetaMethod_Invoke3(QMetaMethod* self, QObject* object, uintptr_t connectionType) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType));
}
bool QMetaMethod_InvokeWithObject(QMetaMethod* self, QObject* object) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->invoke(object);
}
bool QMetaMethod_IsValid(QMetaMethod* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaMethod*>(self)->isValid();
}
bool QMetaMethod_Invoke4(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke5(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke6(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke7(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke8(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3, *val4);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke9(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3, *val4, *val5);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke10(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke11(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke12(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke13(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke32(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke42(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke52(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke62(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke72(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3, *val4);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke82(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3, *val4, *val5);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke92(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke102(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke112(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke122(QMetaMethod* self, QObject* object, QGenericReturnArgument* returnValue, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *returnValue, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke33(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke43(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke53(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke63(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke73(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3, *val4);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke83(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3, *val4, *val5);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke93(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3, *val4, *val5, *val6);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke103(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke113(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke123(QMetaMethod* self, QObject* object, uintptr_t connectionType, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9) {
return const_cast<const QMetaMethod*>(self)->invoke(object, static_cast<Qt::ConnectionType>(connectionType), *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9);
2024-08-29 07:01:51 +00:00
}
bool QMetaMethod_Invoke22(QMetaMethod* self, QObject* object, QGenericArgument* val0) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke34(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke44(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke54(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke64(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3, *val4);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke74(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3, *val4, *val5);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke84(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3, *val4, *val5, *val6);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke94(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke104(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8);
}
2024-08-29 07:01:51 +00:00
bool QMetaMethod_Invoke114(QMetaMethod* self, QObject* object, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9) {
return const_cast<const QMetaMethod*>(self)->invoke(object, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9);
}
void QMetaMethod_Delete(QMetaMethod* self) {
delete self;
}
QMetaEnum* QMetaEnum_new() {
return new QMetaEnum();
}
QMetaEnum* QMetaEnum_new2(QMetaEnum* param1) {
return new QMetaEnum(*param1);
}
2024-08-29 07:01:51 +00:00
const char* QMetaEnum_Name(QMetaEnum* self) {
return (const char*) const_cast<const QMetaEnum*>(self)->name();
}
2024-08-29 07:01:51 +00:00
const char* QMetaEnum_EnumName(QMetaEnum* self) {
return (const char*) const_cast<const QMetaEnum*>(self)->enumName();
}
bool QMetaEnum_IsFlag(QMetaEnum* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaEnum*>(self)->isFlag();
}
bool QMetaEnum_IsScoped(QMetaEnum* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaEnum*>(self)->isScoped();
}
int QMetaEnum_KeyCount(QMetaEnum* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaEnum*>(self)->keyCount();
}
2024-08-29 07:01:51 +00:00
const char* QMetaEnum_Key(QMetaEnum* self, int index) {
return (const char*) const_cast<const QMetaEnum*>(self)->key(static_cast<int>(index));
}
int QMetaEnum_Value(QMetaEnum* self, int index) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaEnum*>(self)->value(static_cast<int>(index));
}
2024-08-29 07:01:51 +00:00
const char* QMetaEnum_Scope(QMetaEnum* self) {
return (const char*) const_cast<const QMetaEnum*>(self)->scope();
}
2024-08-29 07:01:51 +00:00
int QMetaEnum_KeyToValue(QMetaEnum* self, const char* key) {
return const_cast<const QMetaEnum*>(self)->keyToValue(key);
}
2024-08-29 07:01:51 +00:00
const char* QMetaEnum_ValueToKey(QMetaEnum* self, int value) {
return (const char*) const_cast<const QMetaEnum*>(self)->valueToKey(static_cast<int>(value));
}
2024-08-29 07:01:51 +00:00
int QMetaEnum_KeysToValue(QMetaEnum* self, const char* keys) {
return const_cast<const QMetaEnum*>(self)->keysToValue(keys);
}
QByteArray* QMetaEnum_ValueToKeys(QMetaEnum* self, int value) {
2024-08-29 07:01:51 +00:00
QByteArray ret = const_cast<const QMetaEnum*>(self)->valueToKeys(static_cast<int>(value));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(ret));
}
QMetaObject* QMetaEnum_EnclosingMetaObject(QMetaEnum* self) {
2024-08-29 07:01:51 +00:00
return (QMetaObject*) const_cast<const QMetaEnum*>(self)->enclosingMetaObject();
}
bool QMetaEnum_IsValid(QMetaEnum* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaEnum*>(self)->isValid();
}
2024-08-29 07:01:51 +00:00
int QMetaEnum_KeyToValue2(QMetaEnum* self, const char* key, bool* ok) {
return const_cast<const QMetaEnum*>(self)->keyToValue(key, ok);
}
2024-08-29 07:01:51 +00:00
int QMetaEnum_KeysToValue2(QMetaEnum* self, const char* keys, bool* ok) {
return const_cast<const QMetaEnum*>(self)->keysToValue(keys, ok);
}
void QMetaEnum_Delete(QMetaEnum* self) {
delete self;
}
QMetaProperty* QMetaProperty_new() {
return new QMetaProperty();
}
2024-08-29 07:01:51 +00:00
const char* QMetaProperty_Name(QMetaProperty* self) {
return (const char*) const_cast<const QMetaProperty*>(self)->name();
}
const char* QMetaProperty_TypeName(QMetaProperty* self) {
return (const char*) const_cast<const QMetaProperty*>(self)->typeName();
}
2024-08-29 07:01:51 +00:00
uintptr_t QMetaProperty_Type(QMetaProperty* self) {
QVariant::Type ret = const_cast<const QMetaProperty*>(self)->type();
return static_cast<uintptr_t>(ret);
}
int QMetaProperty_UserType(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->userType();
}
int QMetaProperty_PropertyIndex(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->propertyIndex();
}
int QMetaProperty_RelativePropertyIndex(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->relativePropertyIndex();
}
bool QMetaProperty_IsReadable(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isReadable();
}
bool QMetaProperty_IsWritable(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isWritable();
}
bool QMetaProperty_IsResettable(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isResettable();
}
bool QMetaProperty_IsDesignable(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isDesignable();
}
bool QMetaProperty_IsScriptable(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isScriptable();
}
bool QMetaProperty_IsStored(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isStored();
}
bool QMetaProperty_IsEditable(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isEditable();
}
bool QMetaProperty_IsUser(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isUser();
}
bool QMetaProperty_IsConstant(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isConstant();
}
bool QMetaProperty_IsFinal(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isFinal();
}
bool QMetaProperty_IsRequired(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isRequired();
}
bool QMetaProperty_IsFlagType(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isFlagType();
}
bool QMetaProperty_IsEnumType(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isEnumType();
}
QMetaEnum* QMetaProperty_Enumerator(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
QMetaEnum ret = const_cast<const QMetaProperty*>(self)->enumerator();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMetaEnum*>(new QMetaEnum(ret));
}
bool QMetaProperty_HasNotifySignal(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->hasNotifySignal();
}
QMetaMethod* QMetaProperty_NotifySignal(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
QMetaMethod ret = const_cast<const QMetaProperty*>(self)->notifySignal();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QMetaMethod*>(new QMetaMethod(ret));
}
int QMetaProperty_NotifySignalIndex(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->notifySignalIndex();
}
int QMetaProperty_Revision(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->revision();
}
QVariant* QMetaProperty_Read(QMetaProperty* self, QObject* obj) {
2024-08-29 07:01:51 +00:00
QVariant ret = const_cast<const QMetaProperty*>(self)->read(obj);
// Copy-construct value returned type into heap-allocated copy
return static_cast<QVariant*>(new QVariant(ret));
}
bool QMetaProperty_Write(QMetaProperty* self, QObject* obj, QVariant* value) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->write(obj, *value);
}
bool QMetaProperty_Reset(QMetaProperty* self, QObject* obj) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->reset(obj);
}
bool QMetaProperty_HasStdCppSet(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->hasStdCppSet();
}
bool QMetaProperty_IsValid(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaProperty*>(self)->isValid();
}
QMetaObject* QMetaProperty_EnclosingMetaObject(QMetaProperty* self) {
2024-08-29 07:01:51 +00:00
return (QMetaObject*) const_cast<const QMetaProperty*>(self)->enclosingMetaObject();
}
bool QMetaProperty_IsDesignable1(QMetaProperty* self, QObject* obj) {
return const_cast<const QMetaProperty*>(self)->isDesignable(obj);
}
bool QMetaProperty_IsScriptable1(QMetaProperty* self, QObject* obj) {
return const_cast<const QMetaProperty*>(self)->isScriptable(obj);
}
bool QMetaProperty_IsStored1(QMetaProperty* self, QObject* obj) {
return const_cast<const QMetaProperty*>(self)->isStored(obj);
}
bool QMetaProperty_IsEditable1(QMetaProperty* self, QObject* obj) {
return const_cast<const QMetaProperty*>(self)->isEditable(obj);
}
bool QMetaProperty_IsUser1(QMetaProperty* self, QObject* obj) {
return const_cast<const QMetaProperty*>(self)->isUser(obj);
}
void QMetaProperty_Delete(QMetaProperty* self) {
delete self;
}
QMetaClassInfo* QMetaClassInfo_new() {
return new QMetaClassInfo();
}
2024-08-29 07:01:51 +00:00
const char* QMetaClassInfo_Name(QMetaClassInfo* self) {
return (const char*) const_cast<const QMetaClassInfo*>(self)->name();
}
2024-08-29 07:01:51 +00:00
const char* QMetaClassInfo_Value(QMetaClassInfo* self) {
return (const char*) const_cast<const QMetaClassInfo*>(self)->value();
}
QMetaObject* QMetaClassInfo_EnclosingMetaObject(QMetaClassInfo* self) {
2024-08-29 07:01:51 +00:00
return (QMetaObject*) const_cast<const QMetaClassInfo*>(self)->enclosingMetaObject();
}
void QMetaClassInfo_Delete(QMetaClassInfo* self) {
delete self;
}