#include #include #include #include #include #include #include #include #include "gen_qmetatype.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } /* extern C */ #endif QMetaType* QMetaType_new(int type) { return new QMetaType(static_cast(type)); } QMetaType* QMetaType_new2() { return new QMetaType(); } QMetaType* QMetaType_new3(QMetaType* param1) { return new QMetaType(*param1); } void QMetaType_registerNormalizedTypedef(struct miqt_string normalizedTypeName, QMetaType* type) { QByteArray normalizedTypeName_QByteArray(normalizedTypeName.data, normalizedTypeName.len); QMetaType::registerNormalizedTypedef(normalizedTypeName_QByteArray, *type); } int QMetaType_type(const char* typeName) { return QMetaType::type(typeName); } int QMetaType_typeWithTypeName(struct miqt_string typeName) { QByteArray typeName_QByteArray(typeName.data, typeName.len); return QMetaType::type(typeName_QByteArray); } const char* QMetaType_typeName(int type) { return (const char*) QMetaType::typeName(static_cast(type)); } int QMetaType_sizeOf(int type) { return QMetaType::sizeOf(static_cast(type)); } int QMetaType_typeFlags(int type) { QMetaType::TypeFlags _ret = QMetaType::typeFlags(static_cast(type)); return static_cast(_ret); } QMetaObject* QMetaType_metaObjectForType(int type) { return (QMetaObject*) QMetaType::metaObjectForType(static_cast(type)); } void* QMetaType_create(int type) { return QMetaType::create(static_cast(type)); } void QMetaType_destroy(int type, void* data) { QMetaType::destroy(static_cast(type), data); } void* QMetaType_construct(int type, void* where, const void* copy) { return QMetaType::construct(static_cast(type), where, copy); } void QMetaType_destruct(int type, void* where) { QMetaType::destruct(static_cast(type), where); } bool QMetaType_isRegistered(int type) { return QMetaType::isRegistered(static_cast(type)); } bool QMetaType_isValid(const QMetaType* self) { return self->isValid(); } bool QMetaType_isRegistered2(const QMetaType* self) { return self->isRegistered(); } int QMetaType_id(const QMetaType* self) { return self->id(); } ptrdiff_t QMetaType_sizeOf2(const QMetaType* self) { qsizetype _ret = self->sizeOf(); return static_cast(_ret); } ptrdiff_t QMetaType_alignOf(const QMetaType* self) { qsizetype _ret = self->alignOf(); return static_cast(_ret); } int QMetaType_flags(const QMetaType* self) { QMetaType::TypeFlags _ret = self->flags(); return static_cast(_ret); } QMetaObject* QMetaType_metaObject(const QMetaType* self) { return (QMetaObject*) self->metaObject(); } const char* QMetaType_name(const QMetaType* self) { return (const char*) self->name(); } void* QMetaType_create2(const QMetaType* self) { return self->create(); } void QMetaType_destroyWithData(const QMetaType* self, void* data) { self->destroy(data); } void* QMetaType_constructWithWhere(const QMetaType* self, void* where) { return self->construct(where); } void QMetaType_destructWithData(const QMetaType* self, void* data) { self->destruct(data); } QPartialOrdering* QMetaType_compare(const QMetaType* self, const void* lhs, const void* rhs) { return new QPartialOrdering(self->compare(lhs, rhs)); } bool QMetaType_equals(const QMetaType* self, const void* lhs, const void* rhs) { return self->equals(lhs, rhs); } bool QMetaType_isEqualityComparable(const QMetaType* self) { return self->isEqualityComparable(); } bool QMetaType_isOrdered(const QMetaType* self) { return self->isOrdered(); } bool QMetaType_save(const QMetaType* self, QDataStream* stream, const void* data) { return self->save(*stream, data); } bool QMetaType_load(const QMetaType* self, QDataStream* stream, void* data) { return self->load(*stream, data); } bool QMetaType_hasRegisteredDataStreamOperators(const QMetaType* self) { return self->hasRegisteredDataStreamOperators(); } bool QMetaType_save2(QDataStream* stream, int type, const void* data) { return QMetaType::save(*stream, static_cast(type), data); } bool QMetaType_load2(QDataStream* stream, int type, void* data) { return QMetaType::load(*stream, static_cast(type), data); } QMetaType* QMetaType_fromName(QByteArrayView* name) { return new QMetaType(QMetaType::fromName(*name)); } bool QMetaType_debugStream(QMetaType* self, QDebug* dbg, const void* rhs) { return self->debugStream(*dbg, rhs); } bool QMetaType_hasRegisteredDebugStreamOperator(const QMetaType* self) { return self->hasRegisteredDebugStreamOperator(); } bool QMetaType_debugStream2(QDebug* dbg, const void* rhs, int typeId) { return QMetaType::debugStream(*dbg, rhs, static_cast(typeId)); } bool QMetaType_hasRegisteredDebugStreamOperatorWithTypeId(int typeId) { return QMetaType::hasRegisteredDebugStreamOperator(static_cast(typeId)); } bool QMetaType_convert(QMetaType* fromType, const void* from, QMetaType* toType, void* to) { return QMetaType::convert(*fromType, from, *toType, to); } bool QMetaType_canConvert(QMetaType* fromType, QMetaType* toType) { return QMetaType::canConvert(*fromType, *toType); } bool QMetaType_view(QMetaType* fromType, void* from, QMetaType* toType, void* to) { return QMetaType::view(*fromType, from, *toType, to); } bool QMetaType_canView(QMetaType* fromType, QMetaType* toType) { return QMetaType::canView(*fromType, *toType); } bool QMetaType_convert2(const void* from, int fromTypeId, void* to, int toTypeId) { return QMetaType::convert(from, static_cast(fromTypeId), to, static_cast(toTypeId)); } bool QMetaType_compare2(const void* lhs, const void* rhs, int typeId, int* result) { return QMetaType::compare(lhs, rhs, static_cast(typeId), static_cast(result)); } bool QMetaType_equals2(const void* lhs, const void* rhs, int typeId, int* result) { return QMetaType::equals(lhs, rhs, static_cast(typeId), static_cast(result)); } bool QMetaType_hasRegisteredConverterFunction(QMetaType* fromType, QMetaType* toType) { return QMetaType::hasRegisteredConverterFunction(*fromType, *toType); } bool QMetaType_hasRegisteredMutableViewFunction(QMetaType* fromType, QMetaType* toType) { return QMetaType::hasRegisteredMutableViewFunction(*fromType, *toType); } void QMetaType_unregisterConverterFunction(QMetaType* from, QMetaType* to) { QMetaType::unregisterConverterFunction(*from, *to); } void QMetaType_unregisterMutableViewFunction(QMetaType* from, QMetaType* to) { QMetaType::unregisterMutableViewFunction(*from, *to); } void QMetaType_unregisterMetaType(QMetaType* type) { QMetaType::unregisterMetaType(*type); } void* QMetaType_create22(int type, const void* copy) { return QMetaType::create(static_cast(type), copy); } int QMetaType_id1(const QMetaType* self, int param1) { return self->id(static_cast(param1)); } void* QMetaType_create1(const QMetaType* self, const void* copy) { return self->create(copy); } void* QMetaType_construct2(const QMetaType* self, void* where, const void* copy) { return self->construct(where, copy); } void QMetaType_delete(QMetaType* self) { delete self; }