miqt/qt6/gen_qplugin.cpp

80 lines
2.1 KiB
C++
Raw Permalink Normal View History

2024-10-20 05:21:03 +00:00
#include <QJsonObject>
#include <QPluginMetaData>
#define WORKAROUND_INNER_CLASS_DEFINITION_QPluginMetaData__ElfNoteHeader
#define WORKAROUND_INNER_CLASS_DEFINITION_QPluginMetaData__Header
#define WORKAROUND_INNER_CLASS_DEFINITION_QPluginMetaData__MagicHeader
#include <QStaticPlugin>
#include <qplugin.h>
#include "gen_qplugin.h"
#ifndef _Bool
#define _Bool bool
#endif
2024-10-20 05:21:03 +00:00
#include "_cgo_export.h"
unsigned char QPluginMetaData_ArchRequirements() {
quint8 _ret = QPluginMetaData::archRequirements();
return static_cast<unsigned char>(_ret);
}
2024-11-19 06:29:06 +00:00
void QPluginMetaData_Delete(QPluginMetaData* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QPluginMetaData*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}
QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self) {
return new QJsonObject(self->metaData());
}
2024-11-19 06:29:06 +00:00
void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QStaticPlugin*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPluginMetaData__Header* QPluginMetaData__Header_new(QPluginMetaData__Header* param1) {
return new QPluginMetaData::Header(*param1);
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QPluginMetaData__Header_Delete(QPluginMetaData__Header* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QPluginMetaData::Header*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPluginMetaData__MagicHeader* QPluginMetaData__MagicHeader_new() {
return new QPluginMetaData::MagicHeader();
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QPluginMetaData__MagicHeader_Delete(QPluginMetaData__MagicHeader* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QPluginMetaData::MagicHeader*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPluginMetaData__ElfNoteHeader* QPluginMetaData__ElfNoteHeader_new(unsigned int payloadSize) {
return new QPluginMetaData::ElfNoteHeader(static_cast<quint32>(payloadSize));
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
QPluginMetaData__ElfNoteHeader* QPluginMetaData__ElfNoteHeader_new2(QPluginMetaData__ElfNoteHeader* param1) {
return new QPluginMetaData::ElfNoteHeader(*param1);
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QPluginMetaData__ElfNoteHeader_Delete(QPluginMetaData__ElfNoteHeader* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QPluginMetaData::ElfNoteHeader*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}