#include #include #include #include #include #include #include #include "gen_qerrormessage.h" #include "_cgo_export.h" QErrorMessage* QErrorMessage_new() { return new QErrorMessage(); } QErrorMessage* QErrorMessage_new2(QWidget* parent) { return new QErrorMessage(parent); } QMetaObject* QErrorMessage_MetaObject(const QErrorMessage* self) { return (QMetaObject*) self->metaObject(); } void* QErrorMessage_Metacast(QErrorMessage* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QErrorMessage_Tr(const char* s) { QString _ret = QErrorMessage::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } QErrorMessage* QErrorMessage_QtHandler() { return QErrorMessage::qtHandler(); } void QErrorMessage_ShowMessage(QErrorMessage* self, struct miqt_string message) { QString message_QString = QString::fromUtf8(message.data, message.len); self->showMessage(message_QString); } void QErrorMessage_ShowMessage2(QErrorMessage* self, struct miqt_string message, struct miqt_string typeVal) { QString message_QString = QString::fromUtf8(message.data, message.len); QString typeVal_QString = QString::fromUtf8(typeVal.data, typeVal.len); self->showMessage(message_QString, typeVal_QString); } struct miqt_string QErrorMessage_Tr2(const char* s, const char* c) { QString _ret = QErrorMessage::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QErrorMessage_Tr3(const char* s, const char* c, int n) { QString _ret = QErrorMessage::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QErrorMessage_Delete(QErrorMessage* self) { delete self; }