mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
289 lines
11 KiB
C++
289 lines
11 KiB
C++
#include <QByteArray>
|
|
#include <QMetaObject>
|
|
#include <QMetaType>
|
|
#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"
|
|
|
|
#include "gen_qmetatype.h"
|
|
|
|
extern "C" {
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
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));
|
|
}
|
|
|
|
int QMetaType_RegisterTypedef(const char* typeName, int aliasId) {
|
|
return QMetaType::registerTypedef(typeName, static_cast<int>(aliasId));
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
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));
|
|
}
|
|
|
|
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(const QMetaType* self) {
|
|
return self->isValid();
|
|
}
|
|
|
|
bool QMetaType_IsRegistered2(const QMetaType* self) {
|
|
return self->isRegistered();
|
|
}
|
|
|
|
int QMetaType_Id(const QMetaType* self) {
|
|
return self->id();
|
|
}
|
|
|
|
int QMetaType_SizeOf2(const QMetaType* self) {
|
|
return self->sizeOf();
|
|
}
|
|
|
|
int QMetaType_Flags(const QMetaType* self) {
|
|
QMetaType::TypeFlags ret = self->flags();
|
|
return static_cast<int>(ret);
|
|
}
|
|
|
|
QMetaObject* QMetaType_MetaObject(const QMetaType* self) {
|
|
return (QMetaObject*) self->metaObject();
|
|
}
|
|
|
|
QByteArray* QMetaType_Name(const QMetaType* self) {
|
|
QByteArray ret = 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;
|
|
}
|
|
|
|
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(const QtMetaTypePrivate__QSequentialIterableImpl* self, QtMetaTypePrivate__QSequentialIterableImpl* other) {
|
|
return self->equal(*other);
|
|
}
|
|
|
|
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QSequentialIterableImpl_GetCurrent(const QtMetaTypePrivate__QSequentialIterableImpl* self) {
|
|
QtMetaTypePrivate::VariantData ret = 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(const QtMetaTypePrivate__QSequentialIterableImpl* self, int idx) {
|
|
QtMetaTypePrivate::VariantData ret = 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(const QtMetaTypePrivate__QSequentialIterableImpl* self) {
|
|
return 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(const QtMetaTypePrivate__QAssociativeIterableImpl* self, QtMetaTypePrivate__QAssociativeIterableImpl* other) {
|
|
return self->equal(*other);
|
|
}
|
|
|
|
void QtMetaTypePrivate__QAssociativeIterableImpl_DestroyIter(QtMetaTypePrivate__QAssociativeIterableImpl* self) {
|
|
self->destroyIter();
|
|
}
|
|
|
|
QtMetaTypePrivate__VariantData* QtMetaTypePrivate__QAssociativeIterableImpl_GetCurrentKey(const QtMetaTypePrivate__QAssociativeIterableImpl* self) {
|
|
QtMetaTypePrivate::VariantData ret = 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(const QtMetaTypePrivate__QAssociativeIterableImpl* self) {
|
|
QtMetaTypePrivate::VariantData ret = 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(const QtMetaTypePrivate__QAssociativeIterableImpl* self) {
|
|
return 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(const QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
|
|
QtMetaTypePrivate::VariantData ret = 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(const QtMetaTypePrivate__QPairVariantInterfaceImpl* self) {
|
|
QtMetaTypePrivate::VariantData ret = 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;
|
|
}
|
|
|