miqt/qt/gen_qmetatype.cpp

289 lines
11 KiB
C++
Raw Normal View History

2024-08-29 07:01:51 +00:00
#include <QByteArray>
#include <QMetaObject>
#include <QMetaType>
2024-08-29 07:01:51 +00:00
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__QAssociativeIterableImpl
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__QPairVariantInterfaceImpl
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__QSequentialIterableImpl
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__VariantData
#define WORKAROUND_INNER_CLASS_DEFINITION_QtMetaTypePrivate__VectorBoolElements
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__AbstractComparatorFunction
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__AbstractConverterFunction
#define WORKAROUND_INNER_CLASS_DEFINITION_QtPrivate__AbstractDebugStreamFunction
#include "qmetatype.h"
2024-08-29 07:01:51 +00:00
#include "gen_qmetatype.h"
extern "C" {
extern void miqt_exec_callback(void* cb, int argc, void* argv);
}
2024-08-29 07:01:51 +00:00
QtPrivate__AbstractDebugStreamFunction* QtPrivate__AbstractDebugStreamFunction_new() {
return new QtPrivate::AbstractDebugStreamFunction();
}
void QtPrivate__AbstractDebugStreamFunction_Delete(QtPrivate__AbstractDebugStreamFunction* self) {
delete self;
}
QtPrivate__AbstractComparatorFunction* QtPrivate__AbstractComparatorFunction_new() {
return new QtPrivate::AbstractComparatorFunction();
}
void QtPrivate__AbstractComparatorFunction_Delete(QtPrivate__AbstractComparatorFunction* self) {
delete self;
}
QtPrivate__AbstractConverterFunction* QtPrivate__AbstractConverterFunction_new() {
return new QtPrivate::AbstractConverterFunction();
}
void QtPrivate__AbstractConverterFunction_Delete(QtPrivate__AbstractConverterFunction* self) {
delete self;
}
QMetaType* QMetaType_new() {
return new QMetaType();
}
2024-08-29 07:01:51 +00:00
QMetaType* QMetaType_new2(const int typeVal) {
return new QMetaType(static_cast<const int>(typeVal));
}
bool QMetaType_UnregisterType(int typeVal) {
return QMetaType::unregisterType(static_cast<int>(typeVal));
}
2024-08-29 07:01:51 +00:00
int QMetaType_RegisterTypedef(const char* typeName, int aliasId) {
return QMetaType::registerTypedef(typeName, static_cast<int>(aliasId));
}
2024-08-29 07:01:51 +00:00
int QMetaType_RegisterNormalizedTypedef(QByteArray* normalizedTypeName, int aliasId) {
return QMetaType::registerNormalizedTypedef(*normalizedTypeName, static_cast<int>(aliasId));
}
int QMetaType_Type(const char* typeName) {
return QMetaType::type(typeName);
}
2024-08-29 07:01:51 +00:00
int QMetaType_TypeWithTypeName(QByteArray* typeName) {
return QMetaType::type(*typeName);
}
const char* QMetaType_TypeName(int typeVal) {
return (const char*) QMetaType::typeName(static_cast<int>(typeVal));
}
int QMetaType_SizeOf(int typeVal) {
return QMetaType::sizeOf(static_cast<int>(typeVal));
}
2024-08-29 07:01:51 +00:00
int QMetaType_TypeFlags(int typeVal) {
QMetaType::TypeFlags ret = QMetaType::typeFlags(static_cast<int>(typeVal));
return static_cast<int>(ret);
}
QMetaObject* QMetaType_MetaObjectForType(int typeVal) {
return (QMetaObject*) QMetaType::metaObjectForType(static_cast<int>(typeVal));
}
bool QMetaType_IsRegistered(int typeVal) {
return QMetaType::isRegistered(static_cast<int>(typeVal));
}
bool QMetaType_IsValid(QMetaType* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaType*>(self)->isValid();
}
bool QMetaType_IsRegistered2(QMetaType* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaType*>(self)->isRegistered();
}
int QMetaType_Id(QMetaType* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaType*>(self)->id();
}
int QMetaType_SizeOf2(QMetaType* self) {
2024-08-29 07:01:51 +00:00
return const_cast<const QMetaType*>(self)->sizeOf();
}
int QMetaType_Flags(QMetaType* self) {
QMetaType::TypeFlags ret = const_cast<const QMetaType*>(self)->flags();
return static_cast<int>(ret);
}
QMetaObject* QMetaType_MetaObject(QMetaType* self) {
2024-08-29 07:01:51 +00:00
return (QMetaObject*) const_cast<const QMetaType*>(self)->metaObject();
}
QByteArray* QMetaType_Name(QMetaType* self) {
QByteArray ret = const_cast<const QMetaType*>(self)->name();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QByteArray*>(new QByteArray(ret));
}
bool QMetaType_HasRegisteredComparators(int typeId) {
return QMetaType::hasRegisteredComparators(static_cast<int>(typeId));
}
bool QMetaType_HasRegisteredDebugStreamOperator(int typeId) {
return QMetaType::hasRegisteredDebugStreamOperator(static_cast<int>(typeId));
}
bool QMetaType_HasRegisteredConverterFunction(int fromTypeId, int toTypeId) {
return QMetaType::hasRegisteredConverterFunction(static_cast<int>(fromTypeId), static_cast<int>(toTypeId));
}
void QMetaType_Delete(QMetaType* self) {
delete self;
}
2024-08-29 07:01:51 +00:00
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__VariantData_new(QtMetaTypePrivate__VariantData* other) {
return new QtMetaTypePrivate::VariantData(*other);
}
void QtMetaTypePrivate__VariantData_Delete(QtMetaTypePrivate__VariantData* self) {
delete self;
}
void QtMetaTypePrivate__VectorBoolElements_Delete(QtMetaTypePrivate__VectorBoolElements* self) {
delete self;
}
QtMetaTypePrivate__QSequentialIterableImpl* QtMetaTypePrivate__QSequentialIterableImpl_new() {
return new QtMetaTypePrivate::QSequentialIterableImpl();
}
QtMetaTypePrivate__QSequentialIterableImpl* QtMetaTypePrivate__QSequentialIterableImpl_new2(QtMetaTypePrivate__QSequentialIterableImpl* param1) {
return new QtMetaTypePrivate::QSequentialIterableImpl(*param1);
}
uintptr_t QtMetaTypePrivate__QSequentialIterableImpl_IteratorCapabilities(QtMetaTypePrivate__QSequentialIterableImpl* self) {
QtMetaTypePrivate::IteratorCapability ret = self->iteratorCapabilities();
return static_cast<uintptr_t>(ret);
}
unsigned int QtMetaTypePrivate__QSequentialIterableImpl_Revision(QtMetaTypePrivate__QSequentialIterableImpl* self) {
return self->revision();
}
unsigned int QtMetaTypePrivate__QSequentialIterableImpl_ContainerCapabilities(QtMetaTypePrivate__QSequentialIterableImpl* self) {
return self->containerCapabilities();
}
void QtMetaTypePrivate__QSequentialIterableImpl_MoveToBegin(QtMetaTypePrivate__QSequentialIterableImpl* self) {
self->moveToBegin();
}
void QtMetaTypePrivate__QSequentialIterableImpl_MoveToEnd(QtMetaTypePrivate__QSequentialIterableImpl* self) {
self->moveToEnd();
}
bool QtMetaTypePrivate__QSequentialIterableImpl_Equal(QtMetaTypePrivate__QSequentialIterableImpl* self, QtMetaTypePrivate__QSequentialIterableImpl* other) {
return const_cast<const QtMetaTypePrivate::QSequentialIterableImpl*>(self)->equal(*other);
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QSequentialIterableImpl_GetCurrent(QtMetaTypePrivate__QSequentialIterableImpl* self) {
QtMetaTypePrivate::VariantData ret = const_cast<const QtMetaTypePrivate::QSequentialIterableImpl*>(self)->getCurrent();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(ret));
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QSequentialIterableImpl_At(QtMetaTypePrivate__QSequentialIterableImpl* self, int idx) {
QtMetaTypePrivate::VariantData ret = const_cast<const QtMetaTypePrivate::QSequentialIterableImpl*>(self)->at(static_cast<int>(idx));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(ret));
}
int QtMetaTypePrivate__QSequentialIterableImpl_Size(QtMetaTypePrivate__QSequentialIterableImpl* self) {
return const_cast<const QtMetaTypePrivate::QSequentialIterableImpl*>(self)->size();
}
void QtMetaTypePrivate__QSequentialIterableImpl_DestroyIter(QtMetaTypePrivate__QSequentialIterableImpl* self) {
self->destroyIter();
}
void QtMetaTypePrivate__QSequentialIterableImpl_Copy(QtMetaTypePrivate__QSequentialIterableImpl* self, QtMetaTypePrivate__QSequentialIterableImpl* other) {
self->copy(*other);
}
void QtMetaTypePrivate__QSequentialIterableImpl_Delete(QtMetaTypePrivate__QSequentialIterableImpl* self) {
delete self;
}
QtMetaTypePrivate__QAssociativeIterableImpl* QtMetaTypePrivate__QAssociativeIterableImpl_new() {
return new QtMetaTypePrivate::QAssociativeIterableImpl();
}
QtMetaTypePrivate__QAssociativeIterableImpl* QtMetaTypePrivate__QAssociativeIterableImpl_new2(QtMetaTypePrivate__QAssociativeIterableImpl* param1) {
return new QtMetaTypePrivate::QAssociativeIterableImpl(*param1);
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Begin(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
self->begin();
}
void QtMetaTypePrivate__QAssociativeIterableImpl_End(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
self->end();
}
bool QtMetaTypePrivate__QAssociativeIterableImpl_Equal(QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__QAssociativeIterableImpl* other) {
return const_cast<const QtMetaTypePrivate::QAssociativeIterableImpl*>(self)->equal(*other);
}
void QtMetaTypePrivate__QAssociativeIterableImpl_DestroyIter(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
self->destroyIter();
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QAssociativeIterableImpl_GetCurrentKey(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
QtMetaTypePrivate::VariantData ret = const_cast<const QtMetaTypePrivate::QAssociativeIterableImpl*>(self)->getCurrentKey();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(ret));
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QAssociativeIterableImpl_GetCurrentValue(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
QtMetaTypePrivate::VariantData ret = const_cast<const QtMetaTypePrivate::QAssociativeIterableImpl*>(self)->getCurrentValue();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(ret));
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Find(QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__VariantData* key) {
self->find(*key);
}
int QtMetaTypePrivate__QAssociativeIterableImpl_Size(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
return const_cast<const QtMetaTypePrivate::QAssociativeIterableImpl*>(self)->size();
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Copy(QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__QAssociativeIterableImpl* other) {
self->copy(*other);
}
void QtMetaTypePrivate__QAssociativeIterableImpl_Delete(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
delete self;
}
QtMetaTypePrivate__QPairVariantInterfaceImpl* QtMetaTypePrivate__QPairVariantInterfaceImpl_new() {
return new QtMetaTypePrivate::QPairVariantInterfaceImpl();
}
QtMetaTypePrivate__QPairVariantInterfaceImpl* QtMetaTypePrivate__QPairVariantInterfaceImpl_new2(QtMetaTypePrivate__QPairVariantInterfaceImpl* param1) {
return new QtMetaTypePrivate::QPairVariantInterfaceImpl(*param1);
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QPairVariantInterfaceImpl_First(QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
QtMetaTypePrivate::VariantData ret = const_cast<const QtMetaTypePrivate::QPairVariantInterfaceImpl*>(self)->first();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(ret));
}
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QPairVariantInterfaceImpl_Second(QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
QtMetaTypePrivate::VariantData ret = const_cast<const QtMetaTypePrivate::QPairVariantInterfaceImpl*>(self)->second();
// Copy-construct value returned type into heap-allocated copy
return static_cast<QtMetaTypePrivate::VariantData*>(new QtMetaTypePrivate::VariantData(ret));
}
void QtMetaTypePrivate__QPairVariantInterfaceImpl_Delete(QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
delete self;
}