#include #include #include #include #include #include #include #include #include #include "gen_qhistorystate.h" #include "_cgo_export.h" QHistoryState* QHistoryState_new() { return new QHistoryState(); } QHistoryState* QHistoryState_new2(int typeVal) { return new QHistoryState(static_cast(typeVal)); } QHistoryState* QHistoryState_new3(QState* parent) { return new QHistoryState(parent); } QHistoryState* QHistoryState_new4(int typeVal, QState* parent) { return new QHistoryState(static_cast(typeVal), parent); } QMetaObject* QHistoryState_MetaObject(const QHistoryState* self) { return (QMetaObject*) self->metaObject(); } void* QHistoryState_Metacast(QHistoryState* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QHistoryState_Tr(const char* s) { QString _ret = QHistoryState::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; } struct miqt_string QHistoryState_TrUtf8(const char* s) { QString _ret = QHistoryState::trUtf8(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; } QAbstractTransition* QHistoryState_DefaultTransition(const QHistoryState* self) { return self->defaultTransition(); } void QHistoryState_SetDefaultTransition(QHistoryState* self, QAbstractTransition* transition) { self->setDefaultTransition(transition); } QAbstractState* QHistoryState_DefaultState(const QHistoryState* self) { return self->defaultState(); } void QHistoryState_SetDefaultState(QHistoryState* self, QAbstractState* state) { self->setDefaultState(state); } int QHistoryState_HistoryType(const QHistoryState* self) { QHistoryState::HistoryType _ret = self->historyType(); return static_cast(_ret); } void QHistoryState_SetHistoryType(QHistoryState* self, int typeVal) { self->setHistoryType(static_cast(typeVal)); } struct miqt_string QHistoryState_Tr2(const char* s, const char* c) { QString _ret = QHistoryState::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 QHistoryState_Tr3(const char* s, const char* c, int n) { QString _ret = QHistoryState::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; } struct miqt_string QHistoryState_TrUtf82(const char* s, const char* c) { QString _ret = QHistoryState::trUtf8(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 QHistoryState_TrUtf83(const char* s, const char* c, int n) { QString _ret = QHistoryState::trUtf8(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 QHistoryState_Delete(QHistoryState* self) { delete self; }