diff --git a/README.md b/README.md index 6c191aead..e9594a988 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,16 @@ Introduction [Go](https://en.wikipedia.org/wiki/Go_(programming_language)), also known as Golang, is a programming language designed at Google. -[therecipe/qt](https://github.com/therecipe/qt) allows you to write Qt applications entirely in Go, [JavaScript/TypeScript](https://github.com/therecipe/entry), [Dart/Flutter](https://github.com/therecipe/flutter), [Haxe](https://github.com/therecipe/haxe) and [Swift](https://github.com/therecipe/swift) +[bluszcz/cutego](https://github.com/bluszcz/cutego) allows you to write Qt applications entirely in Go or JavaScript. -Beside the language bindings provided, `therecipe/qt` also greatly simplifies the deployment of Qt applications to various software and hardware platforms. +Beside the language bindings provided, `bluszcz/cutego` also greatly simplifies the deployment of Qt applications to various software and hardware platforms. At the time of writing, almost all Qt functions and classes are accessible, and you should be able to find everything you need to build fully featured Qt applications. Impressions ----------- -[Gallery](https://github.com/therecipe/qt/wiki/Gallery) of example applications. +[Gallery](https://github.com/bluszcz/cutego/wiki/Gallery) of example applications. [JavaScript Demo](https://therecipe.github.io/entry) | *[source](https://github.com/therecipe/entry)* @@ -23,49 +23,33 @@ Installation The following instructions assume that you already installed [Go](https://golang.org/dl/) and [Git](https://git-scm.com/downloads) -#### (Experimental) cgo-less version (try this first, if you are new and want to test the binding) - -##### Windows - -```powershell -go get -ldflags="-w" github.com/therecipe/examples/basic/widgets && for /f %v in ('go env GOPATH') do %v\bin\widgets.exe -``` - -##### macOS/Linux - -```bash -go get -ldflags="-w" github.com/therecipe/examples/basic/widgets && $(go env GOPATH)/bin/widgets -``` - -#### Default version - -##### Windows [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-Windows) +##### Windows [(more info)](https://github.com/bluszcz/cutego/wiki/Installation-on-Windows) ```powershell set GO111MODULE=off -go get -v github.com/therecipe/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup -test=false +go get -v github.com/bluszcz/cutego/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup -test=false ``` -##### macOS [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-macOS) +##### macOS [(more info)](https://github.com/bluszcz/cutego/wiki/Installation-on-macOS) ```bash -export GO111MODULE=off; xcode-select --install; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false +export GO111MODULE=off; xcode-select --install; go get -v github.com/bluszcz/cutego/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false ``` -##### Linux [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-Linux) +##### Linux [(more info)](https://github.com/bluszcz/cutego/wiki/Installation-on-Linux) ```bash -export GO111MODULE=off; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false +export GO111MODULE=off; go get -v github.com/bluszcz/cutego/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false ``` Resources --------- -- [Installation](https://github.com/therecipe/qt/wiki/Installation) -- [Getting Started](https://github.com/therecipe/qt/wiki/Getting-Started) -- [Wiki](https://github.com/therecipe/qt/wiki) +- [Installation](https://github.com/bluszcz/cutego/wiki/Installation) +- [Getting Started](https://github.com/bluszcz/cutego/wiki/Getting-Started) +- [Wiki](https://github.com/bluszcz/cutego/wiki) - [Qt Documentation](https://doc.qt.io/qt-5/classes.html) -- [FAQ](https://github.com/therecipe/qt/wiki/FAQ) +- [FAQ](https://github.com/bluszcz/cutego/wiki/FAQ) - [#qt-binding](https://gophers.slack.com/messages/qt-binding/details) Slack channel ([invite](https://invite.slack.golangbridge.org)\) Deployment Targets diff --git a/androidextras/androidextras.go b/androidextras/androidextras.go index 6772221f2..8c4ee8f3e 100644 --- a/androidextras/androidextras.go +++ b/androidextras/androidextras.go @@ -3,8 +3,8 @@ package androidextras import ( - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" "strings" "unsafe" ) diff --git a/androidextras/androidextras_android.go b/androidextras/androidextras_android.go index 2e9e177cf..21e4bd44c 100644 --- a/androidextras/androidextras_android.go +++ b/androidextras/androidextras_android.go @@ -9,8 +9,8 @@ package androidextras import "C" import ( "errors" - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" "strings" "unsafe" ) diff --git a/androidextras/utils-androidextras_android.go b/androidextras/utils-androidextras_android.go index e47deb3d3..349644aa9 100644 --- a/androidextras/utils-androidextras_android.go +++ b/androidextras/utils-androidextras_android.go @@ -5,7 +5,7 @@ import ( "strings" "unsafe" - "github.com/therecipe/qt" + "github.com/bluszcz/cutego" ) func assertion(key int, input ...interface{}) (unsafe.Pointer, func()) { diff --git a/bluetooth/bluetooth.go b/bluetooth/bluetooth.go index 489742059..923a7a11b 100644 --- a/bluetooth/bluetooth.go +++ b/bluetooth/bluetooth.go @@ -3,9 +3,11 @@ package bluetooth import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "reflect" + "strings" "unsafe" ) diff --git a/charts/charts.go b/charts/charts.go index 51c614a7b..4f15f1fac 100644 --- a/charts/charts.go +++ b/charts/charts.go @@ -3,10 +3,11 @@ package charts import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cute" + "github.com/bluszcz/cute/core" + "github.com/bluszcz/cute/gui" + "github.com/bluszcz/cute/widgets" + "strings" "unsafe" ) diff --git a/cmd/qtdeploy/main.go b/cmd/qtdeploy/main.go index 94a99f0dc..3148b2569 100644 --- a/cmd/qtdeploy/main.go +++ b/cmd/qtdeploy/main.go @@ -9,10 +9,10 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/deploy" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/deploy" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func main() { diff --git a/cmd/qtminimal/main.go b/cmd/qtminimal/main.go index c5f3f5209..6ff439ffc 100644 --- a/cmd/qtminimal/main.go +++ b/cmd/qtminimal/main.go @@ -8,10 +8,10 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/minimal" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/minimal" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func main() { diff --git a/cmd/qtmoc/main.go b/cmd/qtmoc/main.go index 33ed0b662..08bf72ad0 100644 --- a/cmd/qtmoc/main.go +++ b/cmd/qtmoc/main.go @@ -8,10 +8,10 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/moc" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/moc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func main() { diff --git a/cmd/qtrcc/main.go b/cmd/qtrcc/main.go index 1cd5e3422..f5b8d857d 100644 --- a/cmd/qtrcc/main.go +++ b/cmd/qtrcc/main.go @@ -8,10 +8,10 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/rcc" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/rcc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func main() { diff --git a/cmd/qtsetup/main.go b/cmd/qtsetup/main.go index 9c92d80ca..70f17ba81 100644 --- a/cmd/qtsetup/main.go +++ b/cmd/qtsetup/main.go @@ -7,10 +7,10 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/setup" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/setup" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func main() { diff --git a/core/core.cpp b/core/core.cpp new file mode 100644 index 000000000..e20d41037 --- /dev/null +++ b/core/core.cpp @@ -0,0 +1,27770 @@ +// +build !minimal + +#define protected public +#define private public + +#include "core.h" +#include "_cgo_export.h" + +#ifndef QT_CORE_LIB + #error ------------------------------------------------------------------ + #error please run: '$(go env GOPATH)/bin/qtsetup' + #error more info here: https://github.com/StarAurryon/qt/wiki/Installation + #error ------------------------------------------------------------------ +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class MyQAbstractAnimation: public QAbstractAnimation +{ +public: + MyQAbstractAnimation(QObject *parent = Q_NULLPTR) : QAbstractAnimation(parent) {QAbstractAnimation_QAbstractAnimation_QRegisterMetaType();}; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + int duration() const { return callbackQAbstractAnimation_Duration(const_cast(static_cast(this))); }; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void updateCurrentTime(int currentTime) { callbackQAbstractAnimation_UpdateCurrentTime(this, currentTime); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + ~MyQAbstractAnimation() { callbackQAbstractAnimation_DestroyQAbstractAnimation(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractAnimation*) +Q_DECLARE_METATYPE(MyQAbstractAnimation*) + +int QAbstractAnimation_QAbstractAnimation_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractAnimation_NewQAbstractAnimation(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractAnimation(static_cast(parent)); + } else { + return new MyQAbstractAnimation(static_cast(parent)); + } +} + +int QAbstractAnimation_CurrentLoop(void* ptr) +{ + return static_cast(ptr)->currentLoop(); +} + +void QAbstractAnimation_ConnectCurrentLoopChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QAbstractAnimation::currentLoopChanged), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_CurrentLoopChanged), static_cast(t)); +} + +void QAbstractAnimation_DisconnectCurrentLoopChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractAnimation::currentLoopChanged), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_CurrentLoopChanged)); +} + +void QAbstractAnimation_CurrentLoopChanged(void* ptr, int currentLoop) +{ + static_cast(ptr)->currentLoopChanged(currentLoop); +} + +int QAbstractAnimation_CurrentLoopTime(void* ptr) +{ + return static_cast(ptr)->currentLoopTime(); +} + +int QAbstractAnimation_CurrentTime(void* ptr) +{ + return static_cast(ptr)->currentTime(); +} + +long long QAbstractAnimation_Direction(void* ptr) +{ + return static_cast(ptr)->direction(); +} + +void QAbstractAnimation_ConnectDirectionChanged(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast(&QAbstractAnimation::directionChanged), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_DirectionChanged), static_cast(t)); +} + +void QAbstractAnimation_DisconnectDirectionChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractAnimation::directionChanged), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_DirectionChanged)); +} + +void QAbstractAnimation_DirectionChanged(void* ptr, long long newDirection) +{ + static_cast(ptr)->directionChanged(static_cast(newDirection)); +} + +int QAbstractAnimation_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +void QAbstractAnimation_ConnectFinished(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QAbstractAnimation::finished), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_Finished), static_cast(t)); +} + +void QAbstractAnimation_DisconnectFinished(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractAnimation::finished), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_Finished)); +} + +void QAbstractAnimation_Finished(void* ptr) +{ + static_cast(ptr)->finished(); +} + +void* QAbstractAnimation_Group(void* ptr) +{ + return static_cast(ptr)->group(); +} + +int QAbstractAnimation_LoopCount(void* ptr) +{ + return static_cast(ptr)->loopCount(); +} + +void QAbstractAnimation_Pause(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "pause"); +} + +void QAbstractAnimation_PauseDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::pause(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::pause(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::pause(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::pause(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::pause(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::pause(); + } else { + static_cast(ptr)->QAbstractAnimation::pause(); + } +} + +void QAbstractAnimation_Resume(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "resume"); +} + +void QAbstractAnimation_ResumeDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::resume(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::resume(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::resume(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::resume(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::resume(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::resume(); + } else { + static_cast(ptr)->QAbstractAnimation::resume(); + } +} + +void QAbstractAnimation_SetCurrentTime(void* ptr, int msecs) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setCurrentTime", Q_ARG(int, msecs)); +} + +void QAbstractAnimation_SetCurrentTimeDefault(void* ptr, int msecs) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::setCurrentTime(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::setCurrentTime(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::setCurrentTime(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::setCurrentTime(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::setCurrentTime(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::setCurrentTime(msecs); + } else { + static_cast(ptr)->QAbstractAnimation::setCurrentTime(msecs); + } +} + +void QAbstractAnimation_SetDirection(void* ptr, long long direction) +{ + static_cast(ptr)->setDirection(static_cast(direction)); +} + +void QAbstractAnimation_SetLoopCount(void* ptr, int loopCount) +{ + static_cast(ptr)->setLoopCount(loopCount); +} + +void QAbstractAnimation_SetPaused(void* ptr, char paused) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setPaused", Q_ARG(bool, paused != 0)); +} + +void QAbstractAnimation_SetPausedDefault(void* ptr, char paused) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::setPaused(paused != 0); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::setPaused(paused != 0); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::setPaused(paused != 0); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::setPaused(paused != 0); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::setPaused(paused != 0); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::setPaused(paused != 0); + } else { + static_cast(ptr)->QAbstractAnimation::setPaused(paused != 0); + } +} + +void QAbstractAnimation_Start(void* ptr, long long policy) +{ + QMetaObject::invokeMethod(static_cast(ptr), "start", Q_ARG(QAbstractAnimation::DeletionPolicy, static_cast(policy))); +} + +void QAbstractAnimation_StartDefault(void* ptr, long long policy) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::start(static_cast(policy)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::start(static_cast(policy)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::start(static_cast(policy)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::start(static_cast(policy)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::start(static_cast(policy)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::start(static_cast(policy)); + } else { + static_cast(ptr)->QAbstractAnimation::start(static_cast(policy)); + } +} + +long long QAbstractAnimation_State(void* ptr) +{ + return static_cast(ptr)->state(); +} + +void QAbstractAnimation_ConnectStateChanged(void* ptr, long long t) +{ + qRegisterMetaType(); + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast(&QAbstractAnimation::stateChanged), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_StateChanged), static_cast(t)); +} + +void QAbstractAnimation_DisconnectStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractAnimation::stateChanged), static_cast(ptr), static_cast(&MyQAbstractAnimation::Signal_StateChanged)); +} + +void QAbstractAnimation_StateChanged(void* ptr, long long newState, long long oldState) +{ + static_cast(ptr)->stateChanged(static_cast(newState), static_cast(oldState)); +} + +void QAbstractAnimation_Stop(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "stop"); +} + +void QAbstractAnimation_StopDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::stop(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::stop(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::stop(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::stop(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::stop(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::stop(); + } else { + static_cast(ptr)->QAbstractAnimation::stop(); + } +} + +int QAbstractAnimation_TotalDuration(void* ptr) +{ + return static_cast(ptr)->totalDuration(); +} + +void QAbstractAnimation_UpdateCurrentTime(void* ptr, int currentTime) +{ + static_cast(ptr)->updateCurrentTime(currentTime); +} + +void QAbstractAnimation_UpdateDirection(void* ptr, long long direction) +{ + static_cast(ptr)->updateDirection(static_cast(direction)); +} + +void QAbstractAnimation_UpdateDirectionDefault(void* ptr, long long direction) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::updateDirection(static_cast(direction)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::updateDirection(static_cast(direction)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::updateDirection(static_cast(direction)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::updateDirection(static_cast(direction)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::updateDirection(static_cast(direction)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::updateDirection(static_cast(direction)); + } else { + static_cast(ptr)->QAbstractAnimation::updateDirection(static_cast(direction)); + } +} + +void QAbstractAnimation_UpdateState(void* ptr, long long newState, long long oldState) +{ + static_cast(ptr)->updateState(static_cast(newState), static_cast(oldState)); +} + +void QAbstractAnimation_UpdateStateDefault(void* ptr, long long newState, long long oldState) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::updateState(static_cast(newState), static_cast(oldState)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::updateState(static_cast(newState), static_cast(oldState)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::updateState(static_cast(newState), static_cast(oldState)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::updateState(static_cast(newState), static_cast(oldState)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::updateState(static_cast(newState), static_cast(oldState)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::updateState(static_cast(newState), static_cast(oldState)); + } else { + static_cast(ptr)->QAbstractAnimation::updateState(static_cast(newState), static_cast(oldState)); + } +} + +void QAbstractAnimation_DestroyQAbstractAnimation(void* ptr) +{ + static_cast(ptr)->~QAbstractAnimation(); +} + +void QAbstractAnimation_DestroyQAbstractAnimationDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQAbstractEventDispatcher: public QAbstractEventDispatcher +{ +public: + void Signal_AboutToBlock() { callbackQAbstractEventDispatcher_AboutToBlock(this); }; + void Signal_Awake() { callbackQAbstractEventDispatcher_Awake(this); }; + void interrupt() { callbackQAbstractEventDispatcher_Interrupt(this); }; + bool processEvents(QEventLoop::ProcessEventsFlags flags) { return callbackQAbstractEventDispatcher_ProcessEvents(this, flags) != 0; }; + #ifdef Q_OS_WIN + bool registerEventNotifier(QWinEventNotifier * notifier) { return callbackQAbstractEventDispatcher_RegisterEventNotifier(this, notifier) != 0; }; + #endif + void registerSocketNotifier(QSocketNotifier * notifier) { callbackQAbstractEventDispatcher_RegisterSocketNotifier(this, notifier); }; + void registerTimer(int timerId, int interval, Qt::TimerType timerType, QObject * object) { callbackQAbstractEventDispatcher_RegisterTimer4(this, timerId, interval, timerType, object); }; + int remainingTime(int timerId) { return callbackQAbstractEventDispatcher_RemainingTime(this, timerId); }; + #ifdef Q_OS_WIN + void unregisterEventNotifier(QWinEventNotifier * notifier) { callbackQAbstractEventDispatcher_UnregisterEventNotifier(this, notifier); }; + #endif + void unregisterSocketNotifier(QSocketNotifier * notifier) { callbackQAbstractEventDispatcher_UnregisterSocketNotifier(this, notifier); }; + bool unregisterTimer(int timerId) { return callbackQAbstractEventDispatcher_UnregisterTimer(this, timerId) != 0; }; + bool unregisterTimers(QObject * object) { return callbackQAbstractEventDispatcher_UnregisterTimers(this, object) != 0; }; + void wakeUp() { callbackQAbstractEventDispatcher_WakeUp(this); }; + ~MyQAbstractEventDispatcher() { callbackQAbstractEventDispatcher_DestroyQAbstractEventDispatcher(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractEventDispatcher*) +Q_DECLARE_METATYPE(MyQAbstractEventDispatcher*) + +int QAbstractEventDispatcher_QAbstractEventDispatcher_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void QAbstractEventDispatcher_ConnectAboutToBlock(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QAbstractEventDispatcher::aboutToBlock), static_cast(ptr), static_cast(&MyQAbstractEventDispatcher::Signal_AboutToBlock), static_cast(t)); +} + +void QAbstractEventDispatcher_DisconnectAboutToBlock(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractEventDispatcher::aboutToBlock), static_cast(ptr), static_cast(&MyQAbstractEventDispatcher::Signal_AboutToBlock)); +} + +void QAbstractEventDispatcher_AboutToBlock(void* ptr) +{ + static_cast(ptr)->aboutToBlock(); +} + +void QAbstractEventDispatcher_ConnectAwake(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QAbstractEventDispatcher::awake), static_cast(ptr), static_cast(&MyQAbstractEventDispatcher::Signal_Awake), static_cast(t)); +} + +void QAbstractEventDispatcher_DisconnectAwake(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractEventDispatcher::awake), static_cast(ptr), static_cast(&MyQAbstractEventDispatcher::Signal_Awake)); +} + +void QAbstractEventDispatcher_Awake(void* ptr) +{ + static_cast(ptr)->awake(); +} + +char QAbstractEventDispatcher_FilterNativeEvent(void* ptr, void* eventType, void* message, long* result) +{ + return static_cast(ptr)->filterNativeEvent(*static_cast(eventType), message, result); +} + +void QAbstractEventDispatcher_InstallNativeEventFilter(void* ptr, void* filterObj) +{ + static_cast(ptr)->installNativeEventFilter(static_cast(filterObj)); +} + +void* QAbstractEventDispatcher_QAbstractEventDispatcher_Instance(void* thread) +{ + return QAbstractEventDispatcher::instance(static_cast(thread)); +} + +void QAbstractEventDispatcher_Interrupt(void* ptr) +{ + static_cast(ptr)->interrupt(); +} + +char QAbstractEventDispatcher_ProcessEvents(void* ptr, long long flags) +{ + return static_cast(ptr)->processEvents(static_cast(flags)); +} + +char QAbstractEventDispatcher_RegisterEventNotifier(void* ptr, void* notifier) +{ +#ifdef Q_OS_WIN + return static_cast(ptr)->registerEventNotifier(static_cast(notifier)); +#else + return false; +#endif +} + +void QAbstractEventDispatcher_RegisterSocketNotifier(void* ptr, void* notifier) +{ + static_cast(ptr)->registerSocketNotifier(static_cast(notifier)); +} + +int QAbstractEventDispatcher_RegisterTimer3(void* ptr, int interval, long long timerType, void* object) +{ + return static_cast(ptr)->registerTimer(interval, static_cast(timerType), static_cast(object)); +} + +void QAbstractEventDispatcher_RegisterTimer4(void* ptr, int timerId, int interval, long long timerType, void* object) +{ + static_cast(ptr)->registerTimer(timerId, interval, static_cast(timerType), static_cast(object)); +} + +int QAbstractEventDispatcher_RemainingTime(void* ptr, int timerId) +{ + return static_cast(ptr)->remainingTime(timerId); +} + +void QAbstractEventDispatcher_RemoveNativeEventFilter(void* ptr, void* filter) +{ + static_cast(ptr)->removeNativeEventFilter(static_cast(filter)); +} + +void QAbstractEventDispatcher_UnregisterEventNotifier(void* ptr, void* notifier) +{ +#ifdef Q_OS_WIN + static_cast(ptr)->unregisterEventNotifier(static_cast(notifier)); +#endif +} + +void QAbstractEventDispatcher_UnregisterSocketNotifier(void* ptr, void* notifier) +{ + static_cast(ptr)->unregisterSocketNotifier(static_cast(notifier)); +} + +char QAbstractEventDispatcher_UnregisterTimer(void* ptr, int timerId) +{ + return static_cast(ptr)->unregisterTimer(timerId); +} + +char QAbstractEventDispatcher_UnregisterTimers(void* ptr, void* object) +{ + return static_cast(ptr)->unregisterTimers(static_cast(object)); +} + +void QAbstractEventDispatcher_WakeUp(void* ptr) +{ + static_cast(ptr)->wakeUp(); +} + +void QAbstractEventDispatcher_DestroyQAbstractEventDispatcher(void* ptr) +{ + static_cast(ptr)->~QAbstractEventDispatcher(); +} + +void QAbstractEventDispatcher_DestroyQAbstractEventDispatcherDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQAbstractItemModel: public QAbstractItemModel +{ +public: + MyQAbstractItemModel(QObject *parent = Q_NULLPTR) : QAbstractItemModel(parent) {QAbstractItemModel_QAbstractItemModel_QRegisterMetaType();}; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQAbstractItemModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQAbstractItemModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQAbstractItemModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & index) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&index))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractItemModel_Revert(this); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + int rowCount(const QModelIndex & parent) const { return callbackQAbstractItemModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + QModelIndex sibling(int row, int column, const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&index))); }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + bool submit() { return callbackQAbstractItemModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + ~MyQAbstractItemModel() { callbackQAbstractItemModel_DestroyQAbstractItemModel(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractItemModel*) +Q_DECLARE_METATYPE(MyQAbstractItemModel*) + +int QAbstractItemModel_QAbstractItemModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractItemModel_NewQAbstractItemModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractItemModel(static_cast(parent)); + } else { + return new MyQAbstractItemModel(static_cast(parent)); + } +} + +void QAbstractItemModel_BeginInsertColumns(void* ptr, void* parent, int first, int last) +{ + static_cast(ptr)->beginInsertColumns(*static_cast(parent), first, last); +} + +void QAbstractItemModel_BeginInsertRows(void* ptr, void* parent, int first, int last) +{ + static_cast(ptr)->beginInsertRows(*static_cast(parent), first, last); +} + +char QAbstractItemModel_BeginMoveColumns(void* ptr, void* sourceParent, int sourceFirst, int sourceLast, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->beginMoveColumns(*static_cast(sourceParent), sourceFirst, sourceLast, *static_cast(destinationParent), destinationChild); +} + +char QAbstractItemModel_BeginMoveRows(void* ptr, void* sourceParent, int sourceFirst, int sourceLast, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->beginMoveRows(*static_cast(sourceParent), sourceFirst, sourceLast, *static_cast(destinationParent), destinationChild); +} + +void QAbstractItemModel_BeginRemoveColumns(void* ptr, void* parent, int first, int last) +{ + static_cast(ptr)->beginRemoveColumns(*static_cast(parent), first, last); +} + +void QAbstractItemModel_BeginRemoveRows(void* ptr, void* parent, int first, int last) +{ + static_cast(ptr)->beginRemoveRows(*static_cast(parent), first, last); +} + +void QAbstractItemModel_BeginResetModel(void* ptr) +{ + static_cast(ptr)->beginResetModel(); +} + +void* QAbstractItemModel_Buddy(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->buddy(*static_cast(index))); +} + +void* QAbstractItemModel_BuddyDefault(void* ptr, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QConcatenateTablesProxyModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QAbstractProxyModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QStringListModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QAbstractListModel::buddy(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QAbstractTableModel::buddy(*static_cast(index))); + } else { + return new QModelIndex(static_cast(ptr)->QAbstractItemModel::buddy(*static_cast(index))); + } +} + +char QAbstractItemModel_CanDropMimeData(void* ptr, void* data, long long action, int row, int column, void* parent) +{ + return static_cast(ptr)->canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); +} + +char QAbstractItemModel_CanDropMimeDataDefault(void* ptr, void* data, long long action, int row, int column, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::canDropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } +} + +char QAbstractItemModel_CanFetchMore(void* ptr, void* parent) +{ + return static_cast(ptr)->canFetchMore(*static_cast(parent)); +} + +char QAbstractItemModel_CanFetchMoreDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::canFetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::canFetchMore(*static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::canFetchMore(*static_cast(parent)); + } +} + +void QAbstractItemModel_ChangePersistentIndex(void* ptr, void* from, void* to) +{ + static_cast(ptr)->changePersistentIndex(*static_cast(from), *static_cast(to)); +} + +void QAbstractItemModel_ChangePersistentIndexList(void* ptr, void* from, void* to) +{ + static_cast(ptr)->changePersistentIndexList(({ QList* tmpP = static_cast*>(from); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }), ({ QList* tmpP = static_cast*>(to); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); +} + +char QAbstractItemModel_CheckIndex(void* ptr, void* index, long long options) +{ + return static_cast(ptr)->checkIndex(*static_cast(index), static_cast(options)); +} + +int QAbstractItemModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +void QAbstractItemModel_ConnectColumnsAboutToBeInserted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::columnsAboutToBeInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsAboutToBeInserted), static_cast(t)); +} + +void QAbstractItemModel_DisconnectColumnsAboutToBeInserted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::columnsAboutToBeInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsAboutToBeInserted)); +} + +void QAbstractItemModel_ConnectColumnsAboutToBeMoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::columnsAboutToBeMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsAboutToBeMoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectColumnsAboutToBeMoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::columnsAboutToBeMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsAboutToBeMoved)); +} + +void QAbstractItemModel_ConnectColumnsAboutToBeRemoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::columnsAboutToBeRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsAboutToBeRemoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectColumnsAboutToBeRemoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::columnsAboutToBeRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsAboutToBeRemoved)); +} + +void QAbstractItemModel_ConnectColumnsInserted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::columnsInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsInserted), static_cast(t)); +} + +void QAbstractItemModel_DisconnectColumnsInserted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::columnsInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsInserted)); +} + +void QAbstractItemModel_ConnectColumnsMoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::columnsMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsMoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectColumnsMoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::columnsMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsMoved)); +} + +void QAbstractItemModel_ConnectColumnsRemoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::columnsRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsRemoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectColumnsRemoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::columnsRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ColumnsRemoved)); +} + +void* QAbstractItemModel_CreateIndex(void* ptr, int row, int column, void* p) +{ + return new QModelIndex(static_cast(ptr)->createIndex(row, column, p)); +} + +void* QAbstractItemModel_CreateIndex2(void* ptr, int row, int column, uintptr_t id) +{ + return new QModelIndex(static_cast(ptr)->createIndex(row, column, id)); +} + +void* QAbstractItemModel_Data(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(index), role)); +} + +void QAbstractItemModel_ConnectDataChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast &)>(&QAbstractItemModel::dataChanged), static_cast(ptr), static_cast &)>(&MyQAbstractItemModel::Signal_DataChanged), static_cast(t)); +} + +void QAbstractItemModel_DisconnectDataChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast &)>(&QAbstractItemModel::dataChanged), static_cast(ptr), static_cast &)>(&MyQAbstractItemModel::Signal_DataChanged)); +} + +void QAbstractItemModel_DataChanged(void* ptr, void* topLeft, void* bottomRight, void* roles) +{ + static_cast(ptr)->dataChanged(*static_cast(topLeft), *static_cast(bottomRight), *static_cast*>(roles)); +} + +char QAbstractItemModel_DropMimeData(void* ptr, void* data, long long action, int row, int column, void* parent) +{ + return static_cast(ptr)->dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); +} + +char QAbstractItemModel_DropMimeDataDefault(void* ptr, void* data, long long action, int row, int column, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::dropMimeData(static_cast(data), static_cast(action), row, column, *static_cast(parent)); + } +} + +void QAbstractItemModel_EndInsertColumns(void* ptr) +{ + static_cast(ptr)->endInsertColumns(); +} + +void QAbstractItemModel_EndInsertRows(void* ptr) +{ + static_cast(ptr)->endInsertRows(); +} + +void QAbstractItemModel_EndMoveColumns(void* ptr) +{ + static_cast(ptr)->endMoveColumns(); +} + +void QAbstractItemModel_EndMoveRows(void* ptr) +{ + static_cast(ptr)->endMoveRows(); +} + +void QAbstractItemModel_EndRemoveColumns(void* ptr) +{ + static_cast(ptr)->endRemoveColumns(); +} + +void QAbstractItemModel_EndRemoveRows(void* ptr) +{ + static_cast(ptr)->endRemoveRows(); +} + +void QAbstractItemModel_EndResetModel(void* ptr) +{ + static_cast(ptr)->endResetModel(); +} + +void QAbstractItemModel_FetchMore(void* ptr, void* parent) +{ + static_cast(ptr)->fetchMore(*static_cast(parent)); +} + +void QAbstractItemModel_FetchMoreDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::fetchMore(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::fetchMore(*static_cast(parent)); + } else { + static_cast(ptr)->QAbstractItemModel::fetchMore(*static_cast(parent)); + } +} + +long long QAbstractItemModel_Flags(void* ptr, void* index) +{ + return static_cast(ptr)->flags(*static_cast(index)); +} + +long long QAbstractItemModel_FlagsDefault(void* ptr, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::flags(*static_cast(index)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::flags(*static_cast(index)); + } else { + return static_cast(ptr)->QAbstractItemModel::flags(*static_cast(index)); + } +} + +char QAbstractItemModel_HasChildren(void* ptr, void* parent) +{ + return static_cast(ptr)->hasChildren(*static_cast(parent)); +} + +char QAbstractItemModel_HasChildrenDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::hasChildren(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::hasChildren(*static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::hasChildren(*static_cast(parent)); + } +} + +char QAbstractItemModel_HasIndex(void* ptr, int row, int column, void* parent) +{ + return static_cast(ptr)->hasIndex(row, column, *static_cast(parent)); +} + +void* QAbstractItemModel_HeaderData(void* ptr, int section, long long orientation, int role) +{ + return new QVariant(static_cast(ptr)->headerData(section, static_cast(orientation), role)); +} + +void* QAbstractItemModel_HeaderDataDefault(void* ptr, int section, long long orientation, int role) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QConcatenateTablesProxyModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QTransposeProxyModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QSortFilterProxyModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QIdentityProxyModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QAbstractProxyModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QStringListModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QAbstractListModel::headerData(section, static_cast(orientation), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QAbstractTableModel::headerData(section, static_cast(orientation), role)); + } else { + return new QVariant(static_cast(ptr)->QAbstractItemModel::headerData(section, static_cast(orientation), role)); + } +} + +void QAbstractItemModel_ConnectHeaderDataChanged(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast(&QAbstractItemModel::headerDataChanged), static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_HeaderDataChanged), static_cast(t)); +} + +void QAbstractItemModel_DisconnectHeaderDataChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractItemModel::headerDataChanged), static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_HeaderDataChanged)); +} + +void QAbstractItemModel_HeaderDataChanged(void* ptr, long long orientation, int first, int last) +{ + static_cast(ptr)->headerDataChanged(static_cast(orientation), first, last); +} + +void* QAbstractItemModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +char QAbstractItemModel_InsertColumn(void* ptr, int column, void* parent) +{ + return static_cast(ptr)->insertColumn(column, *static_cast(parent)); +} + +char QAbstractItemModel_InsertColumns(void* ptr, int column, int count, void* parent) +{ + return static_cast(ptr)->insertColumns(column, count, *static_cast(parent)); +} + +char QAbstractItemModel_InsertColumnsDefault(void* ptr, int column, int count, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::insertColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::insertColumns(column, count, *static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::insertColumns(column, count, *static_cast(parent)); + } +} + +char QAbstractItemModel_InsertRow(void* ptr, int row, void* parent) +{ + return static_cast(ptr)->insertRow(row, *static_cast(parent)); +} + +char QAbstractItemModel_InsertRows(void* ptr, int row, int count, void* parent) +{ + return static_cast(ptr)->insertRows(row, count, *static_cast(parent)); +} + +char QAbstractItemModel_InsertRowsDefault(void* ptr, int row, int count, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::insertRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::insertRows(row, count, *static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::insertRows(row, count, *static_cast(parent)); + } +} + +struct QtCore_PackedList QAbstractItemModel_ItemData(void* ptr, void* index) +{ + return ({ QMap* tmpValue2d9f39 = new QMap(static_cast(ptr)->itemData(*static_cast(index))); QtCore_PackedList { tmpValue2d9f39, tmpValue2d9f39->size() }; }); +} + +struct QtCore_PackedList QAbstractItemModel_ItemDataDefault(void* ptr, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QConcatenateTablesProxyModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QTransposeProxyModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QSortFilterProxyModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QIdentityProxyModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QAbstractProxyModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QStringListModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QAbstractListModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QAbstractTableModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } else { + return ({ QMap* tmpValue46a96f = new QMap(static_cast(ptr)->QAbstractItemModel::itemData(*static_cast(index))); QtCore_PackedList { tmpValue46a96f, tmpValue46a96f->size() }; }); + } +} + +void QAbstractItemModel_ConnectLayoutAboutToBeChanged(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&MyQAbstractItemModel::Signal_LayoutAboutToBeChanged), static_cast(t)); +} + +void QAbstractItemModel_DisconnectLayoutAboutToBeChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutAboutToBeChanged), static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&MyQAbstractItemModel::Signal_LayoutAboutToBeChanged)); +} + +void QAbstractItemModel_LayoutAboutToBeChanged(void* ptr, void* parents, long long hint) +{ + static_cast(ptr)->layoutAboutToBeChanged(*static_cast*>(parents), static_cast(hint)); +} + +void QAbstractItemModel_ConnectLayoutChanged(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&MyQAbstractItemModel::Signal_LayoutChanged), static_cast(t)); +} + +void QAbstractItemModel_DisconnectLayoutChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&QAbstractItemModel::layoutChanged), static_cast(ptr), static_cast &, QAbstractItemModel::LayoutChangeHint)>(&MyQAbstractItemModel::Signal_LayoutChanged)); +} + +void QAbstractItemModel_LayoutChanged(void* ptr, void* parents, long long hint) +{ + static_cast(ptr)->layoutChanged(*static_cast*>(parents), static_cast(hint)); +} + +struct QtCore_PackedList QAbstractItemModel_Match(void* ptr, void* start, int role, void* value, int hits, long long flags) +{ + return ({ QList* tmpValuef30906 = new QList(static_cast(ptr)->match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValuef30906, tmpValuef30906->size() }; }); +} + +struct QtCore_PackedList QAbstractItemModel_MatchDefault(void* ptr, void* start, int role, void* value, int hits, long long flags) +{ + if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QConcatenateTablesProxyModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QTransposeProxyModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QSortFilterProxyModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QIdentityProxyModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QAbstractProxyModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QStringListModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QAbstractListModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QAbstractTableModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } else { + return ({ QList* tmpValue4d7ea4 = new QList(static_cast(ptr)->QAbstractItemModel::match(*static_cast(start), role, *static_cast(value), hits, static_cast(flags))); QtCore_PackedList { tmpValue4d7ea4, tmpValue4d7ea4->size() }; }); + } +} + +void* QAbstractItemModel_MimeData(void* ptr, void* indexes) +{ + return static_cast(ptr)->mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); +} + +void* QAbstractItemModel_MimeDataDefault(void* ptr, void* indexes) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } else { + return static_cast(ptr)->QAbstractItemModel::mimeData(({ QList* tmpP = static_cast*>(indexes); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); + } +} + +struct QtCore_PackedString QAbstractItemModel_MimeTypes(void* ptr) +{ + return ({ QByteArray* ta50262 = new QByteArray(static_cast(ptr)->mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(ta50262->prepend("WHITESPACE").constData()+10), ta50262->size()-10, ta50262 }; }); +} + +struct QtCore_PackedString QAbstractItemModel_MimeTypesDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QConcatenateTablesProxyModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QTransposeProxyModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QSortFilterProxyModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QIdentityProxyModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QAbstractProxyModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QStringListModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QAbstractListModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QAbstractTableModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } else { + return ({ QByteArray* tf2dad9 = new QByteArray(static_cast(ptr)->QAbstractItemModel::mimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf2dad9->prepend("WHITESPACE").constData()+10), tf2dad9->size()-10, tf2dad9 }; }); + } +} + +void QAbstractItemModel_ConnectModelAboutToBeReset(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::modelAboutToBeReset, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ModelAboutToBeReset), static_cast(t)); +} + +void QAbstractItemModel_DisconnectModelAboutToBeReset(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::modelAboutToBeReset, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ModelAboutToBeReset)); +} + +void QAbstractItemModel_ConnectModelReset(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::modelReset, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ModelReset), static_cast(t)); +} + +void QAbstractItemModel_DisconnectModelReset(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::modelReset, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_ModelReset)); +} + +char QAbstractItemModel_MoveColumn(void* ptr, void* sourceParent, int sourceColumn, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->moveColumn(*static_cast(sourceParent), sourceColumn, *static_cast(destinationParent), destinationChild); +} + +char QAbstractItemModel_MoveColumns(void* ptr, void* sourceParent, int sourceColumn, int count, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); +} + +char QAbstractItemModel_MoveColumnsDefault(void* ptr, void* sourceParent, int sourceColumn, int count, void* destinationParent, int destinationChild) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } else { + return static_cast(ptr)->QAbstractItemModel::moveColumns(*static_cast(sourceParent), sourceColumn, count, *static_cast(destinationParent), destinationChild); + } +} + +char QAbstractItemModel_MoveRow(void* ptr, void* sourceParent, int sourceRow, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->moveRow(*static_cast(sourceParent), sourceRow, *static_cast(destinationParent), destinationChild); +} + +char QAbstractItemModel_MoveRows(void* ptr, void* sourceParent, int sourceRow, int count, void* destinationParent, int destinationChild) +{ + return static_cast(ptr)->moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); +} + +char QAbstractItemModel_MoveRowsDefault(void* ptr, void* sourceParent, int sourceRow, int count, void* destinationParent, int destinationChild) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } else { + return static_cast(ptr)->QAbstractItemModel::moveRows(*static_cast(sourceParent), sourceRow, count, *static_cast(destinationParent), destinationChild); + } +} + +void* QAbstractItemModel_Parent(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(index))); +} + +struct QtCore_PackedList QAbstractItemModel_PersistentIndexList(void* ptr) +{ + return ({ QList* tmpValue86ddbc = new QList(static_cast(ptr)->persistentIndexList()); QtCore_PackedList { tmpValue86ddbc, tmpValue86ddbc->size() }; }); +} + +char QAbstractItemModel_RemoveColumn(void* ptr, int column, void* parent) +{ + return static_cast(ptr)->removeColumn(column, *static_cast(parent)); +} + +char QAbstractItemModel_RemoveColumns(void* ptr, int column, int count, void* parent) +{ + return static_cast(ptr)->removeColumns(column, count, *static_cast(parent)); +} + +char QAbstractItemModel_RemoveColumnsDefault(void* ptr, int column, int count, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::removeColumns(column, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::removeColumns(column, count, *static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::removeColumns(column, count, *static_cast(parent)); + } +} + +char QAbstractItemModel_RemoveRow(void* ptr, int row, void* parent) +{ + return static_cast(ptr)->removeRow(row, *static_cast(parent)); +} + +char QAbstractItemModel_RemoveRows(void* ptr, int row, int count, void* parent) +{ + return static_cast(ptr)->removeRows(row, count, *static_cast(parent)); +} + +char QAbstractItemModel_RemoveRowsDefault(void* ptr, int row, int count, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::removeRows(row, count, *static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::removeRows(row, count, *static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractItemModel::removeRows(row, count, *static_cast(parent)); + } +} + +void QAbstractItemModel_ResetInternalData(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "resetInternalData"); +} + +void QAbstractItemModel_ResetInternalDataDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::resetInternalData(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::resetInternalData(); + } else { + static_cast(ptr)->QAbstractItemModel::resetInternalData(); + } +} + +void QAbstractItemModel_Revert(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "revert"); +} + +void QAbstractItemModel_RevertDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::revert(); + } else { + static_cast(ptr)->QAbstractItemModel::revert(); + } +} + +struct QtCore_PackedList QAbstractItemModel_RoleNames(void* ptr) +{ + return ({ QHash* tmpValue40dc1d = new QHash(static_cast(ptr)->roleNames()); QtCore_PackedList { tmpValue40dc1d, tmpValue40dc1d->size() }; }); +} + +struct QtCore_PackedList QAbstractItemModel_RoleNamesDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QConcatenateTablesProxyModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QTransposeProxyModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QSortFilterProxyModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QIdentityProxyModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QAbstractProxyModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QStringListModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QAbstractListModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QAbstractTableModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } else { + return ({ QHash* tmpValue42442f = new QHash(static_cast(ptr)->QAbstractItemModel::roleNames()); QtCore_PackedList { tmpValue42442f, tmpValue42442f->size() }; }); + } +} + +int QAbstractItemModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +void QAbstractItemModel_ConnectRowsAboutToBeInserted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::rowsAboutToBeInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsAboutToBeInserted), static_cast(t)); +} + +void QAbstractItemModel_DisconnectRowsAboutToBeInserted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::rowsAboutToBeInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsAboutToBeInserted)); +} + +void QAbstractItemModel_ConnectRowsAboutToBeMoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::rowsAboutToBeMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsAboutToBeMoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectRowsAboutToBeMoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::rowsAboutToBeMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsAboutToBeMoved)); +} + +void QAbstractItemModel_ConnectRowsAboutToBeRemoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::rowsAboutToBeRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsAboutToBeRemoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectRowsAboutToBeRemoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::rowsAboutToBeRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsAboutToBeRemoved)); +} + +void QAbstractItemModel_ConnectRowsInserted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::rowsInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsInserted), static_cast(t)); +} + +void QAbstractItemModel_DisconnectRowsInserted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::rowsInserted, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsInserted)); +} + +void QAbstractItemModel_ConnectRowsMoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::rowsMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsMoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectRowsMoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::rowsMoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsMoved)); +} + +void QAbstractItemModel_ConnectRowsRemoved(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractItemModel::rowsRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsRemoved), static_cast(t)); +} + +void QAbstractItemModel_DisconnectRowsRemoved(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractItemModel::rowsRemoved, static_cast(ptr), static_cast(&MyQAbstractItemModel::Signal_RowsRemoved)); +} + +char QAbstractItemModel_SetData(void* ptr, void* index, void* value, int role) +{ + return static_cast(ptr)->setData(*static_cast(index), *static_cast(value), role); +} + +char QAbstractItemModel_SetDataDefault(void* ptr, void* index, void* value, int role) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::setData(*static_cast(index), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::setData(*static_cast(index), *static_cast(value), role); + } else { + return static_cast(ptr)->QAbstractItemModel::setData(*static_cast(index), *static_cast(value), role); + } +} + +char QAbstractItemModel_SetHeaderData(void* ptr, int section, long long orientation, void* value, int role) +{ + return static_cast(ptr)->setHeaderData(section, static_cast(orientation), *static_cast(value), role); +} + +char QAbstractItemModel_SetHeaderDataDefault(void* ptr, int section, long long orientation, void* value, int role) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } else { + return static_cast(ptr)->QAbstractItemModel::setHeaderData(section, static_cast(orientation), *static_cast(value), role); + } +} + +char QAbstractItemModel_SetItemData(void* ptr, void* index, void* roles) +{ + return static_cast(ptr)->setItemData(*static_cast(index), *static_cast*>(roles)); +} + +char QAbstractItemModel_SetItemDataDefault(void* ptr, void* index, void* roles) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } else { + return static_cast(ptr)->QAbstractItemModel::setItemData(*static_cast(index), *static_cast*>(roles)); + } +} + +void* QAbstractItemModel_Sibling(void* ptr, int row, int column, void* index) +{ + return new QModelIndex(static_cast(ptr)->sibling(row, column, *static_cast(index))); +} + +void* QAbstractItemModel_SiblingDefault(void* ptr, int row, int column, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QConcatenateTablesProxyModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QAbstractProxyModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QStringListModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QAbstractListModel::sibling(row, column, *static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QAbstractTableModel::sibling(row, column, *static_cast(index))); + } else { + return new QModelIndex(static_cast(ptr)->QAbstractItemModel::sibling(row, column, *static_cast(index))); + } +} + +void QAbstractItemModel_Sort(void* ptr, int column, long long order) +{ + static_cast(ptr)->sort(column, static_cast(order)); +} + +void QAbstractItemModel_SortDefault(void* ptr, int column, long long order) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::sort(column, static_cast(order)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::sort(column, static_cast(order)); + } else { + static_cast(ptr)->QAbstractItemModel::sort(column, static_cast(order)); + } +} + +void* QAbstractItemModel_Span(void* ptr, void* index) +{ + return ({ QSize tmpValue = static_cast(ptr)->span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +void* QAbstractItemModel_SpanDefault(void* ptr, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QConcatenateTablesProxyModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QTransposeProxyModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QSortFilterProxyModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QIdentityProxyModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QAbstractProxyModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QStringListModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QAbstractListModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QSize tmpValue = static_cast(ptr)->QAbstractTableModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } else { + return ({ QSize tmpValue = static_cast(ptr)->QAbstractItemModel::span(*static_cast(index)); new QSize(tmpValue.width(), tmpValue.height()); }); + } +} + +char QAbstractItemModel_Submit(void* ptr) +{ + bool returnArg; + QMetaObject::invokeMethod(static_cast(ptr), "submit", Q_RETURN_ARG(bool, returnArg)); + return returnArg; +} + +char QAbstractItemModel_SubmitDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::submit(); + } else { + return static_cast(ptr)->QAbstractItemModel::submit(); + } +} + +long long QAbstractItemModel_SupportedDragActions(void* ptr) +{ + return static_cast(ptr)->supportedDragActions(); +} + +long long QAbstractItemModel_SupportedDragActionsDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::supportedDragActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::supportedDragActions(); + } else { + return static_cast(ptr)->QAbstractItemModel::supportedDragActions(); + } +} + +long long QAbstractItemModel_SupportedDropActions(void* ptr) +{ + return static_cast(ptr)->supportedDropActions(); +} + +long long QAbstractItemModel_SupportedDropActionsDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::supportedDropActions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::supportedDropActions(); + } else { + return static_cast(ptr)->QAbstractItemModel::supportedDropActions(); + } +} + +void QAbstractItemModel_DestroyQAbstractItemModel(void* ptr) +{ + static_cast(ptr)->~QAbstractItemModel(); +} + +void QAbstractItemModel_DestroyQAbstractItemModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QAbstractItemModel___changePersistentIndexList_from_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___changePersistentIndexList_from_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___changePersistentIndexList_from_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___changePersistentIndexList_to_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___changePersistentIndexList_to_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___changePersistentIndexList_to_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QAbstractItemModel___dataChanged_roles_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QAbstractItemModel___dataChanged_roles_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QAbstractItemModel___dataChanged_roles_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +void* QAbstractItemModel___doSetRoleNames_roleNames_atList(void* ptr, int v, int i) +{ + return new QByteArray(({ QByteArray tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___doSetRoleNames_roleNames_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QAbstractItemModel___doSetRoleNames_roleNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QAbstractItemModel___doSetRoleNames_roleNames_keyList(void* ptr) +{ + return ({ QList* tmpValue7fc3bb = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue7fc3bb, tmpValue7fc3bb->size() }; }); +} + +void* QAbstractItemModel___encodeData_indexes_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___encodeData_indexes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___encodeData_indexes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___itemData_atList(void* ptr, int v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___itemData_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QAbstractItemModel___itemData_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtCore_PackedList QAbstractItemModel___itemData_keyList(void* ptr) +{ + return ({ QList* tmpValue249128 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue249128, tmpValue249128->size() }; }); +} + +void* QAbstractItemModel___layoutAboutToBeChanged_parents_atList(void* ptr, int i) +{ + return new QPersistentModelIndex(({QPersistentModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___layoutAboutToBeChanged_parents_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___layoutAboutToBeChanged_parents_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___layoutChanged_parents_atList(void* ptr, int i) +{ + return new QPersistentModelIndex(({QPersistentModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___layoutChanged_parents_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___layoutChanged_parents_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___match_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___match_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___match_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___mimeData_indexes_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___mimeData_indexes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___mimeData_indexes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___persistentIndexList_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___persistentIndexList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QAbstractItemModel___persistentIndexList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractItemModel___roleNames_atList(void* ptr, int v, int i) +{ + return new QByteArray(({ QByteArray tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___roleNames_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QAbstractItemModel___roleNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QAbstractItemModel___roleNames_keyList(void* ptr) +{ + return ({ QList* tmpValue7fc3bb = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue7fc3bb, tmpValue7fc3bb->size() }; }); +} + +void* QAbstractItemModel___setItemData_roles_atList(void* ptr, int v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___setItemData_roles_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QAbstractItemModel___setItemData_roles_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtCore_PackedList QAbstractItemModel___setItemData_roles_keyList(void* ptr) +{ + return ({ QList* tmpValue249128 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue249128, tmpValue249128->size() }; }); +} + +void* QAbstractItemModel___setRoleNames_roleNames_atList(void* ptr, int v, int i) +{ + return new QByteArray(({ QByteArray tmp = static_cast*>(ptr)->value(v); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QAbstractItemModel___setRoleNames_roleNames_setList(void* ptr, int key, void* i) +{ + static_cast*>(ptr)->insert(key, *static_cast(i)); +} + +void* QAbstractItemModel___setRoleNames_roleNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QAbstractItemModel___setRoleNames_roleNames_keyList(void* ptr) +{ + return ({ QList* tmpValue7fc3bb = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue7fc3bb, tmpValue7fc3bb->size() }; }); +} + +int QAbstractItemModel_____doSetRoleNames_roleNames_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractItemModel_____doSetRoleNames_roleNames_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QAbstractItemModel_____doSetRoleNames_roleNames_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QAbstractItemModel_____itemData_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractItemModel_____itemData_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QAbstractItemModel_____itemData_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QAbstractItemModel_____roleNames_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractItemModel_____roleNames_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QAbstractItemModel_____roleNames_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QAbstractItemModel_____setItemData_roles_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractItemModel_____setItemData_roles_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QAbstractItemModel_____setItemData_roles_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QAbstractItemModel_____setRoleNames_roleNames_keyList_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractItemModel_____setRoleNames_roleNames_keyList_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QAbstractItemModel_____setRoleNames_roleNames_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQAbstractListModel: public QAbstractListModel +{ +public: + MyQAbstractListModel(QObject *parent = Q_NULLPTR) : QAbstractListModel(parent) {QAbstractListModel_QAbstractListModel_QRegisterMetaType();}; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQAbstractListModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + ~MyQAbstractListModel() { callbackQAbstractListModel_DestroyQAbstractListModel(this); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQAbstractListModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQAbstractListModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & index) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&index))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQAbstractListModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractItemModel_Revert(this); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + int rowCount(const QModelIndex & parent) const { return callbackQAbstractListModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + bool submit() { return callbackQAbstractItemModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractListModel*) +Q_DECLARE_METATYPE(MyQAbstractListModel*) + +int QAbstractListModel_QAbstractListModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractListModel_NewQAbstractListModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractListModel(static_cast(parent)); + } else { + return new MyQAbstractListModel(static_cast(parent)); + } +} + +void* QAbstractListModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QAbstractListModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QStringListModel::index(row, column, *static_cast(parent))); + } else { + return new QModelIndex(static_cast(ptr)->QAbstractListModel::index(row, column, *static_cast(parent))); + } +} + +void QAbstractListModel_DestroyQAbstractListModel(void* ptr) +{ + static_cast(ptr)->~QAbstractListModel(); +} + +void QAbstractListModel_DestroyQAbstractListModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +int QAbstractListModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QAbstractListModel_ColumnCountDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::columnCount(*static_cast(parent)); + } else { + return static_cast(ptr)->QAbstractListModel::columnCount(*static_cast(parent)); + } +} + +void* QAbstractListModel_Data(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(index), role)); +} + +void* QAbstractListModel_DataDefault(void* ptr, void* index, int role) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QStringListModel::data(*static_cast(index), role)); + } else { + + } +} + +void* QAbstractListModel_Parent(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(index))); +} + +void* QAbstractListModel_ParentDefault(void* ptr, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QStringListModel::parent(*static_cast(index))); + } else { + return new QModelIndex(static_cast(ptr)->QAbstractListModel::parent(*static_cast(index))); + } +} + +int QAbstractListModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QAbstractListModel_RowCountDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::rowCount(*static_cast(parent)); + } else { + + } +} + +class MyQAbstractNativeEventFilter: public QAbstractNativeEventFilter +{ +public: + MyQAbstractNativeEventFilter() : QAbstractNativeEventFilter() {QAbstractNativeEventFilter_QAbstractNativeEventFilter_QRegisterMetaType();}; + bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) { return callbackQAbstractNativeEventFilter_NativeEventFilter(this, const_cast(&eventType), message, result) != 0; }; + ~MyQAbstractNativeEventFilter() { callbackQAbstractNativeEventFilter_DestroyQAbstractNativeEventFilter(this); }; +}; + +Q_DECLARE_METATYPE(QAbstractNativeEventFilter*) +Q_DECLARE_METATYPE(MyQAbstractNativeEventFilter*) + +int QAbstractNativeEventFilter_QAbstractNativeEventFilter_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractNativeEventFilter_NewQAbstractNativeEventFilter() +{ + return new MyQAbstractNativeEventFilter(); +} + +char QAbstractNativeEventFilter_NativeEventFilter(void* ptr, void* eventType, void* message, long* result) +{ + return static_cast(ptr)->nativeEventFilter(*static_cast(eventType), message, result); +} + +void QAbstractNativeEventFilter_DestroyQAbstractNativeEventFilter(void* ptr) +{ + static_cast(ptr)->~QAbstractNativeEventFilter(); +} + +void QAbstractNativeEventFilter_DestroyQAbstractNativeEventFilterDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQAbstractProxyModel: public QAbstractProxyModel +{ +public: + MyQAbstractProxyModel(QObject *parent = Q_NULLPTR) : QAbstractProxyModel(parent) {QAbstractProxyModel_QAbstractProxyModel_QRegisterMetaType();}; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant data(const QModelIndex & proxyIndex, int role) const { return *static_cast(callbackQAbstractProxyModel_Data(const_cast(static_cast(this)), const_cast(&proxyIndex), role)); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + QMap itemData(const QModelIndex & proxyIndex) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&proxyIndex))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + QModelIndex mapFromSource(const QModelIndex & sourceIndex) const { return *static_cast(callbackQAbstractProxyModel_MapFromSource(const_cast(static_cast(this)), const_cast(&sourceIndex))); }; + QItemSelection mapSelectionFromSource(const QItemSelection & sourceSelection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionFromSource(const_cast(static_cast(this)), const_cast(&sourceSelection))); }; + QItemSelection mapSelectionToSource(const QItemSelection & proxySelection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionToSource(const_cast(static_cast(this)), const_cast(&proxySelection))); }; + QModelIndex mapToSource(const QModelIndex & proxyIndex) const { return *static_cast(callbackQAbstractProxyModel_MapToSource(const_cast(static_cast(this)), const_cast(&proxyIndex))); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractProxyModel_Revert(this); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + void setSourceModel(QAbstractItemModel * sourceModel) { callbackQAbstractProxyModel_SetSourceModel(this, sourceModel); }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + void Signal_SourceModelChanged() { callbackQAbstractProxyModel_SourceModelChanged(this); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + bool submit() { return callbackQAbstractProxyModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + ~MyQAbstractProxyModel() { callbackQAbstractProxyModel_DestroyQAbstractProxyModel(this); }; + int columnCount(const QModelIndex & parent) const { return callbackQAbstractProxyModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQAbstractProxyModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQAbstractProxyModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + int rowCount(const QModelIndex & parent) const { return callbackQAbstractProxyModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractProxyModel*) +Q_DECLARE_METATYPE(MyQAbstractProxyModel*) + +int QAbstractProxyModel_QAbstractProxyModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractProxyModel_NewQAbstractProxyModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractProxyModel(static_cast(parent)); + } else { + return new MyQAbstractProxyModel(static_cast(parent)); + } +} + +void* QAbstractProxyModel_Data(void* ptr, void* proxyIndex, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(proxyIndex), role)); +} + +void* QAbstractProxyModel_DataDefault(void* ptr, void* proxyIndex, int role) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QTransposeProxyModel::data(*static_cast(proxyIndex), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QSortFilterProxyModel::data(*static_cast(proxyIndex), role)); + } else if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QIdentityProxyModel::data(*static_cast(proxyIndex), role)); + } else { + return new QVariant(static_cast(ptr)->QAbstractProxyModel::data(*static_cast(proxyIndex), role)); + } +} + +void* QAbstractProxyModel_MapFromSource(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->mapFromSource(*static_cast(sourceIndex))); +} + +void* QAbstractProxyModel_MapSelectionFromSource(void* ptr, void* sourceSelection) +{ + return new QItemSelection(static_cast(ptr)->mapSelectionFromSource(*static_cast(sourceSelection))); +} + +void* QAbstractProxyModel_MapSelectionFromSourceDefault(void* ptr, void* sourceSelection) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QItemSelection(static_cast(ptr)->QTransposeProxyModel::mapSelectionFromSource(*static_cast(sourceSelection))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QItemSelection(static_cast(ptr)->QSortFilterProxyModel::mapSelectionFromSource(*static_cast(sourceSelection))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QItemSelection(static_cast(ptr)->QIdentityProxyModel::mapSelectionFromSource(*static_cast(sourceSelection))); + } else { + return new QItemSelection(static_cast(ptr)->QAbstractProxyModel::mapSelectionFromSource(*static_cast(sourceSelection))); + } +} + +void* QAbstractProxyModel_MapSelectionToSource(void* ptr, void* proxySelection) +{ + return new QItemSelection(static_cast(ptr)->mapSelectionToSource(*static_cast(proxySelection))); +} + +void* QAbstractProxyModel_MapSelectionToSourceDefault(void* ptr, void* proxySelection) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QItemSelection(static_cast(ptr)->QTransposeProxyModel::mapSelectionToSource(*static_cast(proxySelection))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QItemSelection(static_cast(ptr)->QSortFilterProxyModel::mapSelectionToSource(*static_cast(proxySelection))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QItemSelection(static_cast(ptr)->QIdentityProxyModel::mapSelectionToSource(*static_cast(proxySelection))); + } else { + return new QItemSelection(static_cast(ptr)->QAbstractProxyModel::mapSelectionToSource(*static_cast(proxySelection))); + } +} + +void* QAbstractProxyModel_MapToSource(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->mapToSource(*static_cast(proxyIndex))); +} + +void QAbstractProxyModel_Revert(void* ptr) +{ + static_cast(ptr)->revert(); +} + +void QAbstractProxyModel_RevertDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::revert(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::revert(); + } else { + static_cast(ptr)->QAbstractProxyModel::revert(); + } +} + +void QAbstractProxyModel_SetSourceModel(void* ptr, void* sourceModel) +{ + static_cast(ptr)->setSourceModel(static_cast(sourceModel)); +} + +void QAbstractProxyModel_SetSourceModelDefault(void* ptr, void* sourceModel) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::setSourceModel(static_cast(sourceModel)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::setSourceModel(static_cast(sourceModel)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::setSourceModel(static_cast(sourceModel)); + } else { + static_cast(ptr)->QAbstractProxyModel::setSourceModel(static_cast(sourceModel)); + } +} + +void* QAbstractProxyModel_SourceModel(void* ptr) +{ + return static_cast(ptr)->sourceModel(); +} + +void QAbstractProxyModel_ConnectSourceModelChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractProxyModel::sourceModelChanged, static_cast(ptr), static_cast(&MyQAbstractProxyModel::Signal_SourceModelChanged), static_cast(t)); +} + +void QAbstractProxyModel_DisconnectSourceModelChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractProxyModel::sourceModelChanged, static_cast(ptr), static_cast(&MyQAbstractProxyModel::Signal_SourceModelChanged)); +} + +char QAbstractProxyModel_Submit(void* ptr) +{ + return static_cast(ptr)->submit(); +} + +char QAbstractProxyModel_SubmitDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::submit(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::submit(); + } else { + return static_cast(ptr)->QAbstractProxyModel::submit(); + } +} + +void QAbstractProxyModel_DestroyQAbstractProxyModel(void* ptr) +{ + static_cast(ptr)->~QAbstractProxyModel(); +} + +void QAbstractProxyModel_DestroyQAbstractProxyModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +int QAbstractProxyModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QAbstractProxyModel_ColumnCountDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::columnCount(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::columnCount(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::columnCount(*static_cast(parent)); + } else { + + } +} + +void* QAbstractProxyModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QAbstractProxyModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::index(row, column, *static_cast(parent))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::index(row, column, *static_cast(parent))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::index(row, column, *static_cast(parent))); + } else { + + } +} + +void* QAbstractProxyModel_Parent(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(index))); +} + +void* QAbstractProxyModel_ParentDefault(void* ptr, void* index) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::parent(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::parent(*static_cast(index))); + } else if (dynamic_cast(static_cast(ptr))) { + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::parent(*static_cast(index))); + } else { + + } +} + +int QAbstractProxyModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QAbstractProxyModel_RowCountDefault(void* ptr, void* parent) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::rowCount(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::rowCount(*static_cast(parent)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::rowCount(*static_cast(parent)); + } else { + + } +} + +class MyQAbstractState: public QAbstractState +{ +public: + MyQAbstractState(QState *parent = Q_NULLPTR) : QAbstractState(parent) {QAbstractState_QAbstractState_QRegisterMetaType();}; + void Signal_ActiveChanged(bool active) { callbackQAbstractState_ActiveChanged(this, active); }; + void Signal_Entered() { callbackQAbstractState_Entered(this); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void Signal_Exited() { callbackQAbstractState_Exited(this); }; + void onEntry(QEvent * event) { callbackQAbstractState_OnEntry(this, event); }; + void onExit(QEvent * event) { callbackQAbstractState_OnExit(this, event); }; + ~MyQAbstractState() { callbackQAbstractState_DestroyQAbstractState(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractState*) +Q_DECLARE_METATYPE(MyQAbstractState*) + +int QAbstractState_QAbstractState_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractState_NewQAbstractState(void* parent) +{ + return new MyQAbstractState(static_cast(parent)); +} + +char QAbstractState_Active(void* ptr) +{ + return static_cast(ptr)->active(); +} + +void QAbstractState_ConnectActiveChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QAbstractState::activeChanged), static_cast(ptr), static_cast(&MyQAbstractState::Signal_ActiveChanged), static_cast(t)); +} + +void QAbstractState_DisconnectActiveChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QAbstractState::activeChanged), static_cast(ptr), static_cast(&MyQAbstractState::Signal_ActiveChanged)); +} + +void QAbstractState_ActiveChanged(void* ptr, char active) +{ + static_cast(ptr)->activeChanged(active != 0); +} + +void QAbstractState_ConnectEntered(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractState::entered, static_cast(ptr), static_cast(&MyQAbstractState::Signal_Entered), static_cast(t)); +} + +void QAbstractState_DisconnectEntered(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractState::entered, static_cast(ptr), static_cast(&MyQAbstractState::Signal_Entered)); +} + +void QAbstractState_ConnectExited(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractState::exited, static_cast(ptr), static_cast(&MyQAbstractState::Signal_Exited), static_cast(t)); +} + +void QAbstractState_DisconnectExited(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractState::exited, static_cast(ptr), static_cast(&MyQAbstractState::Signal_Exited)); +} + +void* QAbstractState_Machine(void* ptr) +{ + return static_cast(ptr)->machine(); +} + +void QAbstractState_OnEntry(void* ptr, void* event) +{ + static_cast(ptr)->onEntry(static_cast(event)); +} + +void QAbstractState_OnExit(void* ptr, void* event) +{ + static_cast(ptr)->onExit(static_cast(event)); +} + +void* QAbstractState_ParentState(void* ptr) +{ + return static_cast(ptr)->parentState(); +} + +void QAbstractState_DestroyQAbstractState(void* ptr) +{ + static_cast(ptr)->~QAbstractState(); +} + +void QAbstractState_DestroyQAbstractStateDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQAbstractTableModel: public QAbstractTableModel +{ +public: + MyQAbstractTableModel(QObject *parent = Q_NULLPTR) : QAbstractTableModel(parent) {QAbstractTableModel_QAbstractTableModel_QRegisterMetaType();}; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQAbstractTableModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + ~MyQAbstractTableModel() { callbackQAbstractTableModel_DestroyQAbstractTableModel(this); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQAbstractTableModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQAbstractTableModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & index) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&index))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQAbstractTableModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractItemModel_Revert(this); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + int rowCount(const QModelIndex & parent) const { return callbackQAbstractTableModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + bool submit() { return callbackQAbstractItemModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractTableModel*) +Q_DECLARE_METATYPE(MyQAbstractTableModel*) + +int QAbstractTableModel_QAbstractTableModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractTableModel_NewQAbstractTableModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAbstractTableModel(static_cast(parent)); + } else { + return new MyQAbstractTableModel(static_cast(parent)); + } +} + +void* QAbstractTableModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QAbstractTableModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->QAbstractTableModel::index(row, column, *static_cast(parent))); +} + +void QAbstractTableModel_DestroyQAbstractTableModel(void* ptr) +{ + static_cast(ptr)->~QAbstractTableModel(); +} + +void QAbstractTableModel_DestroyQAbstractTableModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +int QAbstractTableModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QAbstractTableModel_ColumnCountDefault(void* ptr, void* parent) +{ + Q_UNUSED(ptr); + Q_UNUSED(parent); + +} + +void* QAbstractTableModel_Data(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(index), role)); +} + +void* QAbstractTableModel_DataDefault(void* ptr, void* index, int role) +{ + Q_UNUSED(ptr); + Q_UNUSED(index); + Q_UNUSED(role); + +} + +void* QAbstractTableModel_Parent(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(index))); +} + +void* QAbstractTableModel_ParentDefault(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->QAbstractTableModel::parent(*static_cast(index))); +} + +int QAbstractTableModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QAbstractTableModel_RowCountDefault(void* ptr, void* parent) +{ + Q_UNUSED(ptr); + Q_UNUSED(parent); + +} + +class MyQAbstractTransition: public QAbstractTransition +{ +public: + MyQAbstractTransition(QState *sourceState = Q_NULLPTR) : QAbstractTransition(sourceState) {QAbstractTransition_QAbstractTransition_QRegisterMetaType();}; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventTest(QEvent * event) { return callbackQAbstractTransition_EventTest(this, event) != 0; }; + void onTransition(QEvent * event) { callbackQAbstractTransition_OnTransition(this, event); }; + void Signal_TargetStateChanged() { callbackQAbstractTransition_TargetStateChanged(this); }; + void Signal_TargetStatesChanged() { callbackQAbstractTransition_TargetStatesChanged(this); }; + void Signal_Triggered() { callbackQAbstractTransition_Triggered(this); }; + ~MyQAbstractTransition() { callbackQAbstractTransition_DestroyQAbstractTransition(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAbstractTransition*) +Q_DECLARE_METATYPE(MyQAbstractTransition*) + +int QAbstractTransition_QAbstractTransition_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAbstractTransition_NewQAbstractTransition(void* sourceState) +{ + return new MyQAbstractTransition(static_cast(sourceState)); +} + +void QAbstractTransition_AddAnimation(void* ptr, void* animation) +{ + static_cast(ptr)->addAnimation(static_cast(animation)); +} + +struct QtCore_PackedList QAbstractTransition_Animations(void* ptr) +{ + return ({ QList* tmpValueb0afeb = new QList(static_cast(ptr)->animations()); QtCore_PackedList { tmpValueb0afeb, tmpValueb0afeb->size() }; }); +} + +char QAbstractTransition_EventTest(void* ptr, void* event) +{ + return static_cast(ptr)->eventTest(static_cast(event)); +} + +void* QAbstractTransition_Machine(void* ptr) +{ + return static_cast(ptr)->machine(); +} + +void QAbstractTransition_OnTransition(void* ptr, void* event) +{ + static_cast(ptr)->onTransition(static_cast(event)); +} + +void QAbstractTransition_RemoveAnimation(void* ptr, void* animation) +{ + static_cast(ptr)->removeAnimation(static_cast(animation)); +} + +void QAbstractTransition_SetTargetState(void* ptr, void* target) +{ + static_cast(ptr)->setTargetState(static_cast(target)); +} + +void QAbstractTransition_SetTargetStates(void* ptr, void* targets) +{ + static_cast(ptr)->setTargetStates(*static_cast*>(targets)); +} + +void QAbstractTransition_SetTransitionType(void* ptr, long long ty) +{ + static_cast(ptr)->setTransitionType(static_cast(ty)); +} + +void* QAbstractTransition_SourceState(void* ptr) +{ + return static_cast(ptr)->sourceState(); +} + +void* QAbstractTransition_TargetState(void* ptr) +{ + return static_cast(ptr)->targetState(); +} + +void QAbstractTransition_ConnectTargetStateChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractTransition::targetStateChanged, static_cast(ptr), static_cast(&MyQAbstractTransition::Signal_TargetStateChanged), static_cast(t)); +} + +void QAbstractTransition_DisconnectTargetStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractTransition::targetStateChanged, static_cast(ptr), static_cast(&MyQAbstractTransition::Signal_TargetStateChanged)); +} + +struct QtCore_PackedList QAbstractTransition_TargetStates(void* ptr) +{ + return ({ QList* tmpValue7ca357 = new QList(static_cast(ptr)->targetStates()); QtCore_PackedList { tmpValue7ca357, tmpValue7ca357->size() }; }); +} + +void QAbstractTransition_ConnectTargetStatesChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractTransition::targetStatesChanged, static_cast(ptr), static_cast(&MyQAbstractTransition::Signal_TargetStatesChanged), static_cast(t)); +} + +void QAbstractTransition_DisconnectTargetStatesChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractTransition::targetStatesChanged, static_cast(ptr), static_cast(&MyQAbstractTransition::Signal_TargetStatesChanged)); +} + +long long QAbstractTransition_TransitionType(void* ptr) +{ + return static_cast(ptr)->transitionType(); +} + +void QAbstractTransition_ConnectTriggered(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QAbstractTransition::triggered, static_cast(ptr), static_cast(&MyQAbstractTransition::Signal_Triggered), static_cast(t)); +} + +void QAbstractTransition_DisconnectTriggered(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QAbstractTransition::triggered, static_cast(ptr), static_cast(&MyQAbstractTransition::Signal_Triggered)); +} + +void QAbstractTransition_DestroyQAbstractTransition(void* ptr) +{ + static_cast(ptr)->~QAbstractTransition(); +} + +void QAbstractTransition_DestroyQAbstractTransitionDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QAbstractTransition___animations_atList(void* ptr, int i) +{ + return ({QAbstractAnimation * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractTransition___animations_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QAbstractTransition___animations_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractTransition___setTargetStates_targets_atList(void* ptr, int i) +{ + return ({QAbstractState * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractTransition___setTargetStates_targets_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QAbstractTransition___setTargetStates_targets_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QAbstractTransition___targetStates_atList(void* ptr, int i) +{ + return ({QAbstractState * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QAbstractTransition___targetStates_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QAbstractTransition___targetStates_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQAnimationGroup: public QAnimationGroup +{ +public: + MyQAnimationGroup(QObject *parent = Q_NULLPTR) : QAnimationGroup(parent) {QAnimationGroup_QAnimationGroup_QRegisterMetaType();}; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + ~MyQAnimationGroup() { callbackQAnimationGroup_DestroyQAnimationGroup(this); }; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + int duration() const { return callbackQAnimationGroup_Duration(const_cast(static_cast(this))); }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void updateCurrentTime(int currentTime) { callbackQAnimationGroup_UpdateCurrentTime(this, currentTime); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QAnimationGroup*) +Q_DECLARE_METATYPE(MyQAnimationGroup*) + +int QAnimationGroup_QAnimationGroup_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QAnimationGroup_NewQAnimationGroup(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQAnimationGroup(static_cast(parent)); + } else { + return new MyQAnimationGroup(static_cast(parent)); + } +} + +void QAnimationGroup_AddAnimation(void* ptr, void* animation) +{ + static_cast(ptr)->addAnimation(static_cast(animation)); +} + +void* QAnimationGroup_AnimationAt(void* ptr, int index) +{ + return static_cast(ptr)->animationAt(index); +} + +int QAnimationGroup_AnimationCount(void* ptr) +{ + return static_cast(ptr)->animationCount(); +} + +void QAnimationGroup_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +int QAnimationGroup_IndexOfAnimation(void* ptr, void* animation) +{ + return static_cast(ptr)->indexOfAnimation(static_cast(animation)); +} + +void QAnimationGroup_InsertAnimation(void* ptr, int index, void* animation) +{ + static_cast(ptr)->insertAnimation(index, static_cast(animation)); +} + +void QAnimationGroup_RemoveAnimation(void* ptr, void* animation) +{ + static_cast(ptr)->removeAnimation(static_cast(animation)); +} + +void* QAnimationGroup_TakeAnimation(void* ptr, int index) +{ + return static_cast(ptr)->takeAnimation(index); +} + +void QAnimationGroup_DestroyQAnimationGroup(void* ptr) +{ + static_cast(ptr)->~QAnimationGroup(); +} + +void QAnimationGroup_DestroyQAnimationGroupDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +int QAnimationGroup_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +int QAnimationGroup_DurationDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSequentialAnimationGroup::duration(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QParallelAnimationGroup::duration(); + } else { + + } +} + +void QAnimationGroup_UpdateCurrentTime(void* ptr, int currentTime) +{ + static_cast(ptr)->updateCurrentTime(currentTime); +} + +void QAnimationGroup_UpdateCurrentTimeDefault(void* ptr, int currentTime) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::updateCurrentTime(currentTime); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::updateCurrentTime(currentTime); + } else { + + } +} + +int QAssociativeIterable_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +void* QAssociativeIterable_Value(void* ptr, void* key) +{ + return new QVariant(static_cast(ptr)->value(*static_cast(key))); +} + +char QBasicMutex_IsRecursive2(void* ptr) +{ + return static_cast(ptr)->isRecursive(); +} + +Q_DECLARE_METATYPE(QBasicTimer) +Q_DECLARE_METATYPE(QBasicTimer*) +void* QBasicTimer_NewQBasicTimer() +{ + return new QBasicTimer(); +} + +char QBasicTimer_IsActive(void* ptr) +{ + return static_cast(ptr)->isActive(); +} + +void QBasicTimer_Start(void* ptr, int msec, void* object) +{ + static_cast(ptr)->start(msec, static_cast(object)); +} + +void QBasicTimer_Start2(void* ptr, int msec, long long timerType, void* obj) +{ + static_cast(ptr)->start(msec, static_cast(timerType), static_cast(obj)); +} + +void QBasicTimer_Stop(void* ptr) +{ + static_cast(ptr)->stop(); +} + +int QBasicTimer_TimerId(void* ptr) +{ + return static_cast(ptr)->timerId(); +} + +void QBasicTimer_DestroyQBasicTimer(void* ptr) +{ + static_cast(ptr)->~QBasicTimer(); +} + +Q_DECLARE_METATYPE(QBitArray) +Q_DECLARE_METATYPE(QBitArray*) +void* QBitArray_NewQBitArray() +{ + return new QBitArray(); +} + +void* QBitArray_NewQBitArray2(int size, char value) +{ + return new QBitArray(size, value != 0); +} + +void* QBitArray_NewQBitArray3(void* other) +{ + return new QBitArray(*static_cast(other)); +} + +void* QBitArray_NewQBitArray4(void* other) +{ + return new QBitArray(*static_cast(other)); +} + +char QBitArray_At(void* ptr, int i) +{ + return static_cast(ptr)->at(i); +} + +struct QtCore_PackedString QBitArray_Bits(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->bits()), -1, NULL }; +} + +void QBitArray_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +void QBitArray_ClearBit(void* ptr, int i) +{ + static_cast(ptr)->clearBit(i); +} + +int QBitArray_Count(void* ptr) +{ + return static_cast(ptr)->count(); +} + +int QBitArray_Count2(void* ptr, char on) +{ + return static_cast(ptr)->count(on != 0); +} + +char QBitArray_Fill(void* ptr, char value, int size) +{ + return static_cast(ptr)->fill(value != 0, size); +} + +void QBitArray_Fill2(void* ptr, char value, int begin, int end) +{ + static_cast(ptr)->fill(value != 0, begin, end); +} + +char QBitArray_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QBitArray_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +void QBitArray_Resize(void* ptr, int size) +{ + static_cast(ptr)->resize(size); +} + +void QBitArray_SetBit(void* ptr, int i) +{ + static_cast(ptr)->setBit(i); +} + +void QBitArray_SetBit2(void* ptr, int i, char value) +{ + static_cast(ptr)->setBit(i, value != 0); +} + +int QBitArray_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +void QBitArray_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +char QBitArray_TestBit(void* ptr, int i) +{ + return static_cast(ptr)->testBit(i); +} + +char QBitArray_ToggleBit(void* ptr, int i) +{ + return static_cast(ptr)->toggleBit(i); +} + +void QBitArray_Truncate(void* ptr, int pos) +{ + static_cast(ptr)->truncate(pos); +} + +class MyQBuffer: public QBuffer +{ +public: + MyQBuffer(QObject *parent = Q_NULLPTR) : QBuffer(parent) {QBuffer_QBuffer_QRegisterMetaType();}; + MyQBuffer(QByteArray *byteArray, QObject *parent = Q_NULLPTR) : QBuffer(byteArray, parent) {QBuffer_QBuffer_QRegisterMetaType();}; + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void close() { callbackQIODevice_Close(this); }; + bool open(QIODevice::OpenMode flags) { return callbackQIODevice_Open(this, flags) != 0; }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + qint64 readData(char * data, qint64 l) { QtCore_PackedString dataPacked = { data, l, NULL };return callbackQBuffer_ReadData(this, dataPacked, l); }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + qint64 writeData(const char * data, qint64 l) { QtCore_PackedString dataPacked = { const_cast(data), l, NULL };return callbackQBuffer_WriteData(this, dataPacked, l); }; + ~MyQBuffer() { callbackQBuffer_DestroyQBuffer(this); }; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + qint64 readLineData(char * data, qint64 maxSize) { QtCore_PackedString dataPacked = { data, maxSize, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxSize); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QBuffer*) +Q_DECLARE_METATYPE(MyQBuffer*) + +int QBuffer_QBuffer_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QBuffer_NewQBuffer(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(parent)); + } else { + return new MyQBuffer(static_cast(parent)); + } +} + +void* QBuffer_NewQBuffer2(void* byteArray, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } else { + return new MyQBuffer(static_cast(byteArray), static_cast(parent)); + } +} + +void* QBuffer_Buffer(void* ptr) +{ + return new QByteArray(static_cast(ptr)->buffer()); +} + +void* QBuffer_Buffer2(void* ptr) +{ + return const_cast(&static_cast(ptr)->buffer()); +} + +void* QBuffer_Data(void* ptr) +{ + return const_cast(&static_cast(ptr)->data()); +} + +long long QBuffer_ReadData(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->readData(data, l); +} + +long long QBuffer_ReadDataDefault(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->QBuffer::readData(data, l); +} + +void QBuffer_SetBuffer(void* ptr, void* byteArray) +{ + static_cast(ptr)->setBuffer(static_cast(byteArray)); +} + +void QBuffer_SetData(void* ptr, void* data) +{ + static_cast(ptr)->setData(*static_cast(data)); +} + +void QBuffer_SetData2(void* ptr, char* data, int size) +{ + static_cast(ptr)->setData(const_cast(data), size); +} + +long long QBuffer_WriteData(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->writeData(const_cast(data), l); +} + +long long QBuffer_WriteDataDefault(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->QBuffer::writeData(const_cast(data), l); +} + +void QBuffer_DestroyQBuffer(void* ptr) +{ + static_cast(ptr)->~QBuffer(); +} + +void QBuffer_DestroyQBufferDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QByteArray) +Q_DECLARE_METATYPE(QByteArray*) +void* QByteArray_NewQByteArray() +{ + return new QByteArray(); +} + +void* QByteArray_NewQByteArray2(char* data, int size) +{ + return new QByteArray(const_cast(data), size); +} + +void* QByteArray_NewQByteArray3(int size, char* ch) +{ + return new QByteArray(size, *ch); +} + +void* QByteArray_NewQByteArray4(void* other) +{ + return new QByteArray(*static_cast(other)); +} + +void* QByteArray_Append(void* ptr, void* ba) +{ + return new QByteArray(static_cast(ptr)->append(*static_cast(ba))); +} + +void* QByteArray_Append2(void* ptr, char* ch) +{ + return new QByteArray(static_cast(ptr)->append(*ch)); +} + +void* QByteArray_Append3(void* ptr, int count, char* ch) +{ + return new QByteArray(static_cast(ptr)->append(count, *ch)); +} + +void* QByteArray_Append4(void* ptr, char* str) +{ + return new QByteArray(static_cast(ptr)->append(const_cast(str))); +} + +void* QByteArray_Append5(void* ptr, char* str, int l) +{ + return new QByteArray(static_cast(ptr)->append(const_cast(str), l)); +} + +void* QByteArray_Append6(void* ptr, struct QtCore_PackedString str) +{ + return new QByteArray(static_cast(ptr)->append(QString::fromUtf8(str.data, str.len))); +} + +struct QtCore_PackedString QByteArray_At(void* ptr, int i) +{ + return ({ char t8d8fc5 = static_cast(ptr)->at(i); QtCore_PackedString { &t8d8fc5, -1, NULL }; }); +} + +struct QtCore_PackedString QByteArray_Back(void* ptr) +{ + return ({ char te8eea8 = static_cast(ptr)->back(); QtCore_PackedString { &te8eea8, -1, NULL }; }); +} + +int QByteArray_Capacity(void* ptr) +{ + return static_cast(ptr)->capacity(); +} + +void QByteArray_Chop(void* ptr, int n) +{ + static_cast(ptr)->chop(n); +} + +void* QByteArray_Chopped(void* ptr, int l) +{ + return new QByteArray(static_cast(ptr)->chopped(l)); +} + +void QByteArray_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +int QByteArray_Compare(void* ptr, char* c, long long cs) +{ + return static_cast(ptr)->compare(const_cast(c), static_cast(cs)); +} + +int QByteArray_Compare2(void* ptr, void* a, long long cs) +{ + return static_cast(ptr)->compare(*static_cast(a), static_cast(cs)); +} + +struct QtCore_PackedString QByteArray_ConstData(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->constData()), static_cast(ptr)->size(), NULL }; +} + +char QByteArray_Contains(void* ptr, void* ba) +{ + return static_cast(ptr)->contains(*static_cast(ba)); +} + +char QByteArray_Contains2(void* ptr, char* ch) +{ + return static_cast(ptr)->contains(*ch); +} + +char QByteArray_Contains3(void* ptr, char* str) +{ + return static_cast(ptr)->contains(const_cast(str)); +} + +int QByteArray_Count(void* ptr, void* ba) +{ + return static_cast(ptr)->count(*static_cast(ba)); +} + +int QByteArray_Count2(void* ptr, char* ch) +{ + return static_cast(ptr)->count(*ch); +} + +int QByteArray_Count3(void* ptr, char* str) +{ + return static_cast(ptr)->count(const_cast(str)); +} + +int QByteArray_Count4(void* ptr) +{ + return static_cast(ptr)->count(); +} + +struct QtCore_PackedString QByteArray_Data(void* ptr) +{ + return QtCore_PackedString { static_cast(ptr)->data(), static_cast(ptr)->size(), NULL }; +} + +struct QtCore_PackedString QByteArray_Data2(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->data()), static_cast(ptr)->size(), NULL }; +} + +char QByteArray_EndsWith(void* ptr, void* ba) +{ + return static_cast(ptr)->endsWith(*static_cast(ba)); +} + +char QByteArray_EndsWith2(void* ptr, char* ch) +{ + return static_cast(ptr)->endsWith(*ch); +} + +char QByteArray_EndsWith3(void* ptr, char* str) +{ + return static_cast(ptr)->endsWith(const_cast(str)); +} + +void* QByteArray_Fill(void* ptr, char* ch, int size) +{ + return new QByteArray(static_cast(ptr)->fill(*ch, size)); +} + +void* QByteArray_QByteArray_FromBase64(void* base64) +{ + return new QByteArray(QByteArray::fromBase64(*static_cast(base64))); +} + +void* QByteArray_QByteArray_FromBase642(void* base64, long long options) +{ + return new QByteArray(QByteArray::fromBase64(*static_cast(base64), static_cast(options))); +} + +void* QByteArray_QByteArray_FromHex(void* hexEncoded) +{ + return new QByteArray(QByteArray::fromHex(*static_cast(hexEncoded))); +} + +void* QByteArray_QByteArray_FromPercentEncoding(void* input, char* percent) +{ + return new QByteArray(QByteArray::fromPercentEncoding(*static_cast(input), *percent)); +} + +void* QByteArray_QByteArray_FromRawData(char* data, int size) +{ + return new QByteArray(QByteArray::fromRawData(const_cast(data), size)); +} + +struct QtCore_PackedString QByteArray_Front(void* ptr) +{ + return ({ char td65117 = static_cast(ptr)->front(); QtCore_PackedString { &td65117, -1, NULL }; }); +} + +int QByteArray_IndexOf(void* ptr, void* ba, int from) +{ + return static_cast(ptr)->indexOf(*static_cast(ba), from); +} + +int QByteArray_IndexOf2(void* ptr, char* ch, int from) +{ + return static_cast(ptr)->indexOf(*ch, from); +} + +int QByteArray_IndexOf3(void* ptr, char* str, int from) +{ + return static_cast(ptr)->indexOf(const_cast(str), from); +} + +int QByteArray_IndexOf4(void* ptr, struct QtCore_PackedString str, int from) +{ + return static_cast(ptr)->indexOf(QString::fromUtf8(str.data, str.len), from); +} + +void* QByteArray_Insert(void* ptr, int i, void* ba) +{ + return new QByteArray(static_cast(ptr)->insert(i, *static_cast(ba))); +} + +void* QByteArray_Insert2(void* ptr, int i, char* ch) +{ + return new QByteArray(static_cast(ptr)->insert(i, *ch)); +} + +void* QByteArray_Insert3(void* ptr, int i, int count, char* ch) +{ + return new QByteArray(static_cast(ptr)->insert(i, count, *ch)); +} + +void* QByteArray_Insert4(void* ptr, int i, char* str) +{ + return new QByteArray(static_cast(ptr)->insert(i, const_cast(str))); +} + +void* QByteArray_Insert5(void* ptr, int i, char* str, int l) +{ + return new QByteArray(static_cast(ptr)->insert(i, const_cast(str), l)); +} + +void* QByteArray_Insert6(void* ptr, int i, struct QtCore_PackedString str) +{ + return new QByteArray(static_cast(ptr)->insert(i, QString::fromUtf8(str.data, str.len))); +} + +char QByteArray_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QByteArray_IsLower(void* ptr) +{ + return static_cast(ptr)->isLower(); +} + +char QByteArray_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QByteArray_IsUpper(void* ptr) +{ + return static_cast(ptr)->isUpper(); +} + +int QByteArray_LastIndexOf(void* ptr, void* ba, int from) +{ + return static_cast(ptr)->lastIndexOf(*static_cast(ba), from); +} + +int QByteArray_LastIndexOf2(void* ptr, char* ch, int from) +{ + return static_cast(ptr)->lastIndexOf(*ch, from); +} + +int QByteArray_LastIndexOf3(void* ptr, char* str, int from) +{ + return static_cast(ptr)->lastIndexOf(const_cast(str), from); +} + +int QByteArray_LastIndexOf4(void* ptr, struct QtCore_PackedString str, int from) +{ + return static_cast(ptr)->lastIndexOf(QString::fromUtf8(str.data, str.len), from); +} + +void* QByteArray_Left(void* ptr, int l) +{ + return new QByteArray(static_cast(ptr)->left(l)); +} + +void* QByteArray_LeftJustified(void* ptr, int width, char* fill, char truncate) +{ + return new QByteArray(static_cast(ptr)->leftJustified(width, *fill, truncate != 0)); +} + +int QByteArray_Length(void* ptr) +{ + return static_cast(ptr)->length(); +} + +void* QByteArray_Mid(void* ptr, int pos, int l) +{ + return new QByteArray(static_cast(ptr)->mid(pos, l)); +} + +void* QByteArray_QByteArray_Number(int n, int base) +{ + return new QByteArray(QByteArray::number(n, base)); +} + +void* QByteArray_QByteArray_Number2(unsigned int n, int base) +{ + return new QByteArray(QByteArray::number(n, base)); +} + +void* QByteArray_QByteArray_Number3(long long n, int base) +{ + return new QByteArray(QByteArray::number(n, base)); +} + +void* QByteArray_QByteArray_Number4(unsigned long long n, int base) +{ + return new QByteArray(QByteArray::number(n, base)); +} + +void* QByteArray_QByteArray_Number5(double n, char* ff, int prec) +{ + return new QByteArray(QByteArray::number(n, *ff, prec)); +} + +void* QByteArray_Prepend(void* ptr, void* ba) +{ + return new QByteArray(static_cast(ptr)->prepend(*static_cast(ba))); +} + +void* QByteArray_Prepend2(void* ptr, char* ch) +{ + return new QByteArray(static_cast(ptr)->prepend(*ch)); +} + +void* QByteArray_Prepend3(void* ptr, int count, char* ch) +{ + return new QByteArray(static_cast(ptr)->prepend(count, *ch)); +} + +void* QByteArray_Prepend4(void* ptr, char* str) +{ + return new QByteArray(static_cast(ptr)->prepend(const_cast(str))); +} + +void* QByteArray_Prepend5(void* ptr, char* str, int l) +{ + return new QByteArray(static_cast(ptr)->prepend(const_cast(str), l)); +} + +void QByteArray_Push_back(void* ptr, void* other) +{ + static_cast(ptr)->push_back(*static_cast(other)); +} + +void QByteArray_Push_back2(void* ptr, char* ch) +{ + static_cast(ptr)->push_back(*ch); +} + +void QByteArray_Push_back3(void* ptr, char* str) +{ + static_cast(ptr)->push_back(const_cast(str)); +} + +void QByteArray_Push_front(void* ptr, void* other) +{ + static_cast(ptr)->push_front(*static_cast(other)); +} + +void QByteArray_Push_front2(void* ptr, char* ch) +{ + static_cast(ptr)->push_front(*ch); +} + +void QByteArray_Push_front3(void* ptr, char* str) +{ + static_cast(ptr)->push_front(const_cast(str)); +} + +void* QByteArray_Remove(void* ptr, int pos, int l) +{ + return new QByteArray(static_cast(ptr)->remove(pos, l)); +} + +void* QByteArray_Repeated(void* ptr, int times) +{ + return new QByteArray(static_cast(ptr)->repeated(times)); +} + +void* QByteArray_Replace(void* ptr, int pos, int l, void* after) +{ + return new QByteArray(static_cast(ptr)->replace(pos, l, *static_cast(after))); +} + +void* QByteArray_Replace2(void* ptr, int pos, int l, char* after) +{ + return new QByteArray(static_cast(ptr)->replace(pos, l, const_cast(after))); +} + +void* QByteArray_Replace3(void* ptr, int pos, int l, char* after, int alen) +{ + return new QByteArray(static_cast(ptr)->replace(pos, l, const_cast(after), alen)); +} + +void* QByteArray_Replace4(void* ptr, char* before, char* after) +{ + return new QByteArray(static_cast(ptr)->replace(*before, const_cast(after))); +} + +void* QByteArray_Replace5(void* ptr, char* before, void* after) +{ + return new QByteArray(static_cast(ptr)->replace(*before, *static_cast(after))); +} + +void* QByteArray_Replace6(void* ptr, char* before, char* after) +{ + return new QByteArray(static_cast(ptr)->replace(const_cast(before), const_cast(after))); +} + +void* QByteArray_Replace7(void* ptr, char* before, int bsize, char* after, int asize) +{ + return new QByteArray(static_cast(ptr)->replace(const_cast(before), bsize, const_cast(after), asize)); +} + +void* QByteArray_Replace8(void* ptr, void* before, void* after) +{ + return new QByteArray(static_cast(ptr)->replace(*static_cast(before), *static_cast(after))); +} + +void* QByteArray_Replace9(void* ptr, void* before, char* after) +{ + return new QByteArray(static_cast(ptr)->replace(*static_cast(before), const_cast(after))); +} + +void* QByteArray_Replace10(void* ptr, char* before, void* after) +{ + return new QByteArray(static_cast(ptr)->replace(const_cast(before), *static_cast(after))); +} + +void* QByteArray_Replace11(void* ptr, char* before, char* after) +{ + return new QByteArray(static_cast(ptr)->replace(*before, *after)); +} + +void* QByteArray_Replace12(void* ptr, struct QtCore_PackedString before, char* after) +{ + return new QByteArray(static_cast(ptr)->replace(QString::fromUtf8(before.data, before.len), const_cast(after))); +} + +void* QByteArray_Replace13(void* ptr, char* before, struct QtCore_PackedString after) +{ + return new QByteArray(static_cast(ptr)->replace(*before, QString::fromUtf8(after.data, after.len))); +} + +void* QByteArray_Replace14(void* ptr, struct QtCore_PackedString before, void* after) +{ + return new QByteArray(static_cast(ptr)->replace(QString::fromUtf8(before.data, before.len), *static_cast(after))); +} + +void QByteArray_Reserve(void* ptr, int size) +{ + static_cast(ptr)->reserve(size); +} + +void QByteArray_Resize(void* ptr, int size) +{ + static_cast(ptr)->resize(size); +} + +void* QByteArray_Right(void* ptr, int l) +{ + return new QByteArray(static_cast(ptr)->right(l)); +} + +void* QByteArray_RightJustified(void* ptr, int width, char* fill, char truncate) +{ + return new QByteArray(static_cast(ptr)->rightJustified(width, *fill, truncate != 0)); +} + +void* QByteArray_SetNum(void* ptr, int n, int base) +{ + return new QByteArray(static_cast(ptr)->setNum(n, base)); +} + +void* QByteArray_SetNum2(void* ptr, short n, int base) +{ + return new QByteArray(static_cast(ptr)->setNum(n, base)); +} + +void* QByteArray_SetNum3(void* ptr, unsigned short n, int base) +{ + return new QByteArray(static_cast(ptr)->setNum(n, base)); +} + +void* QByteArray_SetNum4(void* ptr, unsigned int n, int base) +{ + return new QByteArray(static_cast(ptr)->setNum(n, base)); +} + +void* QByteArray_SetNum5(void* ptr, long long n, int base) +{ + return new QByteArray(static_cast(ptr)->setNum(n, base)); +} + +void* QByteArray_SetNum6(void* ptr, unsigned long long n, int base) +{ + return new QByteArray(static_cast(ptr)->setNum(n, base)); +} + +void* QByteArray_SetNum7(void* ptr, float n, char* ff, int prec) +{ + return new QByteArray(static_cast(ptr)->setNum(n, *ff, prec)); +} + +void* QByteArray_SetNum8(void* ptr, double n, char* ff, int prec) +{ + return new QByteArray(static_cast(ptr)->setNum(n, *ff, prec)); +} + +void* QByteArray_SetRawData(void* ptr, char* data, unsigned int size) +{ + return new QByteArray(static_cast(ptr)->setRawData(const_cast(data), size)); +} + +void QByteArray_Shrink_to_fit(void* ptr) +{ + static_cast(ptr)->shrink_to_fit(); +} + +void* QByteArray_Simplified(void* ptr) +{ + return new QByteArray(static_cast(ptr)->simplified()); +} + +int QByteArray_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +struct QtCore_PackedList QByteArray_Split(void* ptr, char* sep) +{ + return ({ QList* tmpValue17cac8 = new QList(static_cast(ptr)->split(*sep)); QtCore_PackedList { tmpValue17cac8, tmpValue17cac8->size() }; }); +} + +void QByteArray_Squeeze(void* ptr) +{ + static_cast(ptr)->squeeze(); +} + +char QByteArray_StartsWith(void* ptr, void* ba) +{ + return static_cast(ptr)->startsWith(*static_cast(ba)); +} + +char QByteArray_StartsWith2(void* ptr, char* ch) +{ + return static_cast(ptr)->startsWith(*ch); +} + +char QByteArray_StartsWith3(void* ptr, char* str) +{ + return static_cast(ptr)->startsWith(const_cast(str)); +} + +void QByteArray_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QByteArray_ToBase64(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toBase64()); +} + +void* QByteArray_ToBase642(void* ptr, long long options) +{ + return new QByteArray(static_cast(ptr)->toBase64(static_cast(options))); +} + +double QByteArray_ToDouble(void* ptr, char* ok) +{ + return static_cast(ptr)->toDouble(reinterpret_cast(ok)); +} + +float QByteArray_ToFloat(void* ptr, char* ok) +{ + return static_cast(ptr)->toFloat(reinterpret_cast(ok)); +} + +void* QByteArray_ToHex(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toHex()); +} + +void* QByteArray_ToHex2(void* ptr, char* separator) +{ + return new QByteArray(static_cast(ptr)->toHex(*separator)); +} + +int QByteArray_ToInt(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toInt(reinterpret_cast(ok), base); +} + +long QByteArray_ToLong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toLong(reinterpret_cast(ok), base); +} + +long long QByteArray_ToLongLong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toLongLong(reinterpret_cast(ok), base); +} + +void* QByteArray_ToLower(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toLower()); +} + +void* QByteArray_ToPercentEncoding(void* ptr, void* exclude, void* include, char* percent) +{ + return new QByteArray(static_cast(ptr)->toPercentEncoding(*static_cast(exclude), *static_cast(include), *percent)); +} + +short QByteArray_ToShort(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toShort(reinterpret_cast(ok), base); +} + +unsigned int QByteArray_ToUInt(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toUInt(reinterpret_cast(ok), base); +} + +unsigned long QByteArray_ToULong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toULong(reinterpret_cast(ok), base); +} + +unsigned long long QByteArray_ToULongLong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toULongLong(reinterpret_cast(ok), base); +} + +unsigned short QByteArray_ToUShort(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toUShort(reinterpret_cast(ok), base); +} + +void* QByteArray_ToUpper(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toUpper()); +} + +void* QByteArray_Trimmed(void* ptr) +{ + return new QByteArray(static_cast(ptr)->trimmed()); +} + +void QByteArray_Truncate(void* ptr, int pos) +{ + static_cast(ptr)->truncate(pos); +} + +void QByteArray_DestroyQByteArray(void* ptr) +{ + static_cast(ptr)->~QByteArray(); +} + +void* QByteArray___split_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QByteArray___split_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QByteArray___split_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QByteArrayList_IndexOf(void* ptr, char* needle, int from) +{ + return static_cast(ptr)->indexOf(const_cast(needle), from); +} + +void* QByteArrayList_Join(void* ptr) +{ + return new QByteArray(static_cast(ptr)->join()); +} + +void* QByteArrayList_Join2(void* ptr, void* separator) +{ + return new QByteArray(static_cast(ptr)->join(*static_cast(separator))); +} + +void* QByteArrayList_Join3(void* ptr, char* separator) +{ + return new QByteArray(static_cast(ptr)->join(*separator)); +} + +Q_DECLARE_METATYPE(QByteArrayMatcher) +Q_DECLARE_METATYPE(QByteArrayMatcher*) +void* QByteArrayMatcher_NewQByteArrayMatcher() +{ + return new QByteArrayMatcher(); +} + +void* QByteArrayMatcher_NewQByteArrayMatcher2(void* pattern) +{ + return new QByteArrayMatcher(*static_cast(pattern)); +} + +void* QByteArrayMatcher_NewQByteArrayMatcher3(char* pattern, int length) +{ + return new QByteArrayMatcher(const_cast(pattern), length); +} + +void* QByteArrayMatcher_NewQByteArrayMatcher4(void* other) +{ + return new QByteArrayMatcher(*static_cast(other)); +} + +int QByteArrayMatcher_IndexIn(void* ptr, void* ba, int from) +{ + return static_cast(ptr)->indexIn(*static_cast(ba), from); +} + +int QByteArrayMatcher_IndexIn2(void* ptr, char* str, int l, int from) +{ + return static_cast(ptr)->indexIn(const_cast(str), l, from); +} + +void* QByteArrayMatcher_Pattern(void* ptr) +{ + return new QByteArray(static_cast(ptr)->pattern()); +} + +void QByteArrayMatcher_SetPattern(void* ptr, void* pattern) +{ + static_cast(ptr)->setPattern(*static_cast(pattern)); +} + +void QByteArrayMatcher_DestroyQByteArrayMatcher(void* ptr) +{ + static_cast(ptr)->~QByteArrayMatcher(); +} + +Q_DECLARE_METATYPE(QCborArray) +Q_DECLARE_METATYPE(QCborArray*) +void* QCborArray_NewQCborArray() +{ + return new QCborArray(); +} + +void* QCborArray_NewQCborArray2(void* other) +{ + return new QCborArray(*static_cast(other)); +} + +void QCborArray_Append(void* ptr, void* value) +{ + static_cast(ptr)->append(*static_cast(value)); +} + +void QCborArray_Append2(void* ptr, void* value) +{ + static_cast(ptr)->append(*static_cast(value)); +} + +void QCborArray_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +int QCborArray_Compare(void* ptr, void* other) +{ + return static_cast(ptr)->compare(*static_cast(other)); +} + +char QCborArray_Contains(void* ptr, void* value) +{ + return static_cast(ptr)->contains(*static_cast(value)); +} + +char QCborArray_Empty(void* ptr) +{ + return static_cast(ptr)->empty(); +} + +void* QCborArray_First(void* ptr) +{ + return new QCborValue(static_cast(ptr)->first()); +} + +void* QCborArray_QCborArray_FromJsonArray(void* array) +{ + return new QCborArray(QCborArray::fromJsonArray(*static_cast(array))); +} + +void* QCborArray_QCborArray_FromStringList(struct QtCore_PackedString list) +{ + return new QCborArray(QCborArray::fromStringList(QString::fromUtf8(list.data, list.len).split("¡¦!", QString::SkipEmptyParts))); +} + +void* QCborArray_QCborArray_FromVariantList(void* list) +{ + return new QCborArray(QCborArray::fromVariantList(({ QList* tmpP = static_cast*>(list); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }))); +} + +char QCborArray_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +void* QCborArray_Last(void* ptr) +{ + return new QCborValue(static_cast(ptr)->last()); +} + +void QCborArray_Pop_back(void* ptr) +{ + static_cast(ptr)->pop_back(); +} + +void QCborArray_Pop_front(void* ptr) +{ + static_cast(ptr)->pop_front(); +} + +void QCborArray_Prepend(void* ptr, void* value) +{ + static_cast(ptr)->prepend(*static_cast(value)); +} + +void QCborArray_Prepend2(void* ptr, void* value) +{ + static_cast(ptr)->prepend(*static_cast(value)); +} + +void QCborArray_Push_back(void* ptr, void* t) +{ + static_cast(ptr)->push_back(*static_cast(t)); +} + +void QCborArray_Push_front(void* ptr, void* t) +{ + static_cast(ptr)->push_front(*static_cast(t)); +} + +void QCborArray_RemoveFirst(void* ptr) +{ + static_cast(ptr)->removeFirst(); +} + +void QCborArray_RemoveLast(void* ptr) +{ + static_cast(ptr)->removeLast(); +} + +void QCborArray_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QCborArray_TakeFirst(void* ptr) +{ + return new QCborValue(static_cast(ptr)->takeFirst()); +} + +void* QCborArray_TakeLast(void* ptr) +{ + return new QCborValue(static_cast(ptr)->takeLast()); +} + +void* QCborArray_ToCborValue(void* ptr) +{ + return new QCborValue(static_cast(ptr)->toCborValue()); +} + +void* QCborArray_ToJsonArray(void* ptr) +{ + return new QJsonArray(static_cast(ptr)->toJsonArray()); +} + +struct QtCore_PackedList QCborArray_ToVariantList(void* ptr) +{ + return ({ QList* tmpValue302507 = new QList(static_cast(ptr)->toVariantList()); QtCore_PackedList { tmpValue302507, tmpValue302507->size() }; }); +} + +void QCborArray_DestroyQCborArray(void* ptr) +{ + static_cast(ptr)->~QCborArray(); +} + +void* QCborArray___fromVariantList_list_atList(void* ptr, int i) +{ + return new QVariant(({QVariant tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QCborArray___fromVariantList_list_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QCborArray___fromVariantList_list_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QCborArray___toVariantList_atList(void* ptr, int i) +{ + return new QVariant(({QVariant tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QCborArray___toVariantList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QCborArray___toVariantList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QCborError_ToString(void* ptr) +{ + return ({ QByteArray* t344b49 = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(t344b49->prepend("WHITESPACE").constData()+10), t344b49->size()-10, t344b49 }; }); +} + +Q_DECLARE_METATYPE(QCborMap) +Q_DECLARE_METATYPE(QCborMap*) +void* QCborMap_NewQCborMap() +{ + return new QCborMap(); +} + +void* QCborMap_NewQCborMap2(void* other) +{ + return new QCborMap(*static_cast(other)); +} + +void QCborMap_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +int QCborMap_Compare(void* ptr, void* other) +{ + return static_cast(ptr)->compare(*static_cast(other)); +} + +char QCborMap_Contains(void* ptr, long long key) +{ + return static_cast(ptr)->contains(key); +} + +char QCborMap_Contains2(void* ptr, void* key) +{ + return static_cast(ptr)->contains(*static_cast(key)); +} + +char QCborMap_Contains3(void* ptr, struct QtCore_PackedString key) +{ + return static_cast(ptr)->contains(QString::fromUtf8(key.data, key.len)); +} + +char QCborMap_Contains4(void* ptr, void* key) +{ + return static_cast(ptr)->contains(*static_cast(key)); +} + +char QCborMap_Empty(void* ptr) +{ + return static_cast(ptr)->empty(); +} + +void* QCborMap_QCborMap_FromJsonObject(void* obj) +{ + return new QCborMap(QCborMap::fromJsonObject(*static_cast(obj))); +} + +void* QCborMap_QCborMap_FromVariantHash(void* hash) +{ + return new QCborMap(QCborMap::fromVariantHash(({ QHash* tmpP = static_cast*>(hash); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }))); +} + +char QCborMap_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +struct QtCore_PackedList QCborMap_Keys(void* ptr) +{ + return ({ QVector* tmpValue42f4c1 = new QVector(static_cast(ptr)->keys()); QtCore_PackedList { tmpValue42f4c1, tmpValue42f4c1->size() }; }); +} + +void QCborMap_Remove(void* ptr, long long key) +{ + static_cast(ptr)->remove(key); +} + +void QCborMap_Remove2(void* ptr, void* key) +{ + static_cast(ptr)->remove(*static_cast(key)); +} + +void QCborMap_Remove3(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->remove(QString::fromUtf8(key.data, key.len)); +} + +void QCborMap_Remove4(void* ptr, void* key) +{ + static_cast(ptr)->remove(*static_cast(key)); +} + +void QCborMap_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QCborMap_Take(void* ptr, long long key) +{ + return new QCborValue(static_cast(ptr)->take(key)); +} + +void* QCborMap_Take2(void* ptr, void* key) +{ + return new QCborValue(static_cast(ptr)->take(*static_cast(key))); +} + +void* QCborMap_Take3(void* ptr, struct QtCore_PackedString key) +{ + return new QCborValue(static_cast(ptr)->take(QString::fromUtf8(key.data, key.len))); +} + +void* QCborMap_Take4(void* ptr, void* key) +{ + return new QCborValue(static_cast(ptr)->take(*static_cast(key))); +} + +void* QCborMap_ToCborValue(void* ptr) +{ + return new QCborValue(static_cast(ptr)->toCborValue()); +} + +void* QCborMap_ToJsonObject(void* ptr) +{ + return new QJsonObject(static_cast(ptr)->toJsonObject()); +} + +struct QtCore_PackedList QCborMap_ToVariantHash(void* ptr) +{ + return ({ QHash* tmpValuefd0242 = new QHash(static_cast(ptr)->toVariantHash()); QtCore_PackedList { tmpValuefd0242, tmpValuefd0242->size() }; }); +} + +struct QtCore_PackedList QCborMap_ToVariantMap(void* ptr) +{ + return ({ QMap* tmpValue1441a6 = new QMap(static_cast(ptr)->toVariantMap()); QtCore_PackedList { tmpValue1441a6, tmpValue1441a6->size() }; }); +} + +void* QCborMap_Value(void* ptr, long long key) +{ + return new QCborValue(static_cast(ptr)->value(key)); +} + +void* QCborMap_Value2(void* ptr, void* key) +{ + return new QCborValue(static_cast(ptr)->value(*static_cast(key))); +} + +void* QCborMap_Value3(void* ptr, struct QtCore_PackedString key) +{ + return new QCborValue(static_cast(ptr)->value(QString::fromUtf8(key.data, key.len))); +} + +void* QCborMap_Value4(void* ptr, void* key) +{ + return new QCborValue(static_cast(ptr)->value(*static_cast(key))); +} + +void QCborMap_DestroyQCborMap(void* ptr) +{ + static_cast(ptr)->~QCborMap(); +} + +void* QCborMap___fromVariantHash_hash_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QCborMap___fromVariantHash_hash_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QCborMap___fromVariantHash_hash_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QCborMap___fromVariantHash_hash_keyList(void* ptr) +{ + return ({ QList* tmpValuef43bc5 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValuef43bc5, tmpValuef43bc5->size() }; }); +} + +void* QCborMap___keys_atList(void* ptr, int i) +{ + return new QCborValue(({QCborValue tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; })); +} + +void QCborMap___keys_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QCborMap___keys_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +void* QCborMap___toVariantHash_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QCborMap___toVariantHash_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QCborMap___toVariantHash_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QCborMap___toVariantHash_keyList(void* ptr) +{ + return ({ QList* tmpValuef43bc5 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValuef43bc5, tmpValuef43bc5->size() }; }); +} + +void* QCborMap___toVariantMap_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QCborMap___toVariantMap_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QCborMap___toVariantMap_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtCore_PackedList QCborMap___toVariantMap_keyList(void* ptr) +{ + return ({ QList* tmpValue1ab909 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue1ab909, tmpValue1ab909->size() }; }); +} + +struct QtCore_PackedString QCborMap_____fromVariantHash_hash_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QCborMap_____fromVariantHash_hash_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QCborMap_____fromVariantHash_hash_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QCborMap_____fromVariantMap_map_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QCborMap_____fromVariantMap_map_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QCborMap_____fromVariantMap_map_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QCborMap_____toVariantHash_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QCborMap_____toVariantHash_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QCborMap_____toVariantHash_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QCborMap_____toVariantMap_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QCborMap_____toVariantMap_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QCborMap_____toVariantMap_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QCborParserError_ErrorString(void* ptr) +{ + return ({ QByteArray* t4aa98b = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t4aa98b->prepend("WHITESPACE").constData()+10), t4aa98b->size()-10, t4aa98b }; }); +} + +long long QCborParserError_Offset(void* ptr) +{ + return static_cast(ptr)->offset; +} + +void QCborParserError_SetOffset(void* ptr, long long vqi) +{ + static_cast(ptr)->offset = vqi; +} + +void QCborParserError_SetError(void* ptr, void* vqc) +{ + static_cast(ptr)->error = *static_cast(vqc); +} + +int QCborValue_False_Type() +{ + return QCborValue::False; +} + +int QCborValue_True_Type() +{ + return QCborValue::True; +} + +int QCborValue_Null_Type() +{ + return QCborValue::Null; +} + +int QCborValue_Undefined_Type() +{ + return QCborValue::Undefined; +} + +Q_DECLARE_METATYPE(QChar) +Q_DECLARE_METATYPE(QChar*) +void* QChar_NewQChar() +{ + return new QChar(); +} + +void* QChar_NewQChar2(unsigned short code) +{ + return new QChar(code); +} + +void* QChar_NewQChar3(char* cell, char* row) +{ + return new QChar(*static_cast(static_cast(cell)), *static_cast(static_cast(row))); +} + +void* QChar_NewQChar4(short code) +{ + return new QChar(code); +} + +void* QChar_NewQChar5(unsigned int code) +{ + return new QChar(code); +} + +void* QChar_NewQChar6(int code) +{ + return new QChar(code); +} + +void* QChar_NewQChar7(long long ch) +{ + return new QChar(static_cast(ch)); +} + +void* QChar_NewQChar8(void* ch) +{ + return new QChar(*static_cast(ch)); +} + +void* QChar_NewQChar11(char* ch) +{ + return new QChar(*ch); +} + +void* QChar_NewQChar12(char* ch) +{ + return new QChar(*static_cast(static_cast(ch))); +} + +long long QChar_Category(void* ptr) +{ + return static_cast(ptr)->category(); +} + +long long QChar_QChar_Category2(unsigned int ucs4) +{ + return QChar::category(ucs4); +} + +struct QtCore_PackedString QChar_Cell(void* ptr) +{ + return ({ uchar pret5084cd = static_cast(ptr)->cell(); char* t5084cd = static_cast(static_cast(&pret5084cd)); QtCore_PackedString { t5084cd, -1, NULL }; }); +} + +long long QChar_QChar_CurrentUnicodeVersion() +{ + return QChar::currentUnicodeVersion(); +} + +struct QtCore_PackedString QChar_Decomposition(void* ptr) +{ + return ({ QByteArray* t1c0ad1 = new QByteArray(static_cast(ptr)->decomposition().toUtf8()); QtCore_PackedString { const_cast(t1c0ad1->prepend("WHITESPACE").constData()+10), t1c0ad1->size()-10, t1c0ad1 }; }); +} + +struct QtCore_PackedString QChar_QChar_Decomposition2(unsigned int ucs4) +{ + return ({ QByteArray* tae885b = new QByteArray(QChar::decomposition(ucs4).toUtf8()); QtCore_PackedString { const_cast(tae885b->prepend("WHITESPACE").constData()+10), tae885b->size()-10, tae885b }; }); +} + +long long QChar_DecompositionTag(void* ptr) +{ + return static_cast(ptr)->decompositionTag(); +} + +long long QChar_QChar_DecompositionTag2(unsigned int ucs4) +{ + return QChar::decompositionTag(ucs4); +} + +int QChar_DigitValue(void* ptr) +{ + return static_cast(ptr)->digitValue(); +} + +int QChar_QChar_DigitValue2(unsigned int ucs4) +{ + return QChar::digitValue(ucs4); +} + +long long QChar_Direction(void* ptr) +{ + return static_cast(ptr)->direction(); +} + +long long QChar_QChar_Direction2(unsigned int ucs4) +{ + return QChar::direction(ucs4); +} + +void* QChar_QChar_FromLatin1(char* c) +{ + return new QChar(QChar::fromLatin1(*c)); +} + +char QChar_HasMirrored(void* ptr) +{ + return static_cast(ptr)->hasMirrored(); +} + +char QChar_QChar_HasMirrored2(unsigned int ucs4) +{ + return QChar::hasMirrored(ucs4); +} + +unsigned short QChar_QChar_HighSurrogate(unsigned int ucs4) +{ + return QChar::highSurrogate(ucs4); +} + +char QChar_IsDigit(void* ptr) +{ + return static_cast(ptr)->isDigit(); +} + +char QChar_QChar_IsDigit2(unsigned int ucs4) +{ + return QChar::isDigit(ucs4); +} + +char QChar_IsHighSurrogate(void* ptr) +{ + return static_cast(ptr)->isHighSurrogate(); +} + +char QChar_QChar_IsHighSurrogate2(unsigned int ucs4) +{ + return QChar::isHighSurrogate(ucs4); +} + +char QChar_IsLetter(void* ptr) +{ + return static_cast(ptr)->isLetter(); +} + +char QChar_QChar_IsLetter2(unsigned int ucs4) +{ + return QChar::isLetter(ucs4); +} + +char QChar_IsLetterOrNumber(void* ptr) +{ + return static_cast(ptr)->isLetterOrNumber(); +} + +char QChar_QChar_IsLetterOrNumber2(unsigned int ucs4) +{ + return QChar::isLetterOrNumber(ucs4); +} + +char QChar_IsLowSurrogate(void* ptr) +{ + return static_cast(ptr)->isLowSurrogate(); +} + +char QChar_QChar_IsLowSurrogate2(unsigned int ucs4) +{ + return QChar::isLowSurrogate(ucs4); +} + +char QChar_IsLower(void* ptr) +{ + return static_cast(ptr)->isLower(); +} + +char QChar_QChar_IsLower2(unsigned int ucs4) +{ + return QChar::isLower(ucs4); +} + +char QChar_IsMark(void* ptr) +{ + return static_cast(ptr)->isMark(); +} + +char QChar_QChar_IsMark2(unsigned int ucs4) +{ + return QChar::isMark(ucs4); +} + +char QChar_IsNonCharacter(void* ptr) +{ + return static_cast(ptr)->isNonCharacter(); +} + +char QChar_QChar_IsNonCharacter2(unsigned int ucs4) +{ + return QChar::isNonCharacter(ucs4); +} + +char QChar_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QChar_IsNumber(void* ptr) +{ + return static_cast(ptr)->isNumber(); +} + +char QChar_QChar_IsNumber2(unsigned int ucs4) +{ + return QChar::isNumber(ucs4); +} + +char QChar_IsPrint(void* ptr) +{ + return static_cast(ptr)->isPrint(); +} + +char QChar_QChar_IsPrint2(unsigned int ucs4) +{ + return QChar::isPrint(ucs4); +} + +char QChar_IsPunct(void* ptr) +{ + return static_cast(ptr)->isPunct(); +} + +char QChar_QChar_IsPunct2(unsigned int ucs4) +{ + return QChar::isPunct(ucs4); +} + +char QChar_IsSpace(void* ptr) +{ + return static_cast(ptr)->isSpace(); +} + +char QChar_QChar_IsSpace2(unsigned int ucs4) +{ + return QChar::isSpace(ucs4); +} + +char QChar_IsSurrogate(void* ptr) +{ + return static_cast(ptr)->isSurrogate(); +} + +char QChar_QChar_IsSurrogate2(unsigned int ucs4) +{ + return QChar::isSurrogate(ucs4); +} + +char QChar_IsSymbol(void* ptr) +{ + return static_cast(ptr)->isSymbol(); +} + +char QChar_QChar_IsSymbol2(unsigned int ucs4) +{ + return QChar::isSymbol(ucs4); +} + +char QChar_IsTitleCase(void* ptr) +{ + return static_cast(ptr)->isTitleCase(); +} + +char QChar_QChar_IsTitleCase2(unsigned int ucs4) +{ + return QChar::isTitleCase(ucs4); +} + +char QChar_IsUpper(void* ptr) +{ + return static_cast(ptr)->isUpper(); +} + +char QChar_QChar_IsUpper2(unsigned int ucs4) +{ + return QChar::isUpper(ucs4); +} + +long long QChar_JoiningType(void* ptr) +{ + return static_cast(ptr)->joiningType(); +} + +long long QChar_QChar_JoiningType2(unsigned int ucs4) +{ + return QChar::joiningType(ucs4); +} + +unsigned short QChar_QChar_LowSurrogate(unsigned int ucs4) +{ + return QChar::lowSurrogate(ucs4); +} + +void* QChar_MirroredChar(void* ptr) +{ + return new QChar(static_cast(ptr)->mirroredChar()); +} + +unsigned int QChar_QChar_MirroredChar2(unsigned int ucs4) +{ + return QChar::mirroredChar(ucs4); +} + +char QChar_QChar_RequiresSurrogates(unsigned int ucs4) +{ + return QChar::requiresSurrogates(ucs4); +} + +struct QtCore_PackedString QChar_Row(void* ptr) +{ + return ({ uchar pret52b865 = static_cast(ptr)->row(); char* t52b865 = static_cast(static_cast(&pret52b865)); QtCore_PackedString { t52b865, -1, NULL }; }); +} + +long long QChar_Script(void* ptr) +{ + return static_cast(ptr)->script(); +} + +long long QChar_QChar_Script2(unsigned int ucs4) +{ + return QChar::script(ucs4); +} + +unsigned int QChar_QChar_SurrogateToUcs4(unsigned short high, unsigned short low) +{ + return QChar::surrogateToUcs4(high, low); +} + +unsigned int QChar_QChar_SurrogateToUcs42(void* high, void* low) +{ + return QChar::surrogateToUcs4(*static_cast(high), *static_cast(low)); +} + +void* QChar_ToCaseFolded(void* ptr) +{ + return new QChar(static_cast(ptr)->toCaseFolded()); +} + +unsigned int QChar_QChar_ToCaseFolded2(unsigned int ucs4) +{ + return QChar::toCaseFolded(ucs4); +} + +struct QtCore_PackedString QChar_ToLatin1(void* ptr) +{ + return ({ char t24c86e = static_cast(ptr)->toLatin1(); QtCore_PackedString { &t24c86e, -1, NULL }; }); +} + +void* QChar_ToLower(void* ptr) +{ + return new QChar(static_cast(ptr)->toLower()); +} + +unsigned int QChar_QChar_ToLower2(unsigned int ucs4) +{ + return QChar::toLower(ucs4); +} + +void* QChar_ToTitleCase(void* ptr) +{ + return new QChar(static_cast(ptr)->toTitleCase()); +} + +unsigned int QChar_QChar_ToTitleCase2(unsigned int ucs4) +{ + return QChar::toTitleCase(ucs4); +} + +void* QChar_ToUpper(void* ptr) +{ + return new QChar(static_cast(ptr)->toUpper()); +} + +unsigned int QChar_QChar_ToUpper2(unsigned int ucs4) +{ + return QChar::toUpper(ucs4); +} + +unsigned short QChar_Unicode(void* ptr) +{ + return static_cast(ptr)->unicode(); +} + +unsigned short QChar_Unicode2(void* ptr) +{ + return static_cast(ptr)->unicode(); +} + +long long QChar_UnicodeVersion(void* ptr) +{ + return static_cast(ptr)->unicodeVersion(); +} + +long long QChar_QChar_UnicodeVersion2(unsigned int ucs4) +{ + return QChar::unicodeVersion(ucs4); +} + +class MyQChildEvent: public QChildEvent +{ +public: + MyQChildEvent(QEvent::Type ty, QObject *child) : QChildEvent(ty, child) {QChildEvent_QChildEvent_QRegisterMetaType();}; +}; + +Q_DECLARE_METATYPE(QChildEvent*) +Q_DECLARE_METATYPE(MyQChildEvent*) + +int QChildEvent_QChildEvent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QChildEvent_NewQChildEvent(long long ty, void* child) +{ + if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else if (dynamic_cast(static_cast(child))) { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } else { + return new MyQChildEvent(static_cast(ty), static_cast(child)); + } +} + +char QChildEvent_Added(void* ptr) +{ + return static_cast(ptr)->added(); +} + +void* QChildEvent_Child(void* ptr) +{ + return static_cast(ptr)->child(); +} + +char QChildEvent_Polished(void* ptr) +{ + return static_cast(ptr)->polished(); +} + +char QChildEvent_Removed(void* ptr) +{ + return static_cast(ptr)->removed(); +} + +Q_DECLARE_METATYPE(QCollator*) +void* QCollator_NewQCollator(void* locale) +{ + return new QCollator(*static_cast(locale)); +} + +void* QCollator_NewQCollator2(void* other) +{ + return new QCollator(*static_cast(other)); +} + +void* QCollator_NewQCollator3(void* other) +{ + return new QCollator(*static_cast(other)); +} + +long long QCollator_CaseSensitivity(void* ptr) +{ + return static_cast(ptr)->caseSensitivity(); +} + +int QCollator_Compare(void* ptr, struct QtCore_PackedString s1, struct QtCore_PackedString s2) +{ + return static_cast(ptr)->compare(QString::fromUtf8(s1.data, s1.len), QString::fromUtf8(s2.data, s2.len)); +} + +int QCollator_Compare2(void* ptr, void* s1, void* s2) +{ + return static_cast(ptr)->compare(*static_cast(s1), *static_cast(s2)); +} + +int QCollator_Compare3(void* ptr, void* s1, int len1, void* s2, int len2) +{ + return static_cast(ptr)->compare(static_cast(s1), len1, static_cast(s2), len2); +} + +char QCollator_IgnorePunctuation(void* ptr) +{ + return static_cast(ptr)->ignorePunctuation(); +} + +void* QCollator_Locale(void* ptr) +{ + return new QLocale(static_cast(ptr)->locale()); +} + +char QCollator_NumericMode(void* ptr) +{ + return static_cast(ptr)->numericMode(); +} + +void QCollator_SetCaseSensitivity(void* ptr, long long sensitivity) +{ + static_cast(ptr)->setCaseSensitivity(static_cast(sensitivity)); +} + +void QCollator_SetIgnorePunctuation(void* ptr, char on) +{ + static_cast(ptr)->setIgnorePunctuation(on != 0); +} + +void QCollator_SetLocale(void* ptr, void* locale) +{ + static_cast(ptr)->setLocale(*static_cast(locale)); +} + +void QCollator_SetNumericMode(void* ptr, char on) +{ + static_cast(ptr)->setNumericMode(on != 0); +} + +void* QCollator_SortKey(void* ptr, struct QtCore_PackedString stri) +{ + return new QCollatorSortKey(static_cast(ptr)->sortKey(QString::fromUtf8(stri.data, stri.len))); +} + +void QCollator_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QCollator_DestroyQCollator(void* ptr) +{ + static_cast(ptr)->~QCollator(); +} + +Q_DECLARE_METATYPE(QCollatorSortKey*) +void* QCollatorSortKey_NewQCollatorSortKey(void* other) +{ + return new QCollatorSortKey(*static_cast(other)); +} + +int QCollatorSortKey_Compare(void* ptr, void* otherKey) +{ + return static_cast(ptr)->compare(*static_cast(otherKey)); +} + +void QCollatorSortKey_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QCollatorSortKey_DestroyQCollatorSortKey(void* ptr) +{ + static_cast(ptr)->~QCollatorSortKey(); +} + +Q_DECLARE_METATYPE(QCommandLineOption*) +void* QCommandLineOption_NewQCommandLineOption(struct QtCore_PackedString name) +{ + return new QCommandLineOption(QString::fromUtf8(name.data, name.len)); +} + +void* QCommandLineOption_NewQCommandLineOption2(struct QtCore_PackedString names) +{ + return new QCommandLineOption(QString::fromUtf8(names.data, names.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void* QCommandLineOption_NewQCommandLineOption3(struct QtCore_PackedString name, struct QtCore_PackedString description, struct QtCore_PackedString valueName, struct QtCore_PackedString defaultValue) +{ + return new QCommandLineOption(QString::fromUtf8(name.data, name.len), QString::fromUtf8(description.data, description.len), QString::fromUtf8(valueName.data, valueName.len), QString::fromUtf8(defaultValue.data, defaultValue.len)); +} + +void* QCommandLineOption_NewQCommandLineOption4(struct QtCore_PackedString names, struct QtCore_PackedString description, struct QtCore_PackedString valueName, struct QtCore_PackedString defaultValue) +{ + return new QCommandLineOption(QString::fromUtf8(names.data, names.len).split("¡¦!", QString::SkipEmptyParts), QString::fromUtf8(description.data, description.len), QString::fromUtf8(valueName.data, valueName.len), QString::fromUtf8(defaultValue.data, defaultValue.len)); +} + +void* QCommandLineOption_NewQCommandLineOption5(void* other) +{ + return new QCommandLineOption(*static_cast(other)); +} + +struct QtCore_PackedString QCommandLineOption_DefaultValues(void* ptr) +{ + return ({ QByteArray* t2b2409 = new QByteArray(static_cast(ptr)->defaultValues().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t2b2409->prepend("WHITESPACE").constData()+10), t2b2409->size()-10, t2b2409 }; }); +} + +struct QtCore_PackedString QCommandLineOption_Description(void* ptr) +{ + return ({ QByteArray* t9df42f = new QByteArray(static_cast(ptr)->description().toUtf8()); QtCore_PackedString { const_cast(t9df42f->prepend("WHITESPACE").constData()+10), t9df42f->size()-10, t9df42f }; }); +} + +long long QCommandLineOption_Flags(void* ptr) +{ + return static_cast(ptr)->flags(); +} + +struct QtCore_PackedString QCommandLineOption_Names(void* ptr) +{ + return ({ QByteArray* t15f7c9 = new QByteArray(static_cast(ptr)->names().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t15f7c9->prepend("WHITESPACE").constData()+10), t15f7c9->size()-10, t15f7c9 }; }); +} + +void QCommandLineOption_SetDefaultValue(void* ptr, struct QtCore_PackedString defaultValue) +{ + static_cast(ptr)->setDefaultValue(QString::fromUtf8(defaultValue.data, defaultValue.len)); +} + +void QCommandLineOption_SetDefaultValues(void* ptr, struct QtCore_PackedString defaultValues) +{ + static_cast(ptr)->setDefaultValues(QString::fromUtf8(defaultValues.data, defaultValues.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QCommandLineOption_SetDescription(void* ptr, struct QtCore_PackedString description) +{ + static_cast(ptr)->setDescription(QString::fromUtf8(description.data, description.len)); +} + +void QCommandLineOption_SetFlags(void* ptr, long long flags) +{ + static_cast(ptr)->setFlags(static_cast(flags)); +} + +void QCommandLineOption_SetValueName(void* ptr, struct QtCore_PackedString valueName) +{ + static_cast(ptr)->setValueName(QString::fromUtf8(valueName.data, valueName.len)); +} + +void QCommandLineOption_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +struct QtCore_PackedString QCommandLineOption_ValueName(void* ptr) +{ + return ({ QByteArray* t9c33ed = new QByteArray(static_cast(ptr)->valueName().toUtf8()); QtCore_PackedString { const_cast(t9c33ed->prepend("WHITESPACE").constData()+10), t9c33ed->size()-10, t9c33ed }; }); +} + +void QCommandLineOption_DestroyQCommandLineOption(void* ptr) +{ + static_cast(ptr)->~QCommandLineOption(); +} + +Q_DECLARE_METATYPE(QCommandLineParser*) +void* QCommandLineParser_NewQCommandLineParser() +{ + return new QCommandLineParser(); +} + +void* QCommandLineParser_AddHelpOption(void* ptr) +{ + return new QCommandLineOption(static_cast(ptr)->addHelpOption()); +} + +char QCommandLineParser_AddOption(void* ptr, void* option) +{ + return static_cast(ptr)->addOption(*static_cast(option)); +} + +char QCommandLineParser_AddOptions(void* ptr, void* options) +{ + return static_cast(ptr)->addOptions(*static_cast*>(options)); +} + +void QCommandLineParser_AddPositionalArgument(void* ptr, struct QtCore_PackedString name, struct QtCore_PackedString description, struct QtCore_PackedString syntax) +{ + static_cast(ptr)->addPositionalArgument(QString::fromUtf8(name.data, name.len), QString::fromUtf8(description.data, description.len), QString::fromUtf8(syntax.data, syntax.len)); +} + +void* QCommandLineParser_AddVersionOption(void* ptr) +{ + return new QCommandLineOption(static_cast(ptr)->addVersionOption()); +} + +struct QtCore_PackedString QCommandLineParser_ApplicationDescription(void* ptr) +{ + return ({ QByteArray* tae4284 = new QByteArray(static_cast(ptr)->applicationDescription().toUtf8()); QtCore_PackedString { const_cast(tae4284->prepend("WHITESPACE").constData()+10), tae4284->size()-10, tae4284 }; }); +} + +void QCommandLineParser_ClearPositionalArguments(void* ptr) +{ + static_cast(ptr)->clearPositionalArguments(); +} + +struct QtCore_PackedString QCommandLineParser_ErrorText(void* ptr) +{ + return ({ QByteArray* t56b716 = new QByteArray(static_cast(ptr)->errorText().toUtf8()); QtCore_PackedString { const_cast(t56b716->prepend("WHITESPACE").constData()+10), t56b716->size()-10, t56b716 }; }); +} + +struct QtCore_PackedString QCommandLineParser_HelpText(void* ptr) +{ + return ({ QByteArray* t7ab9aa = new QByteArray(static_cast(ptr)->helpText().toUtf8()); QtCore_PackedString { const_cast(t7ab9aa->prepend("WHITESPACE").constData()+10), t7ab9aa->size()-10, t7ab9aa }; }); +} + +char QCommandLineParser_IsSet(void* ptr, struct QtCore_PackedString name) +{ + return static_cast(ptr)->isSet(QString::fromUtf8(name.data, name.len)); +} + +char QCommandLineParser_IsSet2(void* ptr, void* option) +{ + return static_cast(ptr)->isSet(*static_cast(option)); +} + +struct QtCore_PackedString QCommandLineParser_OptionNames(void* ptr) +{ + return ({ QByteArray* tc902b8 = new QByteArray(static_cast(ptr)->optionNames().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tc902b8->prepend("WHITESPACE").constData()+10), tc902b8->size()-10, tc902b8 }; }); +} + +char QCommandLineParser_Parse(void* ptr, struct QtCore_PackedString arguments) +{ + return static_cast(ptr)->parse(QString::fromUtf8(arguments.data, arguments.len).split("¡¦!", QString::SkipEmptyParts)); +} + +struct QtCore_PackedString QCommandLineParser_PositionalArguments(void* ptr) +{ + return ({ QByteArray* t6fd298 = new QByteArray(static_cast(ptr)->positionalArguments().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t6fd298->prepend("WHITESPACE").constData()+10), t6fd298->size()-10, t6fd298 }; }); +} + +void QCommandLineParser_Process(void* ptr, struct QtCore_PackedString arguments) +{ + static_cast(ptr)->process(QString::fromUtf8(arguments.data, arguments.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QCommandLineParser_Process2(void* ptr, void* app) +{ + static_cast(ptr)->process(*static_cast(app)); +} + +void QCommandLineParser_SetApplicationDescription(void* ptr, struct QtCore_PackedString description) +{ + static_cast(ptr)->setApplicationDescription(QString::fromUtf8(description.data, description.len)); +} + +void QCommandLineParser_SetOptionsAfterPositionalArgumentsMode(void* ptr, long long parsingMode) +{ + static_cast(ptr)->setOptionsAfterPositionalArgumentsMode(static_cast(parsingMode)); +} + +void QCommandLineParser_SetSingleDashWordOptionMode(void* ptr, long long singleDashWordOptionMode) +{ + static_cast(ptr)->setSingleDashWordOptionMode(static_cast(singleDashWordOptionMode)); +} + +void QCommandLineParser_ShowHelp(void* ptr, int exitCode) +{ + static_cast(ptr)->showHelp(exitCode); +} + +void QCommandLineParser_ShowVersion(void* ptr) +{ + static_cast(ptr)->showVersion(); +} + +struct QtCore_PackedString QCommandLineParser_UnknownOptionNames(void* ptr) +{ + return ({ QByteArray* t00a30a = new QByteArray(static_cast(ptr)->unknownOptionNames().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t00a30a->prepend("WHITESPACE").constData()+10), t00a30a->size()-10, t00a30a }; }); +} + +struct QtCore_PackedString QCommandLineParser_Value(void* ptr, struct QtCore_PackedString optionName) +{ + return ({ QByteArray* t86b3ac = new QByteArray(static_cast(ptr)->value(QString::fromUtf8(optionName.data, optionName.len)).toUtf8()); QtCore_PackedString { const_cast(t86b3ac->prepend("WHITESPACE").constData()+10), t86b3ac->size()-10, t86b3ac }; }); +} + +struct QtCore_PackedString QCommandLineParser_Value2(void* ptr, void* option) +{ + return ({ QByteArray* t36413b = new QByteArray(static_cast(ptr)->value(*static_cast(option)).toUtf8()); QtCore_PackedString { const_cast(t36413b->prepend("WHITESPACE").constData()+10), t36413b->size()-10, t36413b }; }); +} + +struct QtCore_PackedString QCommandLineParser_Values(void* ptr, struct QtCore_PackedString optionName) +{ + return ({ QByteArray* te65c16 = new QByteArray(static_cast(ptr)->values(QString::fromUtf8(optionName.data, optionName.len)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(te65c16->prepend("WHITESPACE").constData()+10), te65c16->size()-10, te65c16 }; }); +} + +struct QtCore_PackedString QCommandLineParser_Values2(void* ptr, void* option) +{ + return ({ QByteArray* tafc470 = new QByteArray(static_cast(ptr)->values(*static_cast(option)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tafc470->prepend("WHITESPACE").constData()+10), tafc470->size()-10, tafc470 }; }); +} + +void QCommandLineParser_DestroyQCommandLineParser(void* ptr) +{ + static_cast(ptr)->~QCommandLineParser(); +} + +void* QCommandLineParser___addOptions_options_atList(void* ptr, int i) +{ + return new QCommandLineOption(({QCommandLineOption tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QCommandLineParser___addOptions_options_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QCommandLineParser___addOptions_options_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQConcatenateTablesProxyModel: public QConcatenateTablesProxyModel +{ +public: + MyQConcatenateTablesProxyModel(QObject *parent = Q_NULLPTR) : QConcatenateTablesProxyModel(parent) {QConcatenateTablesProxyModel_QConcatenateTablesProxyModel_QRegisterMetaType();}; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQConcatenateTablesProxyModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQConcatenateTablesProxyModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQConcatenateTablesProxyModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + QMap itemData(const QModelIndex & proxyIndex) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&proxyIndex))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQConcatenateTablesProxyModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + int rowCount(const QModelIndex & parent) const { return callbackQConcatenateTablesProxyModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & proxyIndex, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&proxyIndex), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + ~MyQConcatenateTablesProxyModel() { callbackQConcatenateTablesProxyModel_DestroyQConcatenateTablesProxyModel(this); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractItemModel_Revert(this); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + QModelIndex sibling(int row, int column, const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&index))); }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + bool submit() { return callbackQAbstractItemModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QConcatenateTablesProxyModel*) +Q_DECLARE_METATYPE(MyQConcatenateTablesProxyModel*) + +int QConcatenateTablesProxyModel_QConcatenateTablesProxyModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QConcatenateTablesProxyModel_NewQConcatenateTablesProxyModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } else { + return new MyQConcatenateTablesProxyModel(static_cast(parent)); + } +} + +void QConcatenateTablesProxyModel_AddSourceModel(void* ptr, void* sourceModel) +{ + static_cast(ptr)->addSourceModel(static_cast(sourceModel)); +} + +int QConcatenateTablesProxyModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QConcatenateTablesProxyModel_ColumnCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QConcatenateTablesProxyModel::columnCount(*static_cast(parent)); +} + +void* QConcatenateTablesProxyModel_Data(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(index), role)); +} + +void* QConcatenateTablesProxyModel_DataDefault(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->QConcatenateTablesProxyModel::data(*static_cast(index), role)); +} + +void* QConcatenateTablesProxyModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QConcatenateTablesProxyModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->QConcatenateTablesProxyModel::index(row, column, *static_cast(parent))); +} + +void* QConcatenateTablesProxyModel_MapFromSource(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->mapFromSource(*static_cast(sourceIndex))); +} + +void* QConcatenateTablesProxyModel_MapToSource(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->mapToSource(*static_cast(proxyIndex))); +} + +void* QConcatenateTablesProxyModel_Parent(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(index))); +} + +void* QConcatenateTablesProxyModel_ParentDefault(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->QConcatenateTablesProxyModel::parent(*static_cast(index))); +} + +void QConcatenateTablesProxyModel_RemoveSourceModel(void* ptr, void* sourceModel) +{ + static_cast(ptr)->removeSourceModel(static_cast(sourceModel)); +} + +int QConcatenateTablesProxyModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QConcatenateTablesProxyModel_RowCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QConcatenateTablesProxyModel::rowCount(*static_cast(parent)); +} + +void QConcatenateTablesProxyModel_DestroyQConcatenateTablesProxyModel(void* ptr) +{ + static_cast(ptr)->~QConcatenateTablesProxyModel(); +} + +void QConcatenateTablesProxyModel_DestroyQConcatenateTablesProxyModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQCoreApplication: public QCoreApplication +{ +public: + MyQCoreApplication(int &argc, char **argv) : QCoreApplication(argc, argv) {QCoreApplication_QCoreApplication_QRegisterMetaType();}; + void Signal_AboutToQuit() { callbackQCoreApplication_AboutToQuit(this); }; + void Signal_ApplicationNameChanged() { callbackQCoreApplication_ApplicationNameChanged(this); }; + void Signal_ApplicationVersionChanged() { callbackQCoreApplication_ApplicationVersionChanged(this); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void Signal_OrganizationDomainChanged() { callbackQCoreApplication_OrganizationDomainChanged(this); }; + void Signal_OrganizationNameChanged() { callbackQCoreApplication_OrganizationNameChanged(this); }; + void quit() { callbackQCoreApplication_Quit(this); }; + ~MyQCoreApplication() { callbackQCoreApplication_DestroyQCoreApplication(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QCoreApplication*) +Q_DECLARE_METATYPE(MyQCoreApplication*) + +int QCoreApplication_QCoreApplication_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QCoreApplication_NewQCoreApplication(int argc, char* argv) +{ + static int argcs = argc; + static char** argvs = static_cast(malloc(argcs * sizeof(char*))); + + QList aList = QByteArray(argv).split('|'); + for (int i = 0; i < argcs; i++) + argvs[i] = (new QByteArray(aList.at(i)))->data(); + + return new MyQCoreApplication(argcs, argvs); +} + +void QCoreApplication_ConnectAboutToQuit(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QCoreApplication::aboutToQuit, static_cast(ptr), static_cast(&MyQCoreApplication::Signal_AboutToQuit), static_cast(t)); +} + +void QCoreApplication_DisconnectAboutToQuit(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QCoreApplication::aboutToQuit, static_cast(ptr), static_cast(&MyQCoreApplication::Signal_AboutToQuit)); +} + +void QCoreApplication_QCoreApplication_AddLibraryPath(struct QtCore_PackedString path) +{ + QCoreApplication::addLibraryPath(QString::fromUtf8(path.data, path.len)); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_ApplicationDirPath() +{ + return ({ QByteArray* t3c2a71 = new QByteArray(QCoreApplication::applicationDirPath().toUtf8()); QtCore_PackedString { const_cast(t3c2a71->prepend("WHITESPACE").constData()+10), t3c2a71->size()-10, t3c2a71 }; }); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_ApplicationFilePath() +{ + return ({ QByteArray* t189694 = new QByteArray(QCoreApplication::applicationFilePath().toUtf8()); QtCore_PackedString { const_cast(t189694->prepend("WHITESPACE").constData()+10), t189694->size()-10, t189694 }; }); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_ApplicationName() +{ + return ({ QByteArray* t704b73 = new QByteArray(QCoreApplication::applicationName().toUtf8()); QtCore_PackedString { const_cast(t704b73->prepend("WHITESPACE").constData()+10), t704b73->size()-10, t704b73 }; }); +} + +void QCoreApplication_ConnectApplicationNameChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QCoreApplication::applicationNameChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_ApplicationNameChanged), static_cast(t)); +} + +void QCoreApplication_DisconnectApplicationNameChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QCoreApplication::applicationNameChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_ApplicationNameChanged)); +} + +void QCoreApplication_ApplicationNameChanged(void* ptr) +{ + static_cast(ptr)->applicationNameChanged(); +} + +long long QCoreApplication_QCoreApplication_ApplicationPid() +{ + return QCoreApplication::applicationPid(); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_ApplicationVersion() +{ + return ({ QByteArray* t9f1c49 = new QByteArray(QCoreApplication::applicationVersion().toUtf8()); QtCore_PackedString { const_cast(t9f1c49->prepend("WHITESPACE").constData()+10), t9f1c49->size()-10, t9f1c49 }; }); +} + +void QCoreApplication_ConnectApplicationVersionChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QCoreApplication::applicationVersionChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_ApplicationVersionChanged), static_cast(t)); +} + +void QCoreApplication_DisconnectApplicationVersionChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QCoreApplication::applicationVersionChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_ApplicationVersionChanged)); +} + +void QCoreApplication_ApplicationVersionChanged(void* ptr) +{ + static_cast(ptr)->applicationVersionChanged(); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_Arguments() +{ + return ({ QByteArray* tee588f = new QByteArray(QCoreApplication::arguments().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tee588f->prepend("WHITESPACE").constData()+10), tee588f->size()-10, tee588f }; }); +} + +char QCoreApplication_QCoreApplication_ClosingDown() +{ + return QCoreApplication::closingDown(); +} + +void* QCoreApplication_QCoreApplication_EventDispatcher() +{ + return QCoreApplication::eventDispatcher(); +} + +int QCoreApplication_QCoreApplication_Exec() +{ + return QCoreApplication::exec(); +} + +void QCoreApplication_QCoreApplication_Exit(int returnCode) +{ + QCoreApplication::exit(returnCode); +} + +void QCoreApplication_InstallNativeEventFilter(void* ptr, void* filterObj) +{ + static_cast(ptr)->installNativeEventFilter(static_cast(filterObj)); +} + +char QCoreApplication_QCoreApplication_InstallTranslator(void* translationFile) +{ + return QCoreApplication::installTranslator(static_cast(translationFile)); +} + +void* QCoreApplication_QCoreApplication_Instance() +{ + return QCoreApplication::instance(); +} + +char QCoreApplication_QCoreApplication_IsQuitLockEnabled() +{ + return QCoreApplication::isQuitLockEnabled(); +} + +char QCoreApplication_QCoreApplication_IsSetuidAllowed() +{ + return QCoreApplication::isSetuidAllowed(); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_LibraryPaths() +{ + return ({ QByteArray* tec17c7 = new QByteArray(QCoreApplication::libraryPaths().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tec17c7->prepend("WHITESPACE").constData()+10), tec17c7->size()-10, tec17c7 }; }); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_OrganizationDomain() +{ + return ({ QByteArray* t013a2e = new QByteArray(QCoreApplication::organizationDomain().toUtf8()); QtCore_PackedString { const_cast(t013a2e->prepend("WHITESPACE").constData()+10), t013a2e->size()-10, t013a2e }; }); +} + +void QCoreApplication_ConnectOrganizationDomainChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QCoreApplication::organizationDomainChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_OrganizationDomainChanged), static_cast(t)); +} + +void QCoreApplication_DisconnectOrganizationDomainChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QCoreApplication::organizationDomainChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_OrganizationDomainChanged)); +} + +void QCoreApplication_OrganizationDomainChanged(void* ptr) +{ + static_cast(ptr)->organizationDomainChanged(); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_OrganizationName() +{ + return ({ QByteArray* t6f3f58 = new QByteArray(QCoreApplication::organizationName().toUtf8()); QtCore_PackedString { const_cast(t6f3f58->prepend("WHITESPACE").constData()+10), t6f3f58->size()-10, t6f3f58 }; }); +} + +void QCoreApplication_ConnectOrganizationNameChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QCoreApplication::organizationNameChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_OrganizationNameChanged), static_cast(t)); +} + +void QCoreApplication_DisconnectOrganizationNameChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QCoreApplication::organizationNameChanged), static_cast(ptr), static_cast(&MyQCoreApplication::Signal_OrganizationNameChanged)); +} + +void QCoreApplication_OrganizationNameChanged(void* ptr) +{ + static_cast(ptr)->organizationNameChanged(); +} + +void QCoreApplication_QCoreApplication_PostEvent(void* receiver, void* event, int priority) +{ + QCoreApplication::postEvent(static_cast(receiver), static_cast(event), priority); +} + +void QCoreApplication_QCoreApplication_ProcessEvents(long long flags) +{ + QCoreApplication::processEvents(static_cast(flags)); +} + +void QCoreApplication_QCoreApplication_ProcessEvents2(long long flags, int ms) +{ + QCoreApplication::processEvents(static_cast(flags), ms); +} + +void QCoreApplication_Quit(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "quit"); +} + +void QCoreApplication_QuitDefault(void* ptr) +{ + static_cast(ptr)->QCoreApplication::quit(); +} + +void QCoreApplication_QCoreApplication_RemoveLibraryPath(struct QtCore_PackedString path) +{ + QCoreApplication::removeLibraryPath(QString::fromUtf8(path.data, path.len)); +} + +void QCoreApplication_RemoveNativeEventFilter(void* ptr, void* filterObject) +{ + static_cast(ptr)->removeNativeEventFilter(static_cast(filterObject)); +} + +void QCoreApplication_QCoreApplication_RemovePostedEvents(void* receiver, int eventType) +{ + QCoreApplication::removePostedEvents(static_cast(receiver), eventType); +} + +char QCoreApplication_QCoreApplication_RemoveTranslator(void* translationFile) +{ + return QCoreApplication::removeTranslator(static_cast(translationFile)); +} + +char QCoreApplication_QCoreApplication_SendEvent(void* receiver, void* event) +{ + return QCoreApplication::sendEvent(static_cast(receiver), static_cast(event)); +} + +void QCoreApplication_QCoreApplication_SendPostedEvents(void* receiver, int event_type) +{ + QCoreApplication::sendPostedEvents(static_cast(receiver), event_type); +} + +void QCoreApplication_QCoreApplication_SetApplicationName(struct QtCore_PackedString application) +{ + QCoreApplication::setApplicationName(QString::fromUtf8(application.data, application.len)); +} + +void QCoreApplication_QCoreApplication_SetApplicationVersion(struct QtCore_PackedString version) +{ + QCoreApplication::setApplicationVersion(QString::fromUtf8(version.data, version.len)); +} + +void QCoreApplication_QCoreApplication_SetAttribute(long long attribute, char on) +{ + QCoreApplication::setAttribute(static_cast(attribute), on != 0); +} + +void QCoreApplication_QCoreApplication_SetEventDispatcher(void* eventDispatcher) +{ + QCoreApplication::setEventDispatcher(static_cast(eventDispatcher)); +} + +void QCoreApplication_QCoreApplication_SetLibraryPaths(struct QtCore_PackedString paths) +{ + QCoreApplication::setLibraryPaths(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QCoreApplication_QCoreApplication_SetOrganizationDomain(struct QtCore_PackedString orgDomain) +{ + QCoreApplication::setOrganizationDomain(QString::fromUtf8(orgDomain.data, orgDomain.len)); +} + +void QCoreApplication_QCoreApplication_SetOrganizationName(struct QtCore_PackedString orgName) +{ + QCoreApplication::setOrganizationName(QString::fromUtf8(orgName.data, orgName.len)); +} + +void QCoreApplication_QCoreApplication_SetQuitLockEnabled(char enabled) +{ + QCoreApplication::setQuitLockEnabled(enabled != 0); +} + +void QCoreApplication_QCoreApplication_SetSetuidAllowed(char allow) +{ + QCoreApplication::setSetuidAllowed(allow != 0); +} + +char QCoreApplication_QCoreApplication_StartingUp() +{ + return QCoreApplication::startingUp(); +} + +char QCoreApplication_QCoreApplication_TestAttribute(long long attribute) +{ + return QCoreApplication::testAttribute(static_cast(attribute)); +} + +struct QtCore_PackedString QCoreApplication_QCoreApplication_Translate(char* context, char* sourceText, char* disambiguation, int n) +{ + return ({ QByteArray* t901eb0 = new QByteArray(QCoreApplication::translate(const_cast(context), const_cast(sourceText), const_cast(disambiguation), n).toUtf8()); QtCore_PackedString { const_cast(t901eb0->prepend("WHITESPACE").constData()+10), t901eb0->size()-10, t901eb0 }; }); +} + +void QCoreApplication_DestroyQCoreApplication(void* ptr) +{ + static_cast(ptr)->~QCoreApplication(); +} + +void QCoreApplication_DestroyQCoreApplicationDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QCryptographicHash*) +void* QCryptographicHash_NewQCryptographicHash(long long method) +{ + return new QCryptographicHash(static_cast(method)); +} + +void QCryptographicHash_AddData(void* ptr, char* data, int length) +{ + static_cast(ptr)->addData(const_cast(data), length); +} + +void QCryptographicHash_AddData2(void* ptr, void* data) +{ + static_cast(ptr)->addData(*static_cast(data)); +} + +char QCryptographicHash_AddData3(void* ptr, void* device) +{ + return static_cast(ptr)->addData(static_cast(device)); +} + +void* QCryptographicHash_QCryptographicHash_Hash(void* data, long long method) +{ + return new QByteArray(QCryptographicHash::hash(*static_cast(data), static_cast(method))); +} + +int QCryptographicHash_QCryptographicHash_HashLength(long long method) +{ + return QCryptographicHash::hashLength(static_cast(method)); +} + +void QCryptographicHash_Reset(void* ptr) +{ + static_cast(ptr)->reset(); +} + +void* QCryptographicHash_Result(void* ptr) +{ + return new QByteArray(static_cast(ptr)->result()); +} + +void QCryptographicHash_DestroyQCryptographicHash(void* ptr) +{ + static_cast(ptr)->~QCryptographicHash(); +} + +Q_DECLARE_METATYPE(QDataStream*) +void* QDataStream_NewQDataStream() +{ + return new QDataStream(); +} + +void* QDataStream_NewQDataStream2(void* d) +{ + return new QDataStream(static_cast(d)); +} + +void* QDataStream_NewQDataStream3(void* a, long long mode) +{ + return new QDataStream(static_cast(a), static_cast(mode)); +} + +void* QDataStream_NewQDataStream4(void* a) +{ + return new QDataStream(*static_cast(a)); +} + +void QDataStream_AbortTransaction(void* ptr) +{ + static_cast(ptr)->abortTransaction(); +} + +char QDataStream_AtEnd(void* ptr) +{ + return static_cast(ptr)->atEnd(); +} + +long long QDataStream_ByteOrder(void* ptr) +{ + return static_cast(ptr)->byteOrder(); +} + +char QDataStream_CommitTransaction(void* ptr) +{ + return static_cast(ptr)->commitTransaction(); +} + +void* QDataStream_Device(void* ptr) +{ + return static_cast(ptr)->device(); +} + +long long QDataStream_FloatingPointPrecision(void* ptr) +{ + return static_cast(ptr)->floatingPointPrecision(); +} + +int QDataStream_ReadRawData(void* ptr, char* s, int l) +{ + return static_cast(ptr)->readRawData(s, l); +} + +void QDataStream_ResetStatus(void* ptr) +{ + static_cast(ptr)->resetStatus(); +} + +void QDataStream_RollbackTransaction(void* ptr) +{ + static_cast(ptr)->rollbackTransaction(); +} + +void QDataStream_SetByteOrder(void* ptr, long long bo) +{ + static_cast(ptr)->setByteOrder(static_cast(bo)); +} + +void QDataStream_SetDevice(void* ptr, void* d) +{ + static_cast(ptr)->setDevice(static_cast(d)); +} + +void QDataStream_SetFloatingPointPrecision(void* ptr, long long precision) +{ + static_cast(ptr)->setFloatingPointPrecision(static_cast(precision)); +} + +void QDataStream_SetStatus(void* ptr, long long status) +{ + static_cast(ptr)->setStatus(static_cast(status)); +} + +void QDataStream_SetVersion(void* ptr, int v) +{ + static_cast(ptr)->setVersion(v); +} + +int QDataStream_SkipRawData(void* ptr, int l) +{ + return static_cast(ptr)->skipRawData(l); +} + +void QDataStream_StartTransaction(void* ptr) +{ + static_cast(ptr)->startTransaction(); +} + +long long QDataStream_Status(void* ptr) +{ + return static_cast(ptr)->status(); +} + +int QDataStream_Version(void* ptr) +{ + return static_cast(ptr)->version(); +} + +int QDataStream_WriteRawData(void* ptr, char* s, int l) +{ + return static_cast(ptr)->writeRawData(const_cast(s), l); +} + +void QDataStream_DestroyQDataStream(void* ptr) +{ + static_cast(ptr)->~QDataStream(); +} + +Q_DECLARE_METATYPE(QDate) +Q_DECLARE_METATYPE(QDate*) +void* QDate_NewQDate2() +{ + return new QDate(); +} + +void* QDate_NewQDate3(int y, int m, int d) +{ + return new QDate(y, m, d); +} + +void* QDate_AddDays(void* ptr, long long ndays) +{ + return new QDate(static_cast(ptr)->addDays(ndays)); +} + +void* QDate_AddMonths(void* ptr, int nmonths) +{ + return new QDate(static_cast(ptr)->addMonths(nmonths)); +} + +void* QDate_AddYears(void* ptr, int nyears) +{ + return new QDate(static_cast(ptr)->addYears(nyears)); +} + +void* QDate_QDate_CurrentDate() +{ + return new QDate(QDate::currentDate()); +} + +int QDate_Day(void* ptr) +{ + return static_cast(ptr)->day(); +} + +int QDate_DayOfWeek(void* ptr) +{ + return static_cast(ptr)->dayOfWeek(); +} + +int QDate_DayOfYear(void* ptr) +{ + return static_cast(ptr)->dayOfYear(); +} + +int QDate_DaysInMonth(void* ptr) +{ + return static_cast(ptr)->daysInMonth(); +} + +int QDate_DaysInYear(void* ptr) +{ + return static_cast(ptr)->daysInYear(); +} + +long long QDate_DaysTo(void* ptr, void* d) +{ + return static_cast(ptr)->daysTo(*static_cast(d)); +} + +void* QDate_QDate_FromJulianDay(long long jd) +{ + return new QDate(QDate::fromJulianDay(jd)); +} + +void* QDate_QDate_FromString(struct QtCore_PackedString stri, long long format) +{ + return new QDate(QDate::fromString(QString::fromUtf8(stri.data, stri.len), static_cast(format))); +} + +void* QDate_QDate_FromString2(struct QtCore_PackedString stri, struct QtCore_PackedString format) +{ + return new QDate(QDate::fromString(QString::fromUtf8(stri.data, stri.len), QString::fromUtf8(format.data, format.len))); +} + +void QDate_GetDate(void* ptr, int year, int month, int day) +{ + static_cast(ptr)->getDate(&year, &month, &day); +} + +char QDate_QDate_IsLeapYear(int year) +{ + return QDate::isLeapYear(year); +} + +char QDate_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QDate_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +char QDate_QDate_IsValid2(int year, int month, int day) +{ + return QDate::isValid(year, month, day); +} + +int QDate_Month(void* ptr) +{ + return static_cast(ptr)->month(); +} + +char QDate_SetDate(void* ptr, int year, int month, int day) +{ + return static_cast(ptr)->setDate(year, month, day); +} + +long long QDate_ToJulianDay(void* ptr) +{ + return static_cast(ptr)->toJulianDay(); +} + +struct QtCore_PackedString QDate_ToString(void* ptr, struct QtCore_PackedString format) +{ + return ({ QByteArray* te68bf6 = new QByteArray(static_cast(ptr)->toString(QString::fromUtf8(format.data, format.len)).toUtf8()); QtCore_PackedString { const_cast(te68bf6->prepend("WHITESPACE").constData()+10), te68bf6->size()-10, te68bf6 }; }); +} + +struct QtCore_PackedString QDate_ToString2(void* ptr, long long format) +{ + return ({ QByteArray* tfa9ec6 = new QByteArray(static_cast(ptr)->toString(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(tfa9ec6->prepend("WHITESPACE").constData()+10), tfa9ec6->size()-10, tfa9ec6 }; }); +} + +struct QtCore_PackedString QDate_ToString3(void* ptr, void* format) +{ + return ({ QByteArray* tab5488 = new QByteArray(static_cast(ptr)->toString(*static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(tab5488->prepend("WHITESPACE").constData()+10), tab5488->size()-10, tab5488 }; }); +} + +int QDate_WeekNumber(void* ptr, int yearNumber) +{ + return static_cast(ptr)->weekNumber(&yearNumber); +} + +int QDate_Year(void* ptr) +{ + return static_cast(ptr)->year(); +} + +Q_DECLARE_METATYPE(QDateTime) +Q_DECLARE_METATYPE(QDateTime*) +void* QDateTime_NewQDateTime() +{ + return new QDateTime(); +} + +void* QDateTime_NewQDateTime2(void* date) +{ + return new QDateTime(*static_cast(date)); +} + +void* QDateTime_NewQDateTime3(void* date, void* ti, long long spec) +{ + return new QDateTime(*static_cast(date), *static_cast(ti), static_cast(spec)); +} + +void* QDateTime_NewQDateTime4(void* date, void* ti, long long spec, int offsetSeconds) +{ + return new QDateTime(*static_cast(date), *static_cast(ti), static_cast(spec), offsetSeconds); +} + +void* QDateTime_NewQDateTime5(void* date, void* ti, void* timeZone) +{ + return new QDateTime(*static_cast(date), *static_cast(ti), *static_cast(timeZone)); +} + +void* QDateTime_NewQDateTime6(void* other) +{ + return new QDateTime(*static_cast(other)); +} + +void* QDateTime_NewQDateTime7(void* other) +{ + return new QDateTime(*static_cast(other)); +} + +void* QDateTime_AddDays(void* ptr, long long ndays) +{ + return new QDateTime(static_cast(ptr)->addDays(ndays)); +} + +void* QDateTime_AddMSecs(void* ptr, long long msecs) +{ + return new QDateTime(static_cast(ptr)->addMSecs(msecs)); +} + +void* QDateTime_AddMonths(void* ptr, int nmonths) +{ + return new QDateTime(static_cast(ptr)->addMonths(nmonths)); +} + +void* QDateTime_AddSecs(void* ptr, long long s) +{ + return new QDateTime(static_cast(ptr)->addSecs(s)); +} + +void* QDateTime_AddYears(void* ptr, int nyears) +{ + return new QDateTime(static_cast(ptr)->addYears(nyears)); +} + +void* QDateTime_QDateTime_CurrentDateTime() +{ + return new QDateTime(QDateTime::currentDateTime()); +} + +void* QDateTime_QDateTime_CurrentDateTimeUtc() +{ + return new QDateTime(QDateTime::currentDateTimeUtc()); +} + +long long QDateTime_QDateTime_CurrentMSecsSinceEpoch() +{ + return QDateTime::currentMSecsSinceEpoch(); +} + +long long QDateTime_QDateTime_CurrentSecsSinceEpoch() +{ + return QDateTime::currentSecsSinceEpoch(); +} + +void* QDateTime_Date(void* ptr) +{ + return new QDate(static_cast(ptr)->date()); +} + +long long QDateTime_DaysTo(void* ptr, void* other) +{ + return static_cast(ptr)->daysTo(*static_cast(other)); +} + +void* QDateTime_QDateTime_FromMSecsSinceEpoch(long long msecs) +{ + return new QDateTime(QDateTime::fromMSecsSinceEpoch(msecs)); +} + +void* QDateTime_QDateTime_FromMSecsSinceEpoch2(long long msecs, long long spec, int offsetSeconds) +{ + return new QDateTime(QDateTime::fromMSecsSinceEpoch(msecs, static_cast(spec), offsetSeconds)); +} + +void* QDateTime_QDateTime_FromMSecsSinceEpoch3(long long msecs, void* timeZone) +{ + return new QDateTime(QDateTime::fromMSecsSinceEpoch(msecs, *static_cast(timeZone))); +} + +void* QDateTime_QDateTime_FromSecsSinceEpoch(long long secs, long long spec, int offsetSeconds) +{ + return new QDateTime(QDateTime::fromSecsSinceEpoch(secs, static_cast(spec), offsetSeconds)); +} + +void* QDateTime_QDateTime_FromSecsSinceEpoch2(long long secs, void* timeZone) +{ + return new QDateTime(QDateTime::fromSecsSinceEpoch(secs, *static_cast(timeZone))); +} + +void* QDateTime_QDateTime_FromString(struct QtCore_PackedString stri, long long format) +{ + return new QDateTime(QDateTime::fromString(QString::fromUtf8(stri.data, stri.len), static_cast(format))); +} + +void* QDateTime_QDateTime_FromString2(struct QtCore_PackedString stri, struct QtCore_PackedString format) +{ + return new QDateTime(QDateTime::fromString(QString::fromUtf8(stri.data, stri.len), QString::fromUtf8(format.data, format.len))); +} + +char QDateTime_IsDaylightTime(void* ptr) +{ + return static_cast(ptr)->isDaylightTime(); +} + +char QDateTime_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QDateTime_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +long long QDateTime_MsecsTo(void* ptr, void* other) +{ + return static_cast(ptr)->msecsTo(*static_cast(other)); +} + +int QDateTime_OffsetFromUtc(void* ptr) +{ + return static_cast(ptr)->offsetFromUtc(); +} + +long long QDateTime_SecsTo(void* ptr, void* other) +{ + return static_cast(ptr)->secsTo(*static_cast(other)); +} + +void QDateTime_SetDate(void* ptr, void* date) +{ + static_cast(ptr)->setDate(*static_cast(date)); +} + +void QDateTime_SetMSecsSinceEpoch(void* ptr, long long msecs) +{ + static_cast(ptr)->setMSecsSinceEpoch(msecs); +} + +void QDateTime_SetOffsetFromUtc(void* ptr, int offsetSeconds) +{ + static_cast(ptr)->setOffsetFromUtc(offsetSeconds); +} + +void QDateTime_SetSecsSinceEpoch(void* ptr, long long secs) +{ + static_cast(ptr)->setSecsSinceEpoch(secs); +} + +void QDateTime_SetTime(void* ptr, void* ti) +{ + static_cast(ptr)->setTime(*static_cast(ti)); +} + +void QDateTime_SetTimeSpec(void* ptr, long long spec) +{ + static_cast(ptr)->setTimeSpec(static_cast(spec)); +} + +void QDateTime_SetTimeZone(void* ptr, void* toZone) +{ + static_cast(ptr)->setTimeZone(*static_cast(toZone)); +} + +void QDateTime_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QDateTime_Time(void* ptr) +{ + return new QTime(static_cast(ptr)->time()); +} + +long long QDateTime_TimeSpec(void* ptr) +{ + return static_cast(ptr)->timeSpec(); +} + +void* QDateTime_TimeZone(void* ptr) +{ + return new QTimeZone(static_cast(ptr)->timeZone()); +} + +struct QtCore_PackedString QDateTime_TimeZoneAbbreviation(void* ptr) +{ + return ({ QByteArray* te524d2 = new QByteArray(static_cast(ptr)->timeZoneAbbreviation().toUtf8()); QtCore_PackedString { const_cast(te524d2->prepend("WHITESPACE").constData()+10), te524d2->size()-10, te524d2 }; }); +} + +void* QDateTime_ToLocalTime(void* ptr) +{ + return new QDateTime(static_cast(ptr)->toLocalTime()); +} + +long long QDateTime_ToMSecsSinceEpoch(void* ptr) +{ + return static_cast(ptr)->toMSecsSinceEpoch(); +} + +void* QDateTime_ToOffsetFromUtc(void* ptr, int offsetSeconds) +{ + return new QDateTime(static_cast(ptr)->toOffsetFromUtc(offsetSeconds)); +} + +long long QDateTime_ToSecsSinceEpoch(void* ptr) +{ + return static_cast(ptr)->toSecsSinceEpoch(); +} + +struct QtCore_PackedString QDateTime_ToString(void* ptr, struct QtCore_PackedString format) +{ + return ({ QByteArray* t78bcae = new QByteArray(static_cast(ptr)->toString(QString::fromUtf8(format.data, format.len)).toUtf8()); QtCore_PackedString { const_cast(t78bcae->prepend("WHITESPACE").constData()+10), t78bcae->size()-10, t78bcae }; }); +} + +struct QtCore_PackedString QDateTime_ToString2(void* ptr, long long format) +{ + return ({ QByteArray* tbd5547 = new QByteArray(static_cast(ptr)->toString(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(tbd5547->prepend("WHITESPACE").constData()+10), tbd5547->size()-10, tbd5547 }; }); +} + +struct QtCore_PackedString QDateTime_ToString3(void* ptr, void* format) +{ + return ({ QByteArray* t95196e = new QByteArray(static_cast(ptr)->toString(*static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t95196e->prepend("WHITESPACE").constData()+10), t95196e->size()-10, t95196e }; }); +} + +void* QDateTime_ToTimeSpec(void* ptr, long long spec) +{ + return new QDateTime(static_cast(ptr)->toTimeSpec(static_cast(spec))); +} + +void* QDateTime_ToTimeZone(void* ptr, void* timeZone) +{ + return new QDateTime(static_cast(ptr)->toTimeZone(*static_cast(timeZone))); +} + +void* QDateTime_ToUTC(void* ptr) +{ + return new QDateTime(static_cast(ptr)->toUTC()); +} + +void QDateTime_DestroyQDateTime(void* ptr) +{ + static_cast(ptr)->~QDateTime(); +} + +Q_DECLARE_METATYPE(QDeadlineTimer*) +void* QDeadlineTimer_NewQDeadlineTimer(long long timerType) +{ + return new QDeadlineTimer(static_cast(timerType)); +} + +void* QDeadlineTimer_NewQDeadlineTimer2(long long vqd, long long timerType) +{ + return new QDeadlineTimer(static_cast(vqd), static_cast(timerType)); +} + +void* QDeadlineTimer_NewQDeadlineTimer3(long long msecs, long long ty) +{ + return new QDeadlineTimer(msecs, static_cast(ty)); +} + +long long QDeadlineTimer_Deadline(void* ptr) +{ + return static_cast(ptr)->deadline(); +} + +long long QDeadlineTimer_DeadlineNSecs(void* ptr) +{ + return static_cast(ptr)->deadlineNSecs(); +} + +char QDeadlineTimer_HasExpired(void* ptr) +{ + return static_cast(ptr)->hasExpired(); +} + +char QDeadlineTimer_IsForever(void* ptr) +{ + return static_cast(ptr)->isForever(); +} + +long long QDeadlineTimer_RemainingTime(void* ptr) +{ + return static_cast(ptr)->remainingTime(); +} + +long long QDeadlineTimer_RemainingTimeNSecs(void* ptr) +{ + return static_cast(ptr)->remainingTimeNSecs(); +} + +void QDeadlineTimer_SetDeadline(void* ptr, long long msecs, long long timerType) +{ + static_cast(ptr)->setDeadline(msecs, static_cast(timerType)); +} + +void QDeadlineTimer_SetPreciseDeadline(void* ptr, long long secs, long long nsecs, long long timerType) +{ + static_cast(ptr)->setPreciseDeadline(secs, nsecs, static_cast(timerType)); +} + +void QDeadlineTimer_SetPreciseRemainingTime(void* ptr, long long secs, long long nsecs, long long timerType) +{ + static_cast(ptr)->setPreciseRemainingTime(secs, nsecs, static_cast(timerType)); +} + +void QDeadlineTimer_SetRemainingTime(void* ptr, long long msecs, long long timerType) +{ + static_cast(ptr)->setRemainingTime(msecs, static_cast(timerType)); +} + +void QDeadlineTimer_SetTimerType(void* ptr, long long timerType) +{ + static_cast(ptr)->setTimerType(static_cast(timerType)); +} + +void QDeadlineTimer_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +long long QDeadlineTimer_TimerType(void* ptr) +{ + return static_cast(ptr)->timerType(); +} + +Q_DECLARE_METATYPE(QDebug*) +void* QDebug_NewQDebug(void* device) +{ + return new QDebug(static_cast(device)); +} + +void* QDebug_NewQDebug2(struct QtCore_PackedString stri) +{ + return new QDebug(new QString(QString::fromUtf8(stri.data, stri.len))); +} + +void* QDebug_NewQDebug4(void* o) +{ + return new QDebug(*static_cast(o)); +} + +char QDebug_AutoInsertSpaces(void* ptr) +{ + return static_cast(ptr)->autoInsertSpaces(); +} + +void* QDebug_MaybeQuote(void* ptr, char* c) +{ + return new QDebug(static_cast(ptr)->maybeQuote(*c)); +} + +void* QDebug_MaybeSpace(void* ptr) +{ + return new QDebug(static_cast(ptr)->maybeSpace()); +} + +void* QDebug_Noquote(void* ptr) +{ + return new QDebug(static_cast(ptr)->noquote()); +} + +void* QDebug_Nospace(void* ptr) +{ + return new QDebug(static_cast(ptr)->nospace()); +} + +void* QDebug_Quote(void* ptr) +{ + return new QDebug(static_cast(ptr)->quote()); +} + +void* QDebug_ResetFormat(void* ptr) +{ + return new QDebug(static_cast(ptr)->resetFormat()); +} + +void QDebug_SetAutoInsertSpaces(void* ptr, char b) +{ + static_cast(ptr)->setAutoInsertSpaces(b != 0); +} + +void QDebug_SetVerbosity(void* ptr, int verbosityLevel) +{ + static_cast(ptr)->setVerbosity(verbosityLevel); +} + +void* QDebug_Space(void* ptr) +{ + return new QDebug(static_cast(ptr)->space()); +} + +void QDebug_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QDebug_Verbosity(void* ptr, int verbosityLevel) +{ + return new QDebug(static_cast(ptr)->verbosity(verbosityLevel)); +} + +int QDebug_Verbosity2(void* ptr) +{ + return static_cast(ptr)->verbosity(); +} + +void QDebug_DestroyQDebug(void* ptr) +{ + static_cast(ptr)->~QDebug(); +} + +Q_DECLARE_METATYPE(QDebugStateSaver*) +void* QDebugStateSaver_NewQDebugStateSaver(void* dbg) +{ + return new QDebugStateSaver(*static_cast(dbg)); +} + +void QDebugStateSaver_DestroyQDebugStateSaver(void* ptr) +{ + static_cast(ptr)->~QDebugStateSaver(); +} + +class MyQDeferredDeleteEvent: public QDeferredDeleteEvent +{ +public: + MyQDeferredDeleteEvent() : QDeferredDeleteEvent() {QDeferredDeleteEvent_QDeferredDeleteEvent_QRegisterMetaType();}; +}; + +Q_DECLARE_METATYPE(QDeferredDeleteEvent*) +Q_DECLARE_METATYPE(MyQDeferredDeleteEvent*) + +int QDeferredDeleteEvent_QDeferredDeleteEvent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QDeferredDeleteEvent_NewQDeferredDeleteEvent() +{ + return new MyQDeferredDeleteEvent(); +} + +int QDeferredDeleteEvent_LoopLevel(void* ptr) +{ + return static_cast(ptr)->loopLevel(); +} + +Q_DECLARE_METATYPE(QDir*) +void* QDir_NewQDir(void* dir) +{ + return new QDir(*static_cast(dir)); +} + +void* QDir_NewQDir2(struct QtCore_PackedString path) +{ + return new QDir(QString::fromUtf8(path.data, path.len)); +} + +void* QDir_NewQDir3(struct QtCore_PackedString path, struct QtCore_PackedString nameFilter, long long sort, long long filters) +{ + return new QDir(QString::fromUtf8(path.data, path.len), QString::fromUtf8(nameFilter.data, nameFilter.len), static_cast(sort), static_cast(filters)); +} + +struct QtCore_PackedString QDir_AbsoluteFilePath(void* ptr, struct QtCore_PackedString fileName) +{ + return ({ QByteArray* t084b4e = new QByteArray(static_cast(ptr)->absoluteFilePath(QString::fromUtf8(fileName.data, fileName.len)).toUtf8()); QtCore_PackedString { const_cast(t084b4e->prepend("WHITESPACE").constData()+10), t084b4e->size()-10, t084b4e }; }); +} + +struct QtCore_PackedString QDir_AbsolutePath(void* ptr) +{ + return ({ QByteArray* t420972 = new QByteArray(static_cast(ptr)->absolutePath().toUtf8()); QtCore_PackedString { const_cast(t420972->prepend("WHITESPACE").constData()+10), t420972->size()-10, t420972 }; }); +} + +void QDir_QDir_AddSearchPath(struct QtCore_PackedString prefix, struct QtCore_PackedString path) +{ + QDir::addSearchPath(QString::fromUtf8(prefix.data, prefix.len), QString::fromUtf8(path.data, path.len)); +} + +struct QtCore_PackedString QDir_CanonicalPath(void* ptr) +{ + return ({ QByteArray* ta3771c = new QByteArray(static_cast(ptr)->canonicalPath().toUtf8()); QtCore_PackedString { const_cast(ta3771c->prepend("WHITESPACE").constData()+10), ta3771c->size()-10, ta3771c }; }); +} + +char QDir_Cd(void* ptr, struct QtCore_PackedString dirName) +{ + return static_cast(ptr)->cd(QString::fromUtf8(dirName.data, dirName.len)); +} + +char QDir_CdUp(void* ptr) +{ + return static_cast(ptr)->cdUp(); +} + +struct QtCore_PackedString QDir_QDir_CleanPath(struct QtCore_PackedString path) +{ + return ({ QByteArray* tad90b4 = new QByteArray(QDir::cleanPath(QString::fromUtf8(path.data, path.len)).toUtf8()); QtCore_PackedString { const_cast(tad90b4->prepend("WHITESPACE").constData()+10), tad90b4->size()-10, tad90b4 }; }); +} + +unsigned int QDir_Count(void* ptr) +{ + return static_cast(ptr)->count(); +} + +void* QDir_QDir_Current() +{ + return new QDir(QDir::current()); +} + +struct QtCore_PackedString QDir_QDir_CurrentPath() +{ + return ({ QByteArray* t081208 = new QByteArray(QDir::currentPath().toUtf8()); QtCore_PackedString { const_cast(t081208->prepend("WHITESPACE").constData()+10), t081208->size()-10, t081208 }; }); +} + +struct QtCore_PackedString QDir_DirName(void* ptr) +{ + return ({ QByteArray* td48935 = new QByteArray(static_cast(ptr)->dirName().toUtf8()); QtCore_PackedString { const_cast(td48935->prepend("WHITESPACE").constData()+10), td48935->size()-10, td48935 }; }); +} + +struct QtCore_PackedList QDir_QDir_Drives() +{ + return ({ QList* tmpValued1e42f = new QList(QDir::drives()); QtCore_PackedList { tmpValued1e42f, tmpValued1e42f->size() }; }); +} + +struct QtCore_PackedList QDir_EntryInfoList(void* ptr, struct QtCore_PackedString nameFilters, long long filters, long long sort) +{ + return ({ QList* tmpValue043d19 = new QList(static_cast(ptr)->entryInfoList(QString::fromUtf8(nameFilters.data, nameFilters.len).split("¡¦!", QString::SkipEmptyParts), static_cast(filters), static_cast(sort))); QtCore_PackedList { tmpValue043d19, tmpValue043d19->size() }; }); +} + +struct QtCore_PackedList QDir_EntryInfoList2(void* ptr, long long filters, long long sort) +{ + return ({ QList* tmpValue718f78 = new QList(static_cast(ptr)->entryInfoList(static_cast(filters), static_cast(sort))); QtCore_PackedList { tmpValue718f78, tmpValue718f78->size() }; }); +} + +struct QtCore_PackedString QDir_EntryList(void* ptr, struct QtCore_PackedString nameFilters, long long filters, long long sort) +{ + return ({ QByteArray* t2f8008 = new QByteArray(static_cast(ptr)->entryList(QString::fromUtf8(nameFilters.data, nameFilters.len).split("¡¦!", QString::SkipEmptyParts), static_cast(filters), static_cast(sort)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t2f8008->prepend("WHITESPACE").constData()+10), t2f8008->size()-10, t2f8008 }; }); +} + +struct QtCore_PackedString QDir_EntryList2(void* ptr, long long filters, long long sort) +{ + return ({ QByteArray* t2244e4 = new QByteArray(static_cast(ptr)->entryList(static_cast(filters), static_cast(sort)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t2244e4->prepend("WHITESPACE").constData()+10), t2244e4->size()-10, t2244e4 }; }); +} + +char QDir_Exists(void* ptr, struct QtCore_PackedString name) +{ + return static_cast(ptr)->exists(QString::fromUtf8(name.data, name.len)); +} + +char QDir_Exists2(void* ptr) +{ + return static_cast(ptr)->exists(); +} + +struct QtCore_PackedString QDir_FilePath(void* ptr, struct QtCore_PackedString fileName) +{ + return ({ QByteArray* te35159 = new QByteArray(static_cast(ptr)->filePath(QString::fromUtf8(fileName.data, fileName.len)).toUtf8()); QtCore_PackedString { const_cast(te35159->prepend("WHITESPACE").constData()+10), te35159->size()-10, te35159 }; }); +} + +long long QDir_Filter(void* ptr) +{ + return static_cast(ptr)->filter(); +} + +struct QtCore_PackedString QDir_QDir_FromNativeSeparators(struct QtCore_PackedString pathName) +{ + return ({ QByteArray* tb29b44 = new QByteArray(QDir::fromNativeSeparators(QString::fromUtf8(pathName.data, pathName.len)).toUtf8()); QtCore_PackedString { const_cast(tb29b44->prepend("WHITESPACE").constData()+10), tb29b44->size()-10, tb29b44 }; }); +} + +void* QDir_QDir_Home() +{ + return new QDir(QDir::home()); +} + +struct QtCore_PackedString QDir_QDir_HomePath() +{ + return ({ QByteArray* t93fee6 = new QByteArray(QDir::homePath().toUtf8()); QtCore_PackedString { const_cast(t93fee6->prepend("WHITESPACE").constData()+10), t93fee6->size()-10, t93fee6 }; }); +} + +char QDir_IsAbsolute(void* ptr) +{ + return static_cast(ptr)->isAbsolute(); +} + +char QDir_QDir_IsAbsolutePath(struct QtCore_PackedString path) +{ + return QDir::isAbsolutePath(QString::fromUtf8(path.data, path.len)); +} + +char QDir_IsEmpty(void* ptr, long long filters) +{ + return static_cast(ptr)->isEmpty(static_cast(filters)); +} + +char QDir_IsReadable(void* ptr) +{ + return static_cast(ptr)->isReadable(); +} + +char QDir_IsRelative(void* ptr) +{ + return static_cast(ptr)->isRelative(); +} + +char QDir_QDir_IsRelativePath(struct QtCore_PackedString path) +{ + return QDir::isRelativePath(QString::fromUtf8(path.data, path.len)); +} + +char QDir_IsRoot(void* ptr) +{ + return static_cast(ptr)->isRoot(); +} + +void* QDir_QDir_ListSeparator() +{ + return new QChar(QDir::listSeparator()); +} + +char QDir_MakeAbsolute(void* ptr) +{ + return static_cast(ptr)->makeAbsolute(); +} + +char QDir_QDir_Match(struct QtCore_PackedString filter, struct QtCore_PackedString fileName) +{ + return QDir::match(QString::fromUtf8(filter.data, filter.len), QString::fromUtf8(fileName.data, fileName.len)); +} + +char QDir_QDir_Match2(struct QtCore_PackedString filters, struct QtCore_PackedString fileName) +{ + return QDir::match(QString::fromUtf8(filters.data, filters.len).split("¡¦!", QString::SkipEmptyParts), QString::fromUtf8(fileName.data, fileName.len)); +} + +char QDir_Mkdir(void* ptr, struct QtCore_PackedString dirName) +{ + return static_cast(ptr)->mkdir(QString::fromUtf8(dirName.data, dirName.len)); +} + +char QDir_Mkpath(void* ptr, struct QtCore_PackedString dirPath) +{ + return static_cast(ptr)->mkpath(QString::fromUtf8(dirPath.data, dirPath.len)); +} + +struct QtCore_PackedString QDir_NameFilters(void* ptr) +{ + return ({ QByteArray* t429f9f = new QByteArray(static_cast(ptr)->nameFilters().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t429f9f->prepend("WHITESPACE").constData()+10), t429f9f->size()-10, t429f9f }; }); +} + +struct QtCore_PackedString QDir_Path(void* ptr) +{ + return ({ QByteArray* t1e0939 = new QByteArray(static_cast(ptr)->path().toUtf8()); QtCore_PackedString { const_cast(t1e0939->prepend("WHITESPACE").constData()+10), t1e0939->size()-10, t1e0939 }; }); +} + +void QDir_Refresh(void* ptr) +{ + static_cast(ptr)->refresh(); +} + +struct QtCore_PackedString QDir_RelativeFilePath(void* ptr, struct QtCore_PackedString fileName) +{ + return ({ QByteArray* t5e18c2 = new QByteArray(static_cast(ptr)->relativeFilePath(QString::fromUtf8(fileName.data, fileName.len)).toUtf8()); QtCore_PackedString { const_cast(t5e18c2->prepend("WHITESPACE").constData()+10), t5e18c2->size()-10, t5e18c2 }; }); +} + +char QDir_Remove(void* ptr, struct QtCore_PackedString fileName) +{ + return static_cast(ptr)->remove(QString::fromUtf8(fileName.data, fileName.len)); +} + +char QDir_RemoveRecursively(void* ptr) +{ + return static_cast(ptr)->removeRecursively(); +} + +char QDir_Rename(void* ptr, struct QtCore_PackedString oldName, struct QtCore_PackedString newName) +{ + return static_cast(ptr)->rename(QString::fromUtf8(oldName.data, oldName.len), QString::fromUtf8(newName.data, newName.len)); +} + +char QDir_Rmdir(void* ptr, struct QtCore_PackedString dirName) +{ + return static_cast(ptr)->rmdir(QString::fromUtf8(dirName.data, dirName.len)); +} + +char QDir_Rmpath(void* ptr, struct QtCore_PackedString dirPath) +{ + return static_cast(ptr)->rmpath(QString::fromUtf8(dirPath.data, dirPath.len)); +} + +void* QDir_QDir_Root() +{ + return new QDir(QDir::root()); +} + +struct QtCore_PackedString QDir_QDir_RootPath() +{ + return ({ QByteArray* tc8c07d = new QByteArray(QDir::rootPath().toUtf8()); QtCore_PackedString { const_cast(tc8c07d->prepend("WHITESPACE").constData()+10), tc8c07d->size()-10, tc8c07d }; }); +} + +struct QtCore_PackedString QDir_QDir_SearchPaths(struct QtCore_PackedString prefix) +{ + return ({ QByteArray* t5d6556 = new QByteArray(QDir::searchPaths(QString::fromUtf8(prefix.data, prefix.len)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t5d6556->prepend("WHITESPACE").constData()+10), t5d6556->size()-10, t5d6556 }; }); +} + +void* QDir_QDir_Separator() +{ + return new QChar(QDir::separator()); +} + +char QDir_QDir_SetCurrent(struct QtCore_PackedString path) +{ + return QDir::setCurrent(QString::fromUtf8(path.data, path.len)); +} + +void QDir_SetFilter(void* ptr, long long filters) +{ + static_cast(ptr)->setFilter(static_cast(filters)); +} + +void QDir_SetNameFilters(void* ptr, struct QtCore_PackedString nameFilters) +{ + static_cast(ptr)->setNameFilters(QString::fromUtf8(nameFilters.data, nameFilters.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QDir_SetPath(void* ptr, struct QtCore_PackedString path) +{ + static_cast(ptr)->setPath(QString::fromUtf8(path.data, path.len)); +} + +void QDir_QDir_SetSearchPaths(struct QtCore_PackedString prefix, struct QtCore_PackedString searchPaths) +{ + QDir::setSearchPaths(QString::fromUtf8(prefix.data, prefix.len), QString::fromUtf8(searchPaths.data, searchPaths.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QDir_SetSorting(void* ptr, long long sort) +{ + static_cast(ptr)->setSorting(static_cast(sort)); +} + +long long QDir_Sorting(void* ptr) +{ + return static_cast(ptr)->sorting(); +} + +void QDir_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QDir_QDir_Temp() +{ + return new QDir(QDir::temp()); +} + +struct QtCore_PackedString QDir_QDir_TempPath() +{ + return ({ QByteArray* t677bd4 = new QByteArray(QDir::tempPath().toUtf8()); QtCore_PackedString { const_cast(t677bd4->prepend("WHITESPACE").constData()+10), t677bd4->size()-10, t677bd4 }; }); +} + +struct QtCore_PackedString QDir_QDir_ToNativeSeparators(struct QtCore_PackedString pathName) +{ + return ({ QByteArray* tf0acff = new QByteArray(QDir::toNativeSeparators(QString::fromUtf8(pathName.data, pathName.len)).toUtf8()); QtCore_PackedString { const_cast(tf0acff->prepend("WHITESPACE").constData()+10), tf0acff->size()-10, tf0acff }; }); +} + +void QDir_DestroyQDir(void* ptr) +{ + static_cast(ptr)->~QDir(); +} + +void* QDir___drives_atList(void* ptr, int i) +{ + return new QFileInfo(({QFileInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDir___drives_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDir___drives_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDir___entryInfoList_atList(void* ptr, int i) +{ + return new QFileInfo(({QFileInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDir___entryInfoList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDir___entryInfoList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QDir___entryInfoList_atList2(void* ptr, int i) +{ + return new QFileInfo(({QFileInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QDir___entryInfoList_setList2(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QDir___entryInfoList_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQDynamicPropertyChangeEvent: public QDynamicPropertyChangeEvent +{ +public: + MyQDynamicPropertyChangeEvent(const QByteArray &name) : QDynamicPropertyChangeEvent(name) {QDynamicPropertyChangeEvent_QDynamicPropertyChangeEvent_QRegisterMetaType();}; +}; + +Q_DECLARE_METATYPE(QDynamicPropertyChangeEvent*) +Q_DECLARE_METATYPE(MyQDynamicPropertyChangeEvent*) + +int QDynamicPropertyChangeEvent_QDynamicPropertyChangeEvent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QDynamicPropertyChangeEvent_NewQDynamicPropertyChangeEvent(void* name) +{ + return new MyQDynamicPropertyChangeEvent(*static_cast(name)); +} + +void* QDynamicPropertyChangeEvent_PropertyName(void* ptr) +{ + return new QByteArray(static_cast(ptr)->propertyName()); +} + +Q_DECLARE_METATYPE(QEasingCurve*) +void* QEasingCurve_NewQEasingCurve(long long ty) +{ + return new QEasingCurve(static_cast(ty)); +} + +void* QEasingCurve_NewQEasingCurve2(void* other) +{ + return new QEasingCurve(*static_cast(other)); +} + +void* QEasingCurve_NewQEasingCurve3(void* other) +{ + return new QEasingCurve(*static_cast(other)); +} + +void QEasingCurve_AddCubicBezierSegment(void* ptr, void* c1, void* c2, void* endPoint) +{ + static_cast(ptr)->addCubicBezierSegment(*static_cast(c1), *static_cast(c2), *static_cast(endPoint)); +} + +void QEasingCurve_AddTCBSegment(void* ptr, void* nextPoint, double t, double c, double b) +{ + static_cast(ptr)->addTCBSegment(*static_cast(nextPoint), t, c, b); +} + +double QEasingCurve_Amplitude(void* ptr) +{ + return static_cast(ptr)->amplitude(); +} + +double QEasingCurve_Overshoot(void* ptr) +{ + return static_cast(ptr)->overshoot(); +} + +double QEasingCurve_Period(void* ptr) +{ + return static_cast(ptr)->period(); +} + +void QEasingCurve_SetAmplitude(void* ptr, double amplitude) +{ + static_cast(ptr)->setAmplitude(amplitude); +} + +void QEasingCurve_SetOvershoot(void* ptr, double overshoot) +{ + static_cast(ptr)->setOvershoot(overshoot); +} + +void QEasingCurve_SetPeriod(void* ptr, double period) +{ + static_cast(ptr)->setPeriod(period); +} + +void QEasingCurve_SetType(void* ptr, long long ty) +{ + static_cast(ptr)->setType(static_cast(ty)); +} + +void QEasingCurve_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +struct QtCore_PackedList QEasingCurve_ToCubicSpline(void* ptr) +{ + return ({ QVector* tmpValueb4db1b = new QVector(static_cast(ptr)->toCubicSpline()); QtCore_PackedList { tmpValueb4db1b, tmpValueb4db1b->size() }; }); +} + +long long QEasingCurve_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +double QEasingCurve_ValueForProgress(void* ptr, double progress) +{ + return static_cast(ptr)->valueForProgress(progress); +} + +void QEasingCurve_DestroyQEasingCurve(void* ptr) +{ + static_cast(ptr)->~QEasingCurve(); +} + +void* QEasingCurve___cubicBezierSpline_atList(void* ptr, int i) +{ + return ({ QPointF tmpValue = ({QPointF tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void QEasingCurve___cubicBezierSpline_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QEasingCurve___cubicBezierSpline_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QEasingCurve___toCubicSpline_atList(void* ptr, int i) +{ + return ({ QPointF tmpValue = ({QPointF tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void QEasingCurve___toCubicSpline_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QEasingCurve___toCubicSpline_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +Q_DECLARE_METATYPE(QElapsedTimer) +Q_DECLARE_METATYPE(QElapsedTimer*) +void* QElapsedTimer_NewQElapsedTimer() +{ + return new QElapsedTimer(); +} + +long long QElapsedTimer_QElapsedTimer_ClockType() +{ + return QElapsedTimer::clockType(); +} + +long long QElapsedTimer_Elapsed(void* ptr) +{ + return static_cast(ptr)->elapsed(); +} + +char QElapsedTimer_HasExpired(void* ptr, long long timeout) +{ + return static_cast(ptr)->hasExpired(timeout); +} + +void QElapsedTimer_Invalidate(void* ptr) +{ + static_cast(ptr)->invalidate(); +} + +char QElapsedTimer_QElapsedTimer_IsMonotonic() +{ + return QElapsedTimer::isMonotonic(); +} + +char QElapsedTimer_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +long long QElapsedTimer_MsecsSinceReference(void* ptr) +{ + return static_cast(ptr)->msecsSinceReference(); +} + +long long QElapsedTimer_MsecsTo(void* ptr, void* other) +{ + return static_cast(ptr)->msecsTo(*static_cast(other)); +} + +long long QElapsedTimer_NsecsElapsed(void* ptr) +{ + return static_cast(ptr)->nsecsElapsed(); +} + +long long QElapsedTimer_Restart(void* ptr) +{ + return static_cast(ptr)->restart(); +} + +long long QElapsedTimer_SecsTo(void* ptr, void* other) +{ + return static_cast(ptr)->secsTo(*static_cast(other)); +} + +void QElapsedTimer_Start(void* ptr) +{ + static_cast(ptr)->start(); +} + +class MyQEvent: public QEvent +{ +public: + MyQEvent(QEvent::Type ty) : QEvent(ty) {QEvent_QEvent_QRegisterMetaType();}; + ~MyQEvent() { callbackQEvent_DestroyQEvent(this); }; +}; + +Q_DECLARE_METATYPE(QEvent*) +Q_DECLARE_METATYPE(MyQEvent*) + +int QEvent_QEvent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QEvent_NewQEvent(long long ty) +{ + return new MyQEvent(static_cast(ty)); +} + +void QEvent_Accept(void* ptr) +{ + static_cast(ptr)->accept(); +} + +void QEvent_Ignore(void* ptr) +{ + static_cast(ptr)->ignore(); +} + +char QEvent_IsAccepted(void* ptr) +{ + return static_cast(ptr)->isAccepted(); +} + +int QEvent_QEvent_RegisterEventType(int hint) +{ + return QEvent::registerEventType(hint); +} + +void QEvent_SetAccepted(void* ptr, char accepted) +{ + static_cast(ptr)->setAccepted(accepted != 0); +} + +char QEvent_Spontaneous(void* ptr) +{ + return static_cast(ptr)->spontaneous(); +} + +long long QEvent_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +void QEvent_DestroyQEvent(void* ptr) +{ + static_cast(ptr)->~QEvent(); +} + +void QEvent_DestroyQEventDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQEventLoop: public QEventLoop +{ +public: + MyQEventLoop(QObject *parent = Q_NULLPTR) : QEventLoop(parent) {QEventLoop_QEventLoop_QRegisterMetaType();}; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + void quit() { callbackQEventLoop_Quit(this); }; + ~MyQEventLoop() { callbackQEventLoop_DestroyQEventLoop(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QEventLoop*) +Q_DECLARE_METATYPE(MyQEventLoop*) + +int QEventLoop_QEventLoop_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QEventLoop_NewQEventLoop(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQEventLoop(static_cast(parent)); + } else { + return new MyQEventLoop(static_cast(parent)); + } +} + +int QEventLoop_Exec(void* ptr, long long flags) +{ + return static_cast(ptr)->exec(static_cast(flags)); +} + +void QEventLoop_Exit(void* ptr, int returnCode) +{ + static_cast(ptr)->exit(returnCode); +} + +char QEventLoop_IsRunning(void* ptr) +{ + return static_cast(ptr)->isRunning(); +} + +char QEventLoop_ProcessEvents(void* ptr, long long flags) +{ + return static_cast(ptr)->processEvents(static_cast(flags)); +} + +void QEventLoop_ProcessEvents2(void* ptr, long long flags, int maxTime) +{ + static_cast(ptr)->processEvents(static_cast(flags), maxTime); +} + +void QEventLoop_Quit(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "quit"); +} + +void QEventLoop_QuitDefault(void* ptr) +{ + static_cast(ptr)->QEventLoop::quit(); +} + +void QEventLoop_WakeUp(void* ptr) +{ + static_cast(ptr)->wakeUp(); +} + +void QEventLoop_DestroyQEventLoop(void* ptr) +{ + static_cast(ptr)->~QEventLoop(); +} + +void QEventLoop_DestroyQEventLoopDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QEventLoopLocker*) +void* QEventLoopLocker_NewQEventLoopLocker() +{ + return new QEventLoopLocker(); +} + +void* QEventLoopLocker_NewQEventLoopLocker2(void* loop) +{ + return new QEventLoopLocker(static_cast(loop)); +} + +void* QEventLoopLocker_NewQEventLoopLocker3(void* thread) +{ + return new QEventLoopLocker(static_cast(thread)); +} + +void QEventLoopLocker_DestroyQEventLoopLocker(void* ptr) +{ + static_cast(ptr)->~QEventLoopLocker(); +} + +class MyQEventTransition: public QEventTransition +{ +public: + MyQEventTransition(QState *sourceState = Q_NULLPTR) : QEventTransition(sourceState) {QEventTransition_QEventTransition_QRegisterMetaType();}; + MyQEventTransition(QObject *object, QEvent::Type ty, QState *sourceState = Q_NULLPTR) : QEventTransition(object, ty, sourceState) {QEventTransition_QEventTransition_QRegisterMetaType();}; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventTest(QEvent * event) { return callbackQEventTransition_EventTest(this, event) != 0; }; + void onTransition(QEvent * event) { callbackQEventTransition_OnTransition(this, event); }; + ~MyQEventTransition() { callbackQEventTransition_DestroyQEventTransition(this); }; + void Signal_TargetStateChanged() { callbackQAbstractTransition_TargetStateChanged(this); }; + void Signal_TargetStatesChanged() { callbackQAbstractTransition_TargetStatesChanged(this); }; + void Signal_Triggered() { callbackQAbstractTransition_Triggered(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QEventTransition*) +Q_DECLARE_METATYPE(MyQEventTransition*) + +int QEventTransition_QEventTransition_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QEventTransition_NewQEventTransition(void* sourceState) +{ + return new MyQEventTransition(static_cast(sourceState)); +} + +void* QEventTransition_NewQEventTransition2(void* object, long long ty, void* sourceState) +{ + if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(object))) { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } else { + return new MyQEventTransition(static_cast(object), static_cast(ty), static_cast(sourceState)); + } +} + +void* QEventTransition_EventSource(void* ptr) +{ + return static_cast(ptr)->eventSource(); +} + +char QEventTransition_EventTest(void* ptr, void* event) +{ + return static_cast(ptr)->eventTest(static_cast(event)); +} + +char QEventTransition_EventTestDefault(void* ptr, void* event) +{ + return static_cast(ptr)->QEventTransition::eventTest(static_cast(event)); +} + +long long QEventTransition_EventType(void* ptr) +{ + return static_cast(ptr)->eventType(); +} + +void QEventTransition_OnTransition(void* ptr, void* event) +{ + static_cast(ptr)->onTransition(static_cast(event)); +} + +void QEventTransition_OnTransitionDefault(void* ptr, void* event) +{ + static_cast(ptr)->QEventTransition::onTransition(static_cast(event)); +} + +void QEventTransition_SetEventSource(void* ptr, void* object) +{ + static_cast(ptr)->setEventSource(static_cast(object)); +} + +void QEventTransition_SetEventType(void* ptr, long long ty) +{ + static_cast(ptr)->setEventType(static_cast(ty)); +} + +void QEventTransition_DestroyQEventTransition(void* ptr) +{ + static_cast(ptr)->~QEventTransition(); +} + +void QEventTransition_DestroyQEventTransitionDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQFile: public QFile +{ +public: + MyQFile() : QFile() {QFile_QFile_QRegisterMetaType();}; + MyQFile(const QString &name) : QFile(name) {QFile_QFile_QRegisterMetaType();}; + MyQFile(QObject *parent) : QFile(parent) {QFile_QFile_QRegisterMetaType();}; + MyQFile(const QString &name, QObject *parent) : QFile(name, parent) {QFile_QFile_QRegisterMetaType();}; + QString fileName() const { return ({ QtCore_PackedString tempVal = callbackQFileDevice_FileName(const_cast(static_cast(this))); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; + bool open(QIODevice::OpenMode mode) { return callbackQIODevice_Open(this, mode) != 0; }; + QFileDevice::Permissions permissions() const { return static_cast(callbackQFileDevice_Permissions(const_cast(static_cast(this)))); }; + bool resize(qint64 sz) { return callbackQFileDevice_Resize(this, sz) != 0; }; + bool setPermissions(QFileDevice::Permissions permissions) { return callbackQFileDevice_SetPermissions(this, permissions) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + ~MyQFile() { callbackQFile_DestroyQFile(this); }; + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + void close() { callbackQIODevice_Close(this); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + qint64 readData(char * data, qint64 l) { QtCore_PackedString dataPacked = { data, l, NULL };return callbackQFileDevice_ReadData(this, dataPacked, l); }; + qint64 readLineData(char * data, qint64 maxlen) { QtCore_PackedString dataPacked = { data, maxlen, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxlen); }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + qint64 writeData(const char * data, qint64 l) { QtCore_PackedString dataPacked = { const_cast(data), l, NULL };return callbackQFileDevice_WriteData(this, dataPacked, l); }; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QFile*) +Q_DECLARE_METATYPE(MyQFile*) + +int QFile_QFile_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QFile_NewQFile() +{ + return new MyQFile(); +} + +void* QFile_NewQFile2(struct QtCore_PackedString name) +{ + return new MyQFile(QString::fromUtf8(name.data, name.len)); +} + +void* QFile_NewQFile3(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(static_cast(parent)); + } else { + return new MyQFile(static_cast(parent)); + } +} + +void* QFile_NewQFile4(struct QtCore_PackedString name, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else { + return new MyQFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } +} + +char QFile_Copy(void* ptr, struct QtCore_PackedString newName) +{ + return static_cast(ptr)->copy(QString::fromUtf8(newName.data, newName.len)); +} + +char QFile_QFile_Copy2(struct QtCore_PackedString fileName, struct QtCore_PackedString newName) +{ + return QFile::copy(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(newName.data, newName.len)); +} + +struct QtCore_PackedString QFile_QFile_DecodeName(void* localFileName) +{ + return ({ QByteArray* t6223ce = new QByteArray(QFile::decodeName(*static_cast(localFileName)).toUtf8()); QtCore_PackedString { const_cast(t6223ce->prepend("WHITESPACE").constData()+10), t6223ce->size()-10, t6223ce }; }); +} + +struct QtCore_PackedString QFile_QFile_DecodeName2(char* localFileName) +{ + return ({ QByteArray* t699d57 = new QByteArray(QFile::decodeName(const_cast(localFileName)).toUtf8()); QtCore_PackedString { const_cast(t699d57->prepend("WHITESPACE").constData()+10), t699d57->size()-10, t699d57 }; }); +} + +void* QFile_QFile_EncodeName(struct QtCore_PackedString fileName) +{ + return new QByteArray(QFile::encodeName(QString::fromUtf8(fileName.data, fileName.len))); +} + +char QFile_QFile_Exists(struct QtCore_PackedString fileName) +{ + return QFile::exists(QString::fromUtf8(fileName.data, fileName.len)); +} + +char QFile_Exists2(void* ptr) +{ + return static_cast(ptr)->exists(); +} + +char QFile_Link(void* ptr, struct QtCore_PackedString linkName) +{ + return static_cast(ptr)->link(QString::fromUtf8(linkName.data, linkName.len)); +} + +char QFile_QFile_Link2(struct QtCore_PackedString fileName, struct QtCore_PackedString linkName) +{ + return QFile::link(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(linkName.data, linkName.len)); +} + +char QFile_Open3(void* ptr, int fd, long long mode, long long handleFlags) +{ + return static_cast(ptr)->open(fd, static_cast(mode), static_cast(handleFlags)); +} + +long long QFile_QFile_Permissions2(struct QtCore_PackedString fileName) +{ + return QFile::permissions(QString::fromUtf8(fileName.data, fileName.len)); +} + +char QFile_Remove(void* ptr) +{ + return static_cast(ptr)->remove(); +} + +char QFile_QFile_Remove2(struct QtCore_PackedString fileName) +{ + return QFile::remove(QString::fromUtf8(fileName.data, fileName.len)); +} + +char QFile_Rename(void* ptr, struct QtCore_PackedString newName) +{ + return static_cast(ptr)->rename(QString::fromUtf8(newName.data, newName.len)); +} + +char QFile_QFile_Rename2(struct QtCore_PackedString oldName, struct QtCore_PackedString newName) +{ + return QFile::rename(QString::fromUtf8(oldName.data, oldName.len), QString::fromUtf8(newName.data, newName.len)); +} + +char QFile_QFile_Resize2(struct QtCore_PackedString fileName, long long sz) +{ + return QFile::resize(QString::fromUtf8(fileName.data, fileName.len), sz); +} + +void QFile_SetFileName(void* ptr, struct QtCore_PackedString name) +{ + static_cast(ptr)->setFileName(QString::fromUtf8(name.data, name.len)); +} + +char QFile_QFile_SetPermissions2(struct QtCore_PackedString fileName, long long permissions) +{ + return QFile::setPermissions(QString::fromUtf8(fileName.data, fileName.len), static_cast(permissions)); +} + +struct QtCore_PackedString QFile_QFile_SymLinkTarget(struct QtCore_PackedString fileName) +{ + return ({ QByteArray* t53c74a = new QByteArray(QFile::symLinkTarget(QString::fromUtf8(fileName.data, fileName.len)).toUtf8()); QtCore_PackedString { const_cast(t53c74a->prepend("WHITESPACE").constData()+10), t53c74a->size()-10, t53c74a }; }); +} + +struct QtCore_PackedString QFile_SymLinkTarget2(void* ptr) +{ + return ({ QByteArray* tfaa232 = new QByteArray(static_cast(ptr)->symLinkTarget().toUtf8()); QtCore_PackedString { const_cast(tfaa232->prepend("WHITESPACE").constData()+10), tfaa232->size()-10, tfaa232 }; }); +} + +void QFile_DestroyQFile(void* ptr) +{ + static_cast(ptr)->~QFile(); +} + +void QFile_DestroyQFileDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQFileDevice: public QFileDevice +{ +public: + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + void close() { callbackQIODevice_Close(this); }; + QString fileName() const { return ({ QtCore_PackedString tempVal = callbackQFileDevice_FileName(const_cast(static_cast(this))); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + QFileDevice::Permissions permissions() const { return static_cast(callbackQFileDevice_Permissions(const_cast(static_cast(this)))); }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + qint64 readData(char * data, qint64 l) { QtCore_PackedString dataPacked = { data, l, NULL };return callbackQFileDevice_ReadData(this, dataPacked, l); }; + qint64 readLineData(char * data, qint64 maxlen) { QtCore_PackedString dataPacked = { data, maxlen, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxlen); }; + bool resize(qint64 sz) { return callbackQFileDevice_Resize(this, sz) != 0; }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + bool setPermissions(QFileDevice::Permissions permissions) { return callbackQFileDevice_SetPermissions(this, permissions) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + qint64 writeData(const char * data, qint64 l) { QtCore_PackedString dataPacked = { const_cast(data), l, NULL };return callbackQFileDevice_WriteData(this, dataPacked, l); }; + ~MyQFileDevice() { callbackQFileDevice_DestroyQFileDevice(this); }; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + bool open(QIODevice::OpenMode mode) { return callbackQIODevice_Open(this, mode) != 0; }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QFileDevice*) +Q_DECLARE_METATYPE(MyQFileDevice*) + +int QFileDevice_QFileDevice_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +long long QFileDevice_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +struct QtCore_PackedString QFileDevice_FileName(void* ptr) +{ + return ({ QByteArray* t4e2118 = new QByteArray(static_cast(ptr)->fileName().toUtf8()); QtCore_PackedString { const_cast(t4e2118->prepend("WHITESPACE").constData()+10), t4e2118->size()-10, t4e2118 }; }); +} + +struct QtCore_PackedString QFileDevice_FileNameDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tb198ab = new QByteArray(static_cast(ptr)->QSaveFile::fileName().toUtf8()); QtCore_PackedString { const_cast(tb198ab->prepend("WHITESPACE").constData()+10), tb198ab->size()-10, tb198ab }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tb198ab = new QByteArray(static_cast(ptr)->QTemporaryFile::fileName().toUtf8()); QtCore_PackedString { const_cast(tb198ab->prepend("WHITESPACE").constData()+10), tb198ab->size()-10, tb198ab }; }); + } else if (dynamic_cast(static_cast(ptr))) { + return ({ QByteArray* tb198ab = new QByteArray(static_cast(ptr)->QFile::fileName().toUtf8()); QtCore_PackedString { const_cast(tb198ab->prepend("WHITESPACE").constData()+10), tb198ab->size()-10, tb198ab }; }); + } else { + return ({ QByteArray* tb198ab = new QByteArray(static_cast(ptr)->QFileDevice::fileName().toUtf8()); QtCore_PackedString { const_cast(tb198ab->prepend("WHITESPACE").constData()+10), tb198ab->size()-10, tb198ab }; }); + } +} + +void* QFileDevice_FileTime(void* ptr, long long ti) +{ + return new QDateTime(static_cast(ptr)->fileTime(static_cast(ti))); +} + +char QFileDevice_Flush(void* ptr) +{ + return static_cast(ptr)->flush(); +} + +int QFileDevice_Handle(void* ptr) +{ + return static_cast(ptr)->handle(); +} + +struct QtCore_PackedString QFileDevice_Map(void* ptr, long long offset, long long size, long long flags) +{ + return ({ char* t4b412c = static_cast(static_cast(static_cast(ptr)->map(offset, size, static_cast(flags)))); QtCore_PackedString { t4b412c, -1, NULL }; }); +} + +long long QFileDevice_Permissions(void* ptr) +{ + return static_cast(ptr)->permissions(); +} + +long long QFileDevice_PermissionsDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::permissions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::permissions(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::permissions(); + } else { + return static_cast(ptr)->QFileDevice::permissions(); + } +} + +long long QFileDevice_ReadData(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->readData(data, l); +} + +long long QFileDevice_ReadDataDefault(void* ptr, char* data, long long l) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::readData(data, l); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::readData(data, l); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::readData(data, l); + } else { + return static_cast(ptr)->QFileDevice::readData(data, l); + } +} + +char QFileDevice_Resize(void* ptr, long long sz) +{ + return static_cast(ptr)->resize(sz); +} + +char QFileDevice_ResizeDefault(void* ptr, long long sz) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::resize(sz); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::resize(sz); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::resize(sz); + } else { + return static_cast(ptr)->QFileDevice::resize(sz); + } +} + +char QFileDevice_SetFileTime(void* ptr, void* newDate, long long fileTime) +{ + return static_cast(ptr)->setFileTime(*static_cast(newDate), static_cast(fileTime)); +} + +char QFileDevice_SetPermissions(void* ptr, long long permissions) +{ + return static_cast(ptr)->setPermissions(static_cast(permissions)); +} + +char QFileDevice_SetPermissionsDefault(void* ptr, long long permissions) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::setPermissions(static_cast(permissions)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::setPermissions(static_cast(permissions)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::setPermissions(static_cast(permissions)); + } else { + return static_cast(ptr)->QFileDevice::setPermissions(static_cast(permissions)); + } +} + +char QFileDevice_Unmap(void* ptr, char* address) +{ + return static_cast(ptr)->unmap(static_cast(static_cast(address))); +} + +void QFileDevice_UnsetError(void* ptr) +{ + static_cast(ptr)->unsetError(); +} + +long long QFileDevice_WriteData(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->writeData(const_cast(data), l); +} + +long long QFileDevice_WriteDataDefault(void* ptr, char* data, long long l) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::writeData(const_cast(data), l); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::writeData(const_cast(data), l); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::writeData(const_cast(data), l); + } else { + return static_cast(ptr)->QFileDevice::writeData(const_cast(data), l); + } +} + +void QFileDevice_DestroyQFileDevice(void* ptr) +{ + static_cast(ptr)->~QFileDevice(); +} + +void QFileDevice_DestroyQFileDeviceDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QFileInfo*) +void* QFileInfo_NewQFileInfo2() +{ + return new QFileInfo(); +} + +void* QFileInfo_NewQFileInfo3(struct QtCore_PackedString file) +{ + return new QFileInfo(QString::fromUtf8(file.data, file.len)); +} + +void* QFileInfo_NewQFileInfo4(void* file) +{ + return new QFileInfo(*static_cast(file)); +} + +void* QFileInfo_NewQFileInfo5(void* dir, struct QtCore_PackedString file) +{ + return new QFileInfo(*static_cast(dir), QString::fromUtf8(file.data, file.len)); +} + +void* QFileInfo_NewQFileInfo6(void* fileinfo) +{ + return new QFileInfo(*static_cast(fileinfo)); +} + +void* QFileInfo_AbsoluteDir(void* ptr) +{ + return new QDir(static_cast(ptr)->absoluteDir()); +} + +struct QtCore_PackedString QFileInfo_AbsoluteFilePath(void* ptr) +{ + return ({ QByteArray* t97ee30 = new QByteArray(static_cast(ptr)->absoluteFilePath().toUtf8()); QtCore_PackedString { const_cast(t97ee30->prepend("WHITESPACE").constData()+10), t97ee30->size()-10, t97ee30 }; }); +} + +struct QtCore_PackedString QFileInfo_AbsolutePath(void* ptr) +{ + return ({ QByteArray* tcab43d = new QByteArray(static_cast(ptr)->absolutePath().toUtf8()); QtCore_PackedString { const_cast(tcab43d->prepend("WHITESPACE").constData()+10), tcab43d->size()-10, tcab43d }; }); +} + +struct QtCore_PackedString QFileInfo_BaseName(void* ptr) +{ + return ({ QByteArray* t02e589 = new QByteArray(static_cast(ptr)->baseName().toUtf8()); QtCore_PackedString { const_cast(t02e589->prepend("WHITESPACE").constData()+10), t02e589->size()-10, t02e589 }; }); +} + +void* QFileInfo_BirthTime(void* ptr) +{ + return new QDateTime(static_cast(ptr)->birthTime()); +} + +struct QtCore_PackedString QFileInfo_BundleName(void* ptr) +{ + return ({ QByteArray* tab958d = new QByteArray(static_cast(ptr)->bundleName().toUtf8()); QtCore_PackedString { const_cast(tab958d->prepend("WHITESPACE").constData()+10), tab958d->size()-10, tab958d }; }); +} + +char QFileInfo_Caching(void* ptr) +{ + return static_cast(ptr)->caching(); +} + +struct QtCore_PackedString QFileInfo_CanonicalFilePath(void* ptr) +{ + return ({ QByteArray* teeef69 = new QByteArray(static_cast(ptr)->canonicalFilePath().toUtf8()); QtCore_PackedString { const_cast(teeef69->prepend("WHITESPACE").constData()+10), teeef69->size()-10, teeef69 }; }); +} + +struct QtCore_PackedString QFileInfo_CanonicalPath(void* ptr) +{ + return ({ QByteArray* t32e17a = new QByteArray(static_cast(ptr)->canonicalPath().toUtf8()); QtCore_PackedString { const_cast(t32e17a->prepend("WHITESPACE").constData()+10), t32e17a->size()-10, t32e17a }; }); +} + +struct QtCore_PackedString QFileInfo_CompleteBaseName(void* ptr) +{ + return ({ QByteArray* t3f5264 = new QByteArray(static_cast(ptr)->completeBaseName().toUtf8()); QtCore_PackedString { const_cast(t3f5264->prepend("WHITESPACE").constData()+10), t3f5264->size()-10, t3f5264 }; }); +} + +struct QtCore_PackedString QFileInfo_CompleteSuffix(void* ptr) +{ + return ({ QByteArray* t780837 = new QByteArray(static_cast(ptr)->completeSuffix().toUtf8()); QtCore_PackedString { const_cast(t780837->prepend("WHITESPACE").constData()+10), t780837->size()-10, t780837 }; }); +} + +void* QFileInfo_Dir(void* ptr) +{ + return new QDir(static_cast(ptr)->dir()); +} + +char QFileInfo_Exists(void* ptr) +{ + return static_cast(ptr)->exists(); +} + +char QFileInfo_QFileInfo_Exists2(struct QtCore_PackedString file) +{ + return QFileInfo::exists(QString::fromUtf8(file.data, file.len)); +} + +struct QtCore_PackedString QFileInfo_FileName(void* ptr) +{ + return ({ QByteArray* t8cf8a1 = new QByteArray(static_cast(ptr)->fileName().toUtf8()); QtCore_PackedString { const_cast(t8cf8a1->prepend("WHITESPACE").constData()+10), t8cf8a1->size()-10, t8cf8a1 }; }); +} + +struct QtCore_PackedString QFileInfo_FilePath(void* ptr) +{ + return ({ QByteArray* tc6ca11 = new QByteArray(static_cast(ptr)->filePath().toUtf8()); QtCore_PackedString { const_cast(tc6ca11->prepend("WHITESPACE").constData()+10), tc6ca11->size()-10, tc6ca11 }; }); +} + +struct QtCore_PackedString QFileInfo_Group(void* ptr) +{ + return ({ QByteArray* ta89964 = new QByteArray(static_cast(ptr)->group().toUtf8()); QtCore_PackedString { const_cast(ta89964->prepend("WHITESPACE").constData()+10), ta89964->size()-10, ta89964 }; }); +} + +unsigned int QFileInfo_GroupId(void* ptr) +{ + return static_cast(ptr)->groupId(); +} + +char QFileInfo_IsAbsolute(void* ptr) +{ + return static_cast(ptr)->isAbsolute(); +} + +char QFileInfo_IsBundle(void* ptr) +{ + return static_cast(ptr)->isBundle(); +} + +char QFileInfo_IsDir(void* ptr) +{ + return static_cast(ptr)->isDir(); +} + +char QFileInfo_IsExecutable(void* ptr) +{ + return static_cast(ptr)->isExecutable(); +} + +char QFileInfo_IsFile(void* ptr) +{ + return static_cast(ptr)->isFile(); +} + +char QFileInfo_IsHidden(void* ptr) +{ + return static_cast(ptr)->isHidden(); +} + +char QFileInfo_IsNativePath(void* ptr) +{ + return static_cast(ptr)->isNativePath(); +} + +char QFileInfo_IsReadable(void* ptr) +{ + return static_cast(ptr)->isReadable(); +} + +char QFileInfo_IsRelative(void* ptr) +{ + return static_cast(ptr)->isRelative(); +} + +char QFileInfo_IsRoot(void* ptr) +{ + return static_cast(ptr)->isRoot(); +} + +char QFileInfo_IsSymLink(void* ptr) +{ + return static_cast(ptr)->isSymLink(); +} + +char QFileInfo_IsWritable(void* ptr) +{ + return static_cast(ptr)->isWritable(); +} + +void* QFileInfo_LastModified(void* ptr) +{ + return new QDateTime(static_cast(ptr)->lastModified()); +} + +void* QFileInfo_LastRead(void* ptr) +{ + return new QDateTime(static_cast(ptr)->lastRead()); +} + +char QFileInfo_MakeAbsolute(void* ptr) +{ + return static_cast(ptr)->makeAbsolute(); +} + +void* QFileInfo_MetadataChangeTime(void* ptr) +{ + return new QDateTime(static_cast(ptr)->metadataChangeTime()); +} + +struct QtCore_PackedString QFileInfo_Owner(void* ptr) +{ + return ({ QByteArray* t63af1f = new QByteArray(static_cast(ptr)->owner().toUtf8()); QtCore_PackedString { const_cast(t63af1f->prepend("WHITESPACE").constData()+10), t63af1f->size()-10, t63af1f }; }); +} + +unsigned int QFileInfo_OwnerId(void* ptr) +{ + return static_cast(ptr)->ownerId(); +} + +struct QtCore_PackedString QFileInfo_Path(void* ptr) +{ + return ({ QByteArray* tdcd027 = new QByteArray(static_cast(ptr)->path().toUtf8()); QtCore_PackedString { const_cast(tdcd027->prepend("WHITESPACE").constData()+10), tdcd027->size()-10, tdcd027 }; }); +} + +void QFileInfo_Refresh(void* ptr) +{ + static_cast(ptr)->refresh(); +} + +void QFileInfo_SetCaching(void* ptr, char enable) +{ + static_cast(ptr)->setCaching(enable != 0); +} + +void QFileInfo_SetFile(void* ptr, struct QtCore_PackedString file) +{ + static_cast(ptr)->setFile(QString::fromUtf8(file.data, file.len)); +} + +void QFileInfo_SetFile2(void* ptr, void* file) +{ + static_cast(ptr)->setFile(*static_cast(file)); +} + +void QFileInfo_SetFile3(void* ptr, void* dir, struct QtCore_PackedString file) +{ + static_cast(ptr)->setFile(*static_cast(dir), QString::fromUtf8(file.data, file.len)); +} + +long long QFileInfo_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +struct QtCore_PackedString QFileInfo_Suffix(void* ptr) +{ + return ({ QByteArray* t1b5684 = new QByteArray(static_cast(ptr)->suffix().toUtf8()); QtCore_PackedString { const_cast(t1b5684->prepend("WHITESPACE").constData()+10), t1b5684->size()-10, t1b5684 }; }); +} + +void QFileInfo_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +struct QtCore_PackedString QFileInfo_SymLinkTarget(void* ptr) +{ + return ({ QByteArray* tbe6e66 = new QByteArray(static_cast(ptr)->symLinkTarget().toUtf8()); QtCore_PackedString { const_cast(tbe6e66->prepend("WHITESPACE").constData()+10), tbe6e66->size()-10, tbe6e66 }; }); +} + +void QFileInfo_DestroyQFileInfo(void* ptr) +{ + static_cast(ptr)->~QFileInfo(); +} + +class MyQFileSelector: public QFileSelector +{ +public: + MyQFileSelector(QObject *parent = Q_NULLPTR) : QFileSelector(parent) {QFileSelector_QFileSelector_QRegisterMetaType();}; + ~MyQFileSelector() { callbackQFileSelector_DestroyQFileSelector(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QFileSelector*) +Q_DECLARE_METATYPE(MyQFileSelector*) + +int QFileSelector_QFileSelector_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QFileSelector_NewQFileSelector(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSelector(static_cast(parent)); + } else { + return new MyQFileSelector(static_cast(parent)); + } +} + +struct QtCore_PackedString QFileSelector_AllSelectors(void* ptr) +{ + return ({ QByteArray* tac6e92 = new QByteArray(static_cast(ptr)->allSelectors().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tac6e92->prepend("WHITESPACE").constData()+10), tac6e92->size()-10, tac6e92 }; }); +} + +struct QtCore_PackedString QFileSelector_ExtraSelectors(void* ptr) +{ + return ({ QByteArray* t31d53e = new QByteArray(static_cast(ptr)->extraSelectors().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t31d53e->prepend("WHITESPACE").constData()+10), t31d53e->size()-10, t31d53e }; }); +} + +struct QtCore_PackedString QFileSelector_Select(void* ptr, struct QtCore_PackedString filePath) +{ + return ({ QByteArray* ta8a230 = new QByteArray(static_cast(ptr)->select(QString::fromUtf8(filePath.data, filePath.len)).toUtf8()); QtCore_PackedString { const_cast(ta8a230->prepend("WHITESPACE").constData()+10), ta8a230->size()-10, ta8a230 }; }); +} + +void* QFileSelector_Select2(void* ptr, void* filePath) +{ + return new QUrl(static_cast(ptr)->select(*static_cast(filePath))); +} + +void QFileSelector_SetExtraSelectors(void* ptr, struct QtCore_PackedString list) +{ + static_cast(ptr)->setExtraSelectors(QString::fromUtf8(list.data, list.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QFileSelector_DestroyQFileSelector(void* ptr) +{ + static_cast(ptr)->~QFileSelector(); +} + +void QFileSelector_DestroyQFileSelectorDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQFileSystemWatcher: public QFileSystemWatcher +{ +public: + MyQFileSystemWatcher(QObject *parent = Q_NULLPTR) : QFileSystemWatcher(parent) {QFileSystemWatcher_QFileSystemWatcher_QRegisterMetaType();}; + MyQFileSystemWatcher(const QStringList &paths, QObject *parent = Q_NULLPTR) : QFileSystemWatcher(paths, parent) {QFileSystemWatcher_QFileSystemWatcher_QRegisterMetaType();}; + void Signal_DirectoryChanged(const QString & path) { QByteArray* t3150ec = new QByteArray(path.toUtf8()); QtCore_PackedString pathPacked = { const_cast(t3150ec->prepend("WHITESPACE").constData()+10), t3150ec->size()-10, t3150ec };callbackQFileSystemWatcher_DirectoryChanged(this, pathPacked); }; + void Signal_FileChanged(const QString & path) { QByteArray* t3150ec = new QByteArray(path.toUtf8()); QtCore_PackedString pathPacked = { const_cast(t3150ec->prepend("WHITESPACE").constData()+10), t3150ec->size()-10, t3150ec };callbackQFileSystemWatcher_FileChanged(this, pathPacked); }; + ~MyQFileSystemWatcher() { callbackQFileSystemWatcher_DestroyQFileSystemWatcher(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QFileSystemWatcher*) +Q_DECLARE_METATYPE(MyQFileSystemWatcher*) + +int QFileSystemWatcher_QFileSystemWatcher_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QFileSystemWatcher_NewQFileSystemWatcher(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(static_cast(parent)); + } else { + return new MyQFileSystemWatcher(static_cast(parent)); + } +} + +void* QFileSystemWatcher_NewQFileSystemWatcher2(struct QtCore_PackedString paths, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else { + return new MyQFileSystemWatcher(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } +} + +char QFileSystemWatcher_AddPath(void* ptr, struct QtCore_PackedString path) +{ + return static_cast(ptr)->addPath(QString::fromUtf8(path.data, path.len)); +} + +struct QtCore_PackedString QFileSystemWatcher_AddPaths(void* ptr, struct QtCore_PackedString paths) +{ + return ({ QByteArray* t3b4030 = new QByteArray(static_cast(ptr)->addPaths(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t3b4030->prepend("WHITESPACE").constData()+10), t3b4030->size()-10, t3b4030 }; }); +} + +struct QtCore_PackedString QFileSystemWatcher_Directories(void* ptr) +{ + return ({ QByteArray* t4c1489 = new QByteArray(static_cast(ptr)->directories().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t4c1489->prepend("WHITESPACE").constData()+10), t4c1489->size()-10, t4c1489 }; }); +} + +void QFileSystemWatcher_ConnectDirectoryChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QFileSystemWatcher::directoryChanged, static_cast(ptr), static_cast(&MyQFileSystemWatcher::Signal_DirectoryChanged), static_cast(t)); +} + +void QFileSystemWatcher_DisconnectDirectoryChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QFileSystemWatcher::directoryChanged, static_cast(ptr), static_cast(&MyQFileSystemWatcher::Signal_DirectoryChanged)); +} + +void QFileSystemWatcher_ConnectFileChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QFileSystemWatcher::fileChanged, static_cast(ptr), static_cast(&MyQFileSystemWatcher::Signal_FileChanged), static_cast(t)); +} + +void QFileSystemWatcher_DisconnectFileChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QFileSystemWatcher::fileChanged, static_cast(ptr), static_cast(&MyQFileSystemWatcher::Signal_FileChanged)); +} + +struct QtCore_PackedString QFileSystemWatcher_Files(void* ptr) +{ + return ({ QByteArray* t536197 = new QByteArray(static_cast(ptr)->files().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t536197->prepend("WHITESPACE").constData()+10), t536197->size()-10, t536197 }; }); +} + +char QFileSystemWatcher_RemovePath(void* ptr, struct QtCore_PackedString path) +{ + return static_cast(ptr)->removePath(QString::fromUtf8(path.data, path.len)); +} + +struct QtCore_PackedString QFileSystemWatcher_RemovePaths(void* ptr, struct QtCore_PackedString paths) +{ + return ({ QByteArray* te8a7c4 = new QByteArray(static_cast(ptr)->removePaths(QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(te8a7c4->prepend("WHITESPACE").constData()+10), te8a7c4->size()-10, te8a7c4 }; }); +} + +void QFileSystemWatcher_DestroyQFileSystemWatcher(void* ptr) +{ + static_cast(ptr)->~QFileSystemWatcher(); +} + +void QFileSystemWatcher_DestroyQFileSystemWatcherDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQFinalState: public QFinalState +{ +public: + MyQFinalState(QState *parent = Q_NULLPTR) : QFinalState(parent) {QFinalState_QFinalState_QRegisterMetaType();}; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void onEntry(QEvent * event) { callbackQFinalState_OnEntry(this, event); }; + void onExit(QEvent * event) { callbackQFinalState_OnExit(this, event); }; + ~MyQFinalState() { callbackQFinalState_DestroyQFinalState(this); }; + void Signal_ActiveChanged(bool active) { callbackQAbstractState_ActiveChanged(this, active); }; + void Signal_Entered() { callbackQAbstractState_Entered(this); }; + void Signal_Exited() { callbackQAbstractState_Exited(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QFinalState*) +Q_DECLARE_METATYPE(MyQFinalState*) + +int QFinalState_QFinalState_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QFinalState_NewQFinalState(void* parent) +{ + return new MyQFinalState(static_cast(parent)); +} + +void QFinalState_OnEntry(void* ptr, void* event) +{ + static_cast(ptr)->onEntry(static_cast(event)); +} + +void QFinalState_OnEntryDefault(void* ptr, void* event) +{ + static_cast(ptr)->QFinalState::onEntry(static_cast(event)); +} + +void QFinalState_OnExit(void* ptr, void* event) +{ + static_cast(ptr)->onExit(static_cast(event)); +} + +void QFinalState_OnExitDefault(void* ptr, void* event) +{ + static_cast(ptr)->QFinalState::onExit(static_cast(event)); +} + +void QFinalState_DestroyQFinalState(void* ptr) +{ + static_cast(ptr)->~QFinalState(); +} + +void QFinalState_DestroyQFinalStateDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QFlag*) +void* QFlag_NewQFlag(int value) +{ + return new QFlag(value); +} + +void* QFlag_NewQFlag2(unsigned int value) +{ + return new QFlag(value); +} + +void* QFlag_NewQFlag3(short value) +{ + return new QFlag(value); +} + +void* QFlag_NewQFlag4(unsigned short value) +{ + return new QFlag(value); +} + +void* QFutureInterface___reportResults_results_atList(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QFutureInterface___reportResults_results_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QFutureInterface___reportResults_results_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QFutureInterface___results_atList(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QFutureInterface___results_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QFutureInterface___results_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQFutureWatcherBase: public QFutureWatcherBase +{ +public: + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QFutureWatcherBase*) +Q_DECLARE_METATYPE(MyQFutureWatcherBase*) + +int QFutureWatcherBase_QFutureWatcherBase_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +Q_DECLARE_METATYPE(QGenericArgument*) +void* QGenericArgument_NewQGenericArgument(char* name, void* data) +{ + return new QGenericArgument(const_cast(name), data); +} + +void* QGenericArgument_Data(void* ptr) +{ + return static_cast(ptr)->data(); +} + +struct QtCore_PackedString QGenericArgument_Name(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->name()), -1, NULL }; +} + +Q_DECLARE_METATYPE(QGenericReturnArgument*) +void* QGenericReturnArgument_NewQGenericReturnArgument(char* name, void* data) +{ + return new QGenericReturnArgument(const_cast(name), data); +} + +class MyQHistoryState: public QHistoryState +{ +public: + MyQHistoryState(QState *parent = Q_NULLPTR) : QHistoryState(parent) {QHistoryState_QHistoryState_QRegisterMetaType();}; + MyQHistoryState(QHistoryState::HistoryType ty, QState *parent = Q_NULLPTR) : QHistoryState(ty, parent) {QHistoryState_QHistoryState_QRegisterMetaType();}; + void Signal_DefaultStateChanged() { callbackQHistoryState_DefaultStateChanged(this); }; + void Signal_DefaultTransitionChanged() { callbackQHistoryState_DefaultTransitionChanged(this); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void Signal_HistoryTypeChanged() { callbackQHistoryState_HistoryTypeChanged(this); }; + void onEntry(QEvent * event) { callbackQHistoryState_OnEntry(this, event); }; + void onExit(QEvent * event) { callbackQHistoryState_OnExit(this, event); }; + ~MyQHistoryState() { callbackQHistoryState_DestroyQHistoryState(this); }; + void Signal_ActiveChanged(bool active) { callbackQAbstractState_ActiveChanged(this, active); }; + void Signal_Entered() { callbackQAbstractState_Entered(this); }; + void Signal_Exited() { callbackQAbstractState_Exited(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QHistoryState*) +Q_DECLARE_METATYPE(MyQHistoryState*) + +int QHistoryState_QHistoryState_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QHistoryState_NewQHistoryState(void* parent) +{ + return new MyQHistoryState(static_cast(parent)); +} + +void* QHistoryState_NewQHistoryState2(long long ty, void* parent) +{ + return new MyQHistoryState(static_cast(ty), static_cast(parent)); +} + +void* QHistoryState_DefaultState(void* ptr) +{ + return static_cast(ptr)->defaultState(); +} + +void QHistoryState_ConnectDefaultStateChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QHistoryState::defaultStateChanged, static_cast(ptr), static_cast(&MyQHistoryState::Signal_DefaultStateChanged), static_cast(t)); +} + +void QHistoryState_DisconnectDefaultStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QHistoryState::defaultStateChanged, static_cast(ptr), static_cast(&MyQHistoryState::Signal_DefaultStateChanged)); +} + +void* QHistoryState_DefaultTransition(void* ptr) +{ + return static_cast(ptr)->defaultTransition(); +} + +void QHistoryState_ConnectDefaultTransitionChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QHistoryState::defaultTransitionChanged, static_cast(ptr), static_cast(&MyQHistoryState::Signal_DefaultTransitionChanged), static_cast(t)); +} + +void QHistoryState_DisconnectDefaultTransitionChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QHistoryState::defaultTransitionChanged, static_cast(ptr), static_cast(&MyQHistoryState::Signal_DefaultTransitionChanged)); +} + +long long QHistoryState_HistoryType(void* ptr) +{ + return static_cast(ptr)->historyType(); +} + +void QHistoryState_ConnectHistoryTypeChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QHistoryState::historyTypeChanged, static_cast(ptr), static_cast(&MyQHistoryState::Signal_HistoryTypeChanged), static_cast(t)); +} + +void QHistoryState_DisconnectHistoryTypeChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QHistoryState::historyTypeChanged, static_cast(ptr), static_cast(&MyQHistoryState::Signal_HistoryTypeChanged)); +} + +void QHistoryState_OnEntry(void* ptr, void* event) +{ + static_cast(ptr)->onEntry(static_cast(event)); +} + +void QHistoryState_OnEntryDefault(void* ptr, void* event) +{ + static_cast(ptr)->QHistoryState::onEntry(static_cast(event)); +} + +void QHistoryState_OnExit(void* ptr, void* event) +{ + static_cast(ptr)->onExit(static_cast(event)); +} + +void QHistoryState_OnExitDefault(void* ptr, void* event) +{ + static_cast(ptr)->QHistoryState::onExit(static_cast(event)); +} + +void QHistoryState_SetDefaultState(void* ptr, void* state) +{ + static_cast(ptr)->setDefaultState(static_cast(state)); +} + +void QHistoryState_SetDefaultTransition(void* ptr, void* transition) +{ + static_cast(ptr)->setDefaultTransition(static_cast(transition)); +} + +void QHistoryState_SetHistoryType(void* ptr, long long ty) +{ + static_cast(ptr)->setHistoryType(static_cast(ty)); +} + +void QHistoryState_DestroyQHistoryState(void* ptr) +{ + static_cast(ptr)->~QHistoryState(); +} + +void QHistoryState_DestroyQHistoryStateDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQIODevice: public QIODevice +{ +public: + MyQIODevice() : QIODevice() {QIODevice_QIODevice_QRegisterMetaType();}; + MyQIODevice(QObject *parent) : QIODevice(parent) {QIODevice_QIODevice_QRegisterMetaType();}; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + void close() { callbackQIODevice_Close(this); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + bool open(QIODevice::OpenMode mode) { return callbackQIODevice_Open(this, mode) != 0; }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + qint64 readData(char * data, qint64 maxSize) { QtCore_PackedString dataPacked = { data, maxSize, NULL };return callbackQIODevice_ReadData(this, dataPacked, maxSize); }; + qint64 readLineData(char * data, qint64 maxSize) { QtCore_PackedString dataPacked = { data, maxSize, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxSize); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + qint64 writeData(const char * data, qint64 maxSize) { QtCore_PackedString dataPacked = { const_cast(data), maxSize, NULL };return callbackQIODevice_WriteData(this, dataPacked, maxSize); }; + ~MyQIODevice() { callbackQIODevice_DestroyQIODevice(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QIODevice*) +Q_DECLARE_METATYPE(MyQIODevice*) + +int QIODevice_QIODevice_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QIODevice_NewQIODevice() +{ + return new MyQIODevice(); +} + +void* QIODevice_NewQIODevice2(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIODevice(static_cast(parent)); + } else { + return new MyQIODevice(static_cast(parent)); + } +} + +void QIODevice_ConnectAboutToClose(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QIODevice::aboutToClose), static_cast(ptr), static_cast(&MyQIODevice::Signal_AboutToClose), static_cast(t)); +} + +void QIODevice_DisconnectAboutToClose(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QIODevice::aboutToClose), static_cast(ptr), static_cast(&MyQIODevice::Signal_AboutToClose)); +} + +void QIODevice_AboutToClose(void* ptr) +{ + static_cast(ptr)->aboutToClose(); +} + +char QIODevice_AtEnd(void* ptr) +{ + return static_cast(ptr)->atEnd(); +} + +char QIODevice_AtEndDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::atEnd(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::atEnd(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::atEnd(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::atEnd(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::atEnd(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::atEnd(); + } else { + return static_cast(ptr)->QIODevice::atEnd(); + } +} + +long long QIODevice_BytesAvailable(void* ptr) +{ + return static_cast(ptr)->bytesAvailable(); +} + +long long QIODevice_BytesAvailableDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::bytesAvailable(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::bytesAvailable(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::bytesAvailable(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::bytesAvailable(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::bytesAvailable(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::bytesAvailable(); + } else { + return static_cast(ptr)->QIODevice::bytesAvailable(); + } +} + +long long QIODevice_BytesToWrite(void* ptr) +{ + return static_cast(ptr)->bytesToWrite(); +} + +long long QIODevice_BytesToWriteDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::bytesToWrite(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::bytesToWrite(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::bytesToWrite(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::bytesToWrite(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::bytesToWrite(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::bytesToWrite(); + } else { + return static_cast(ptr)->QIODevice::bytesToWrite(); + } +} + +void QIODevice_ConnectBytesWritten(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QIODevice::bytesWritten), static_cast(ptr), static_cast(&MyQIODevice::Signal_BytesWritten), static_cast(t)); +} + +void QIODevice_DisconnectBytesWritten(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QIODevice::bytesWritten), static_cast(ptr), static_cast(&MyQIODevice::Signal_BytesWritten)); +} + +void QIODevice_BytesWritten(void* ptr, long long bytes) +{ + static_cast(ptr)->bytesWritten(bytes); +} + +char QIODevice_CanReadLine(void* ptr) +{ + return static_cast(ptr)->canReadLine(); +} + +char QIODevice_CanReadLineDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::canReadLine(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::canReadLine(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::canReadLine(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::canReadLine(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::canReadLine(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::canReadLine(); + } else { + return static_cast(ptr)->QIODevice::canReadLine(); + } +} + +void QIODevice_ConnectChannelBytesWritten(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QIODevice::channelBytesWritten), static_cast(ptr), static_cast(&MyQIODevice::Signal_ChannelBytesWritten), static_cast(t)); +} + +void QIODevice_DisconnectChannelBytesWritten(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QIODevice::channelBytesWritten), static_cast(ptr), static_cast(&MyQIODevice::Signal_ChannelBytesWritten)); +} + +void QIODevice_ChannelBytesWritten(void* ptr, int channel, long long bytes) +{ + static_cast(ptr)->channelBytesWritten(channel, bytes); +} + +void QIODevice_ConnectChannelReadyRead(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QIODevice::channelReadyRead), static_cast(ptr), static_cast(&MyQIODevice::Signal_ChannelReadyRead), static_cast(t)); +} + +void QIODevice_DisconnectChannelReadyRead(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QIODevice::channelReadyRead), static_cast(ptr), static_cast(&MyQIODevice::Signal_ChannelReadyRead)); +} + +void QIODevice_ChannelReadyRead(void* ptr, int channel) +{ + static_cast(ptr)->channelReadyRead(channel); +} + +void QIODevice_Close(void* ptr) +{ + static_cast(ptr)->close(); +} + +void QIODevice_CloseDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::close(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::close(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::close(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::close(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::close(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::close(); + } else { + static_cast(ptr)->QIODevice::close(); + } +} + +void QIODevice_CommitTransaction(void* ptr) +{ + static_cast(ptr)->commitTransaction(); +} + +int QIODevice_CurrentReadChannel(void* ptr) +{ + return static_cast(ptr)->currentReadChannel(); +} + +int QIODevice_CurrentWriteChannel(void* ptr) +{ + return static_cast(ptr)->currentWriteChannel(); +} + +struct QtCore_PackedString QIODevice_ErrorString(void* ptr) +{ + return ({ QByteArray* t7db24b = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t7db24b->prepend("WHITESPACE").constData()+10), t7db24b->size()-10, t7db24b }; }); +} + +char QIODevice_GetChar(void* ptr, char* c) +{ + return static_cast(ptr)->getChar(c); +} + +char QIODevice_IsOpen(void* ptr) +{ + return static_cast(ptr)->isOpen(); +} + +char QIODevice_IsReadable(void* ptr) +{ + return static_cast(ptr)->isReadable(); +} + +char QIODevice_IsSequential(void* ptr) +{ + return static_cast(ptr)->isSequential(); +} + +char QIODevice_IsSequentialDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::isSequential(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::isSequential(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::isSequential(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::isSequential(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::isSequential(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::isSequential(); + } else { + return static_cast(ptr)->QIODevice::isSequential(); + } +} + +char QIODevice_IsTextModeEnabled(void* ptr) +{ + return static_cast(ptr)->isTextModeEnabled(); +} + +char QIODevice_IsTransactionStarted(void* ptr) +{ + return static_cast(ptr)->isTransactionStarted(); +} + +char QIODevice_IsWritable(void* ptr) +{ + return static_cast(ptr)->isWritable(); +} + +char QIODevice_Open(void* ptr, long long mode) +{ + return static_cast(ptr)->open(static_cast(mode)); +} + +char QIODevice_OpenDefault(void* ptr, long long mode) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::open(static_cast(mode)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::open(static_cast(mode)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::open(static_cast(mode)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::open(static_cast(mode)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::open(static_cast(mode)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::open(static_cast(mode)); + } else { + return static_cast(ptr)->QIODevice::open(static_cast(mode)); + } +} + +long long QIODevice_OpenMode(void* ptr) +{ + return static_cast(ptr)->openMode(); +} + +long long QIODevice_Peek(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->peek(data, maxSize); +} + +void* QIODevice_Peek2(void* ptr, long long maxSize) +{ + return new QByteArray(static_cast(ptr)->peek(maxSize)); +} + +long long QIODevice_Pos(void* ptr) +{ + return static_cast(ptr)->pos(); +} + +long long QIODevice_PosDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::pos(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::pos(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::pos(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::pos(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::pos(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::pos(); + } else { + return static_cast(ptr)->QIODevice::pos(); + } +} + +char QIODevice_PutChar(void* ptr, char* c) +{ + return static_cast(ptr)->putChar(*c); +} + +long long QIODevice_Read(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->read(data, maxSize); +} + +void* QIODevice_Read2(void* ptr, long long maxSize) +{ + return new QByteArray(static_cast(ptr)->read(maxSize)); +} + +void* QIODevice_ReadAll(void* ptr) +{ + return new QByteArray(static_cast(ptr)->readAll()); +} + +int QIODevice_ReadChannelCount(void* ptr) +{ + return static_cast(ptr)->readChannelCount(); +} + +void QIODevice_ConnectReadChannelFinished(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QIODevice::readChannelFinished), static_cast(ptr), static_cast(&MyQIODevice::Signal_ReadChannelFinished), static_cast(t)); +} + +void QIODevice_DisconnectReadChannelFinished(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QIODevice::readChannelFinished), static_cast(ptr), static_cast(&MyQIODevice::Signal_ReadChannelFinished)); +} + +void QIODevice_ReadChannelFinished(void* ptr) +{ + static_cast(ptr)->readChannelFinished(); +} + +long long QIODevice_ReadData(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->readData(data, maxSize); +} + +long long QIODevice_ReadLine(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->readLine(data, maxSize); +} + +void* QIODevice_ReadLine2(void* ptr, long long maxSize) +{ + return new QByteArray(static_cast(ptr)->readLine(maxSize)); +} + +long long QIODevice_ReadLineData(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->readLineData(data, maxSize); +} + +long long QIODevice_ReadLineDataDefault(void* ptr, char* data, long long maxSize) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::readLineData(data, maxSize); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::readLineData(data, maxSize); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::readLineData(data, maxSize); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::readLineData(data, maxSize); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::readLineData(data, maxSize); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::readLineData(data, maxSize); + } else { + return static_cast(ptr)->QIODevice::readLineData(data, maxSize); + } +} + +void QIODevice_ConnectReadyRead(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QIODevice::readyRead), static_cast(ptr), static_cast(&MyQIODevice::Signal_ReadyRead), static_cast(t)); +} + +void QIODevice_DisconnectReadyRead(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QIODevice::readyRead), static_cast(ptr), static_cast(&MyQIODevice::Signal_ReadyRead)); +} + +void QIODevice_ReadyRead(void* ptr) +{ + static_cast(ptr)->readyRead(); +} + +char QIODevice_Reset(void* ptr) +{ + return static_cast(ptr)->reset(); +} + +char QIODevice_ResetDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::reset(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::reset(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::reset(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::reset(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::reset(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::reset(); + } else { + return static_cast(ptr)->QIODevice::reset(); + } +} + +void QIODevice_RollbackTransaction(void* ptr) +{ + static_cast(ptr)->rollbackTransaction(); +} + +char QIODevice_Seek(void* ptr, long long pos) +{ + return static_cast(ptr)->seek(pos); +} + +char QIODevice_SeekDefault(void* ptr, long long pos) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::seek(pos); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::seek(pos); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::seek(pos); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::seek(pos); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::seek(pos); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::seek(pos); + } else { + return static_cast(ptr)->QIODevice::seek(pos); + } +} + +void QIODevice_SetCurrentReadChannel(void* ptr, int channel) +{ + static_cast(ptr)->setCurrentReadChannel(channel); +} + +void QIODevice_SetCurrentWriteChannel(void* ptr, int channel) +{ + static_cast(ptr)->setCurrentWriteChannel(channel); +} + +void QIODevice_SetErrorString(void* ptr, struct QtCore_PackedString str) +{ + static_cast(ptr)->setErrorString(QString::fromUtf8(str.data, str.len)); +} + +void QIODevice_SetOpenMode(void* ptr, long long openMode) +{ + static_cast(ptr)->setOpenMode(static_cast(openMode)); +} + +void QIODevice_SetTextModeEnabled(void* ptr, char enabled) +{ + static_cast(ptr)->setTextModeEnabled(enabled != 0); +} + +long long QIODevice_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +long long QIODevice_SizeDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::size(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::size(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::size(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::size(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::size(); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::size(); + } else { + return static_cast(ptr)->QIODevice::size(); + } +} + +long long QIODevice_Skip(void* ptr, long long maxSize) +{ + return static_cast(ptr)->skip(maxSize); +} + +void QIODevice_StartTransaction(void* ptr) +{ + static_cast(ptr)->startTransaction(); +} + +void QIODevice_UngetChar(void* ptr, char* c) +{ + static_cast(ptr)->ungetChar(*c); +} + +char QIODevice_WaitForBytesWritten(void* ptr, int msecs) +{ + return static_cast(ptr)->waitForBytesWritten(msecs); +} + +char QIODevice_WaitForBytesWrittenDefault(void* ptr, int msecs) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::waitForBytesWritten(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::waitForBytesWritten(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::waitForBytesWritten(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::waitForBytesWritten(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::waitForBytesWritten(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::waitForBytesWritten(msecs); + } else { + return static_cast(ptr)->QIODevice::waitForBytesWritten(msecs); + } +} + +char QIODevice_WaitForReadyRead(void* ptr, int msecs) +{ + return static_cast(ptr)->waitForReadyRead(msecs); +} + +char QIODevice_WaitForReadyReadDefault(void* ptr, int msecs) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::waitForReadyRead(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::waitForReadyRead(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::waitForReadyRead(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::waitForReadyRead(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::waitForReadyRead(msecs); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::waitForReadyRead(msecs); + } else { + return static_cast(ptr)->QIODevice::waitForReadyRead(msecs); + } +} + +long long QIODevice_Write(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->write(const_cast(data), maxSize); +} + +long long QIODevice_Write2(void* ptr, char* data) +{ + return static_cast(ptr)->write(const_cast(data)); +} + +long long QIODevice_Write3(void* ptr, void* byteArray) +{ + return static_cast(ptr)->write(*static_cast(byteArray)); +} + +int QIODevice_WriteChannelCount(void* ptr) +{ + return static_cast(ptr)->writeChannelCount(); +} + +long long QIODevice_WriteData(void* ptr, char* data, long long maxSize) +{ + return static_cast(ptr)->writeData(const_cast(data), maxSize); +} + +void QIODevice_DestroyQIODevice(void* ptr) +{ + static_cast(ptr)->~QIODevice(); +} + +void QIODevice_DestroyQIODeviceDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQIdentityProxyModel: public QIdentityProxyModel +{ +public: + MyQIdentityProxyModel(QObject *parent = Q_NULLPTR) : QIdentityProxyModel(parent) {QIdentityProxyModel_QIdentityProxyModel_QRegisterMetaType();}; + int columnCount(const QModelIndex & parent) const { return callbackQIdentityProxyModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQIdentityProxyModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + QModelIndex mapFromSource(const QModelIndex & sourceIndex) const { return *static_cast(callbackQIdentityProxyModel_MapFromSource(const_cast(static_cast(this)), const_cast(&sourceIndex))); }; + QItemSelection mapSelectionFromSource(const QItemSelection & selection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionFromSource(const_cast(static_cast(this)), const_cast(&selection))); }; + QItemSelection mapSelectionToSource(const QItemSelection & selection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionToSource(const_cast(static_cast(this)), const_cast(&selection))); }; + QModelIndex mapToSource(const QModelIndex & proxyIndex) const { return *static_cast(callbackQIdentityProxyModel_MapToSource(const_cast(static_cast(this)), const_cast(&proxyIndex))); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QModelIndex parent(const QModelIndex & child) const { return *static_cast(callbackQIdentityProxyModel_Parent(const_cast(static_cast(this)), const_cast(&child))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + int rowCount(const QModelIndex & parent) const { return callbackQIdentityProxyModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void setSourceModel(QAbstractItemModel * newSourceModel) { callbackQAbstractProxyModel_SetSourceModel(this, newSourceModel); }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + ~MyQIdentityProxyModel() { callbackQIdentityProxyModel_DestroyQIdentityProxyModel(this); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant data(const QModelIndex & proxyIndex, int role) const { return *static_cast(callbackQAbstractProxyModel_Data(const_cast(static_cast(this)), const_cast(&proxyIndex), role)); }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & proxyIndex) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&proxyIndex))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractProxyModel_Revert(this); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + void Signal_SourceModelChanged() { callbackQAbstractProxyModel_SourceModelChanged(this); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + bool submit() { return callbackQAbstractProxyModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QIdentityProxyModel*) +Q_DECLARE_METATYPE(MyQIdentityProxyModel*) + +int QIdentityProxyModel_QIdentityProxyModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QIdentityProxyModel_NewQIdentityProxyModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQIdentityProxyModel(static_cast(parent)); + } else { + return new MyQIdentityProxyModel(static_cast(parent)); + } +} + +int QIdentityProxyModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QIdentityProxyModel_ColumnCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QIdentityProxyModel::columnCount(*static_cast(parent)); +} + +void* QIdentityProxyModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QIdentityProxyModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::index(row, column, *static_cast(parent))); +} + +void* QIdentityProxyModel_MapFromSource(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->mapFromSource(*static_cast(sourceIndex))); +} + +void* QIdentityProxyModel_MapFromSourceDefault(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::mapFromSource(*static_cast(sourceIndex))); +} + +void* QIdentityProxyModel_MapToSource(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->mapToSource(*static_cast(proxyIndex))); +} + +void* QIdentityProxyModel_MapToSourceDefault(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::mapToSource(*static_cast(proxyIndex))); +} + +void* QIdentityProxyModel_Parent(void* ptr, void* child) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(child))); +} + +void* QIdentityProxyModel_ParentDefault(void* ptr, void* child) +{ + return new QModelIndex(static_cast(ptr)->QIdentityProxyModel::parent(*static_cast(child))); +} + +int QIdentityProxyModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QIdentityProxyModel_RowCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QIdentityProxyModel::rowCount(*static_cast(parent)); +} + +void QIdentityProxyModel_DestroyQIdentityProxyModel(void* ptr) +{ + static_cast(ptr)->~QIdentityProxyModel(); +} + +void QIdentityProxyModel_DestroyQIdentityProxyModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QItemSelection*) +void* QItemSelection_NewQItemSelection() +{ + return new QItemSelection(); +} + +void* QItemSelection_NewQItemSelection2(void* topLeft, void* bottomRight) +{ + return new QItemSelection(*static_cast(topLeft), *static_cast(bottomRight)); +} + +char QItemSelection_Contains(void* ptr, void* index) +{ + return static_cast(ptr)->contains(*static_cast(index)); +} + +struct QtCore_PackedList QItemSelection_Indexes(void* ptr) +{ + return ({ QList* tmpValue5090cf = new QList(static_cast(ptr)->indexes()); QtCore_PackedList { tmpValue5090cf, tmpValue5090cf->size() }; }); +} + +void QItemSelection_Merge(void* ptr, void* other, long long command) +{ + static_cast(ptr)->merge(*static_cast(other), static_cast(command)); +} + +void QItemSelection_Select(void* ptr, void* topLeft, void* bottomRight) +{ + static_cast(ptr)->select(*static_cast(topLeft), *static_cast(bottomRight)); +} + +void QItemSelection_QItemSelection_Split(void* ran, void* other, void* result) +{ + QItemSelection::split(*static_cast(ran), *static_cast(other), static_cast(result)); +} + +void* QItemSelection___indexes_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QItemSelection___indexes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QItemSelection___indexes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQItemSelectionModel: public QItemSelectionModel +{ +public: + MyQItemSelectionModel(QAbstractItemModel *model = Q_NULLPTR) : QItemSelectionModel(model) {QItemSelectionModel_QItemSelectionModel_QRegisterMetaType();}; + MyQItemSelectionModel(QAbstractItemModel *model, QObject *parent) : QItemSelectionModel(model, parent) {QItemSelectionModel_QItemSelectionModel_QRegisterMetaType();}; + void clear() { callbackQItemSelectionModel_Clear(this); }; + void clearCurrentIndex() { callbackQItemSelectionModel_ClearCurrentIndex(this); }; + void clearSelection() { callbackQItemSelectionModel_ClearSelection(this); }; + void Signal_CurrentChanged(const QModelIndex & current, const QModelIndex & previous) { callbackQItemSelectionModel_CurrentChanged(this, const_cast(¤t), const_cast(&previous)); }; + void Signal_CurrentColumnChanged(const QModelIndex & current, const QModelIndex & previous) { callbackQItemSelectionModel_CurrentColumnChanged(this, const_cast(¤t), const_cast(&previous)); }; + void Signal_CurrentRowChanged(const QModelIndex & current, const QModelIndex & previous) { callbackQItemSelectionModel_CurrentRowChanged(this, const_cast(¤t), const_cast(&previous)); }; + void Signal_ModelChanged(QAbstractItemModel * model) { callbackQItemSelectionModel_ModelChanged(this, model); }; + void reset() { callbackQItemSelectionModel_Reset(this); }; + void select(const QModelIndex & index, QItemSelectionModel::SelectionFlags command) { callbackQItemSelectionModel_Select(this, const_cast(&index), command); }; + void select(const QItemSelection & selection, QItemSelectionModel::SelectionFlags command) { callbackQItemSelectionModel_Select2(this, const_cast(&selection), command); }; + void Signal_SelectionChanged(const QItemSelection & selected, const QItemSelection & deselected) { callbackQItemSelectionModel_SelectionChanged(this, const_cast(&selected), const_cast(&deselected)); }; + void setCurrentIndex(const QModelIndex & index, QItemSelectionModel::SelectionFlags command) { callbackQItemSelectionModel_SetCurrentIndex(this, const_cast(&index), command); }; + ~MyQItemSelectionModel() { callbackQItemSelectionModel_DestroyQItemSelectionModel(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QItemSelectionModel*) +Q_DECLARE_METATYPE(MyQItemSelectionModel*) + +int QItemSelectionModel_QItemSelectionModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QItemSelectionModel_NewQItemSelectionModel(void* model) +{ + return new MyQItemSelectionModel(static_cast(model)); +} + +void* QItemSelectionModel_NewQItemSelectionModel2(void* model, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } else { + return new MyQItemSelectionModel(static_cast(model), static_cast(parent)); + } +} + +void QItemSelectionModel_Clear(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "clear"); +} + +void QItemSelectionModel_ClearDefault(void* ptr) +{ + static_cast(ptr)->QItemSelectionModel::clear(); +} + +void QItemSelectionModel_ClearCurrentIndex(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "clearCurrentIndex"); +} + +void QItemSelectionModel_ClearCurrentIndexDefault(void* ptr) +{ + static_cast(ptr)->QItemSelectionModel::clearCurrentIndex(); +} + +void QItemSelectionModel_ClearSelection(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "clearSelection"); +} + +void QItemSelectionModel_ClearSelectionDefault(void* ptr) +{ + static_cast(ptr)->QItemSelectionModel::clearSelection(); +} + +char QItemSelectionModel_ColumnIntersectsSelection(void* ptr, int column, void* parent) +{ + return static_cast(ptr)->columnIntersectsSelection(column, *static_cast(parent)); +} + +void QItemSelectionModel_ConnectCurrentChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QItemSelectionModel::currentChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_CurrentChanged), static_cast(t)); +} + +void QItemSelectionModel_DisconnectCurrentChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QItemSelectionModel::currentChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_CurrentChanged)); +} + +void QItemSelectionModel_CurrentChanged(void* ptr, void* current, void* previous) +{ + static_cast(ptr)->currentChanged(*static_cast(current), *static_cast(previous)); +} + +void QItemSelectionModel_ConnectCurrentColumnChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QItemSelectionModel::currentColumnChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_CurrentColumnChanged), static_cast(t)); +} + +void QItemSelectionModel_DisconnectCurrentColumnChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QItemSelectionModel::currentColumnChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_CurrentColumnChanged)); +} + +void QItemSelectionModel_CurrentColumnChanged(void* ptr, void* current, void* previous) +{ + static_cast(ptr)->currentColumnChanged(*static_cast(current), *static_cast(previous)); +} + +void* QItemSelectionModel_CurrentIndex(void* ptr) +{ + return new QModelIndex(static_cast(ptr)->currentIndex()); +} + +void QItemSelectionModel_ConnectCurrentRowChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QItemSelectionModel::currentRowChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_CurrentRowChanged), static_cast(t)); +} + +void QItemSelectionModel_DisconnectCurrentRowChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QItemSelectionModel::currentRowChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_CurrentRowChanged)); +} + +void QItemSelectionModel_CurrentRowChanged(void* ptr, void* current, void* previous) +{ + static_cast(ptr)->currentRowChanged(*static_cast(current), *static_cast(previous)); +} + +void QItemSelectionModel_EmitSelectionChanged(void* ptr, void* newSelection, void* oldSelection) +{ + static_cast(ptr)->emitSelectionChanged(*static_cast(newSelection), *static_cast(oldSelection)); +} + +char QItemSelectionModel_HasSelection(void* ptr) +{ + return static_cast(ptr)->hasSelection(); +} + +char QItemSelectionModel_IsColumnSelected(void* ptr, int column, void* parent) +{ + return static_cast(ptr)->isColumnSelected(column, *static_cast(parent)); +} + +char QItemSelectionModel_IsRowSelected(void* ptr, int row, void* parent) +{ + return static_cast(ptr)->isRowSelected(row, *static_cast(parent)); +} + +char QItemSelectionModel_IsSelected(void* ptr, void* index) +{ + return static_cast(ptr)->isSelected(*static_cast(index)); +} + +void* QItemSelectionModel_Model(void* ptr) +{ + return const_cast(static_cast(ptr)->model()); +} + +void* QItemSelectionModel_Model2(void* ptr) +{ + return static_cast(ptr)->model(); +} + +void QItemSelectionModel_ConnectModelChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QItemSelectionModel::modelChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_ModelChanged), static_cast(t)); +} + +void QItemSelectionModel_DisconnectModelChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QItemSelectionModel::modelChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_ModelChanged)); +} + +void QItemSelectionModel_ModelChanged(void* ptr, void* model) +{ + static_cast(ptr)->modelChanged(static_cast(model)); +} + +void QItemSelectionModel_Reset(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "reset"); +} + +void QItemSelectionModel_ResetDefault(void* ptr) +{ + static_cast(ptr)->QItemSelectionModel::reset(); +} + +char QItemSelectionModel_RowIntersectsSelection(void* ptr, int row, void* parent) +{ + return static_cast(ptr)->rowIntersectsSelection(row, *static_cast(parent)); +} + +void QItemSelectionModel_Select(void* ptr, void* index, long long command) +{ + qRegisterMetaType(); + QMetaObject::invokeMethod(static_cast(ptr), "select", Q_ARG(const QModelIndex, *static_cast(index)), Q_ARG(QItemSelectionModel::SelectionFlags, static_cast(command))); +} + +void QItemSelectionModel_SelectDefault(void* ptr, void* index, long long command) +{ + static_cast(ptr)->QItemSelectionModel::select(*static_cast(index), static_cast(command)); +} + +void QItemSelectionModel_Select2(void* ptr, void* selection, long long command) +{ + qRegisterMetaType(); + QMetaObject::invokeMethod(static_cast(ptr), "select", Q_ARG(const QItemSelection, *static_cast(selection)), Q_ARG(QItemSelectionModel::SelectionFlags, static_cast(command))); +} + +void QItemSelectionModel_Select2Default(void* ptr, void* selection, long long command) +{ + static_cast(ptr)->QItemSelectionModel::select(*static_cast(selection), static_cast(command)); +} + +struct QtCore_PackedList QItemSelectionModel_SelectedColumns(void* ptr, int row) +{ + return ({ QList* tmpValue9dab4f = new QList(static_cast(ptr)->selectedColumns(row)); QtCore_PackedList { tmpValue9dab4f, tmpValue9dab4f->size() }; }); +} + +struct QtCore_PackedList QItemSelectionModel_SelectedIndexes(void* ptr) +{ + return ({ QList* tmpValue1476df = new QList(static_cast(ptr)->selectedIndexes()); QtCore_PackedList { tmpValue1476df, tmpValue1476df->size() }; }); +} + +struct QtCore_PackedList QItemSelectionModel_SelectedRows(void* ptr, int column) +{ + return ({ QList* tmpValueedb157 = new QList(static_cast(ptr)->selectedRows(column)); QtCore_PackedList { tmpValueedb157, tmpValueedb157->size() }; }); +} + +void* QItemSelectionModel_Selection(void* ptr) +{ + return new QItemSelection(static_cast(ptr)->selection()); +} + +void QItemSelectionModel_ConnectSelectionChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QItemSelectionModel::selectionChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_SelectionChanged), static_cast(t)); +} + +void QItemSelectionModel_DisconnectSelectionChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QItemSelectionModel::selectionChanged), static_cast(ptr), static_cast(&MyQItemSelectionModel::Signal_SelectionChanged)); +} + +void QItemSelectionModel_SelectionChanged(void* ptr, void* selected, void* deselected) +{ + static_cast(ptr)->selectionChanged(*static_cast(selected), *static_cast(deselected)); +} + +void QItemSelectionModel_SetCurrentIndex(void* ptr, void* index, long long command) +{ + qRegisterMetaType(); + QMetaObject::invokeMethod(static_cast(ptr), "setCurrentIndex", Q_ARG(const QModelIndex, *static_cast(index)), Q_ARG(QItemSelectionModel::SelectionFlags, static_cast(command))); +} + +void QItemSelectionModel_SetCurrentIndexDefault(void* ptr, void* index, long long command) +{ + static_cast(ptr)->QItemSelectionModel::setCurrentIndex(*static_cast(index), static_cast(command)); +} + +void QItemSelectionModel_SetModel(void* ptr, void* model) +{ + static_cast(ptr)->setModel(static_cast(model)); +} + +void QItemSelectionModel_DestroyQItemSelectionModel(void* ptr) +{ + static_cast(ptr)->~QItemSelectionModel(); +} + +void QItemSelectionModel_DestroyQItemSelectionModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QItemSelectionModel___selectedColumns_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QItemSelectionModel___selectedColumns_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QItemSelectionModel___selectedColumns_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QItemSelectionModel___selectedIndexes_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QItemSelectionModel___selectedIndexes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QItemSelectionModel___selectedIndexes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QItemSelectionModel___selectedRows_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QItemSelectionModel___selectedRows_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QItemSelectionModel___selectedRows_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QItemSelectionRange*) +void* QItemSelectionRange_NewQItemSelectionRange() +{ + return new QItemSelectionRange(); +} + +void* QItemSelectionRange_NewQItemSelectionRange2(void* other) +{ + return new QItemSelectionRange(*static_cast(other)); +} + +void* QItemSelectionRange_NewQItemSelectionRange4(void* topLeft, void* bottomRight) +{ + return new QItemSelectionRange(*static_cast(topLeft), *static_cast(bottomRight)); +} + +void* QItemSelectionRange_NewQItemSelectionRange5(void* index) +{ + return new QItemSelectionRange(*static_cast(index)); +} + +int QItemSelectionRange_Bottom(void* ptr) +{ + return static_cast(ptr)->bottom(); +} + +void* QItemSelectionRange_BottomRight(void* ptr) +{ + return const_cast(&static_cast(ptr)->bottomRight()); +} + +char QItemSelectionRange_Contains(void* ptr, void* index) +{ + return static_cast(ptr)->contains(*static_cast(index)); +} + +char QItemSelectionRange_Contains2(void* ptr, int row, int column, void* parentIndex) +{ + return static_cast(ptr)->contains(row, column, *static_cast(parentIndex)); +} + +int QItemSelectionRange_Height(void* ptr) +{ + return static_cast(ptr)->height(); +} + +struct QtCore_PackedList QItemSelectionRange_Indexes(void* ptr) +{ + return ({ QList* tmpValuecb2327 = new QList(static_cast(ptr)->indexes()); QtCore_PackedList { tmpValuecb2327, tmpValuecb2327->size() }; }); +} + +void* QItemSelectionRange_Intersected(void* ptr, void* other) +{ + return new QItemSelectionRange(static_cast(ptr)->intersected(*static_cast(other))); +} + +char QItemSelectionRange_Intersects(void* ptr, void* other) +{ + return static_cast(ptr)->intersects(*static_cast(other)); +} + +char QItemSelectionRange_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QItemSelectionRange_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QItemSelectionRange_Left(void* ptr) +{ + return static_cast(ptr)->left(); +} + +void* QItemSelectionRange_Model(void* ptr) +{ + return const_cast(static_cast(ptr)->model()); +} + +void* QItemSelectionRange_Parent(void* ptr) +{ + return new QModelIndex(static_cast(ptr)->parent()); +} + +int QItemSelectionRange_Right(void* ptr) +{ + return static_cast(ptr)->right(); +} + +void QItemSelectionRange_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +int QItemSelectionRange_Top(void* ptr) +{ + return static_cast(ptr)->top(); +} + +void* QItemSelectionRange_TopLeft(void* ptr) +{ + return const_cast(&static_cast(ptr)->topLeft()); +} + +int QItemSelectionRange_Width(void* ptr) +{ + return static_cast(ptr)->width(); +} + +void* QItemSelectionRange___indexes_atList(void* ptr, int i) +{ + return new QModelIndex(({QModelIndex tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QItemSelectionRange___indexes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QItemSelectionRange___indexes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QJsonArray) +Q_DECLARE_METATYPE(QJsonArray*) +void* QJsonArray_NewQJsonArray() +{ + return new QJsonArray(); +} + +void* QJsonArray_NewQJsonArray3(void* other) +{ + return new QJsonArray(*static_cast(other)); +} + +void* QJsonArray_NewQJsonArray4(void* other) +{ + return new QJsonArray(*static_cast(other)); +} + +void QJsonArray_Append(void* ptr, void* value) +{ + static_cast(ptr)->append(*static_cast(value)); +} + +void* QJsonArray_At(void* ptr, int i) +{ + return new QJsonValue(static_cast(ptr)->at(i)); +} + +char QJsonArray_Contains(void* ptr, void* value) +{ + return static_cast(ptr)->contains(*static_cast(value)); +} + +int QJsonArray_Count(void* ptr) +{ + return static_cast(ptr)->count(); +} + +char QJsonArray_Empty(void* ptr) +{ + return static_cast(ptr)->empty(); +} + +void* QJsonArray_First(void* ptr) +{ + return new QJsonValue(static_cast(ptr)->first()); +} + +void* QJsonArray_QJsonArray_FromStringList(struct QtCore_PackedString list) +{ + return new QJsonArray(QJsonArray::fromStringList(QString::fromUtf8(list.data, list.len).split("¡¦!", QString::SkipEmptyParts))); +} + +void* QJsonArray_QJsonArray_FromVariantList(void* list) +{ + return new QJsonArray(QJsonArray::fromVariantList(({ QList* tmpP = static_cast*>(list); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }))); +} + +void QJsonArray_Insert(void* ptr, int i, void* value) +{ + static_cast(ptr)->insert(i, *static_cast(value)); +} + +char QJsonArray_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +void* QJsonArray_Last(void* ptr) +{ + return new QJsonValue(static_cast(ptr)->last()); +} + +void QJsonArray_Pop_back(void* ptr) +{ + static_cast(ptr)->pop_back(); +} + +void QJsonArray_Pop_front(void* ptr) +{ + static_cast(ptr)->pop_front(); +} + +void QJsonArray_Prepend(void* ptr, void* value) +{ + static_cast(ptr)->prepend(*static_cast(value)); +} + +void QJsonArray_Push_back(void* ptr, void* value) +{ + static_cast(ptr)->push_back(*static_cast(value)); +} + +void QJsonArray_Push_front(void* ptr, void* value) +{ + static_cast(ptr)->push_front(*static_cast(value)); +} + +void QJsonArray_RemoveAt(void* ptr, int i) +{ + static_cast(ptr)->removeAt(i); +} + +void QJsonArray_RemoveFirst(void* ptr) +{ + static_cast(ptr)->removeFirst(); +} + +void QJsonArray_RemoveLast(void* ptr) +{ + static_cast(ptr)->removeLast(); +} + +void QJsonArray_Replace(void* ptr, int i, void* value) +{ + static_cast(ptr)->replace(i, *static_cast(value)); +} + +int QJsonArray_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +void QJsonArray_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QJsonArray_TakeAt(void* ptr, int i) +{ + return new QJsonValue(static_cast(ptr)->takeAt(i)); +} + +struct QtCore_PackedList QJsonArray_ToVariantList(void* ptr) +{ + return ({ QList* tmpValue10940c = new QList(static_cast(ptr)->toVariantList()); QtCore_PackedList { tmpValue10940c, tmpValue10940c->size() }; }); +} + +void QJsonArray_DestroyQJsonArray(void* ptr) +{ + static_cast(ptr)->~QJsonArray(); +} + +void* QJsonArray___fromVariantList_list_atList(void* ptr, int i) +{ + return new QVariant(({QVariant tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QJsonArray___fromVariantList_list_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QJsonArray___fromVariantList_list_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QJsonArray___toVariantList_atList(void* ptr, int i) +{ + return new QVariant(({QVariant tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QJsonArray___toVariantList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QJsonArray___toVariantList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QJsonDocument) +Q_DECLARE_METATYPE(QJsonDocument*) +void* QJsonDocument_NewQJsonDocument() +{ + return new QJsonDocument(); +} + +void* QJsonDocument_NewQJsonDocument2(void* object) +{ + return new QJsonDocument(*static_cast(object)); +} + +void* QJsonDocument_NewQJsonDocument3(void* array) +{ + return new QJsonDocument(*static_cast(array)); +} + +void* QJsonDocument_NewQJsonDocument4(void* other) +{ + return new QJsonDocument(*static_cast(other)); +} + +void* QJsonDocument_NewQJsonDocument5(void* other) +{ + return new QJsonDocument(*static_cast(other)); +} + +void* QJsonDocument_Array(void* ptr) +{ + return new QJsonArray(static_cast(ptr)->array()); +} + +void* QJsonDocument_QJsonDocument_FromBinaryData(void* data, long long validation) +{ + return new QJsonDocument(QJsonDocument::fromBinaryData(*static_cast(data), static_cast(validation))); +} + +void* QJsonDocument_QJsonDocument_FromJson(void* json, void* error) +{ + return new QJsonDocument(QJsonDocument::fromJson(*static_cast(json), static_cast(error))); +} + +void* QJsonDocument_QJsonDocument_FromRawData(char* data, int size, long long validation) +{ + return new QJsonDocument(QJsonDocument::fromRawData(const_cast(data), size, static_cast(validation))); +} + +void* QJsonDocument_QJsonDocument_FromVariant(void* variant) +{ + return new QJsonDocument(QJsonDocument::fromVariant(*static_cast(variant))); +} + +char QJsonDocument_IsArray(void* ptr) +{ + return static_cast(ptr)->isArray(); +} + +char QJsonDocument_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QJsonDocument_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QJsonDocument_IsObject(void* ptr) +{ + return static_cast(ptr)->isObject(); +} + +void* QJsonDocument_Object(void* ptr) +{ + return new QJsonObject(static_cast(ptr)->object()); +} + +struct QtCore_PackedString QJsonDocument_RawData(void* ptr, int size) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->rawData(&size)), size, NULL }; +} + +void QJsonDocument_SetArray(void* ptr, void* array) +{ + static_cast(ptr)->setArray(*static_cast(array)); +} + +void QJsonDocument_SetObject(void* ptr, void* object) +{ + static_cast(ptr)->setObject(*static_cast(object)); +} + +void QJsonDocument_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QJsonDocument_ToBinaryData(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toBinaryData()); +} + +void* QJsonDocument_ToJson(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toJson()); +} + +void* QJsonDocument_ToJson2(void* ptr, long long format) +{ + return new QByteArray(static_cast(ptr)->toJson(static_cast(format))); +} + +void* QJsonDocument_ToVariant(void* ptr) +{ + return new QVariant(static_cast(ptr)->toVariant()); +} + +void QJsonDocument_DestroyQJsonDocument(void* ptr) +{ + static_cast(ptr)->~QJsonDocument(); +} + +Q_DECLARE_METATYPE(QJsonObject) +Q_DECLARE_METATYPE(QJsonObject*) +void* QJsonObject_NewQJsonObject() +{ + return new QJsonObject(); +} + +void* QJsonObject_NewQJsonObject3(void* other) +{ + return new QJsonObject(*static_cast(other)); +} + +void* QJsonObject_NewQJsonObject4(void* other) +{ + return new QJsonObject(*static_cast(other)); +} + +char QJsonObject_Contains(void* ptr, struct QtCore_PackedString key) +{ + return static_cast(ptr)->contains(QString::fromUtf8(key.data, key.len)); +} + +char QJsonObject_Contains2(void* ptr, void* key) +{ + return static_cast(ptr)->contains(*static_cast(key)); +} + +int QJsonObject_Count(void* ptr) +{ + return static_cast(ptr)->count(); +} + +char QJsonObject_Empty(void* ptr) +{ + return static_cast(ptr)->empty(); +} + +void* QJsonObject_QJsonObject_FromVariantHash(void* hash) +{ + return new QJsonObject(QJsonObject::fromVariantHash(({ QHash* tmpP = static_cast*>(hash); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }))); +} + +char QJsonObject_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +struct QtCore_PackedString QJsonObject_Keys(void* ptr) +{ + return ({ QByteArray* t6c6b45 = new QByteArray(static_cast(ptr)->keys().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t6c6b45->prepend("WHITESPACE").constData()+10), t6c6b45->size()-10, t6c6b45 }; }); +} + +int QJsonObject_Length(void* ptr) +{ + return static_cast(ptr)->length(); +} + +void QJsonObject_Remove(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->remove(QString::fromUtf8(key.data, key.len)); +} + +int QJsonObject_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +void QJsonObject_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QJsonObject_Take(void* ptr, struct QtCore_PackedString key) +{ + return new QJsonValue(static_cast(ptr)->take(QString::fromUtf8(key.data, key.len))); +} + +struct QtCore_PackedList QJsonObject_ToVariantHash(void* ptr) +{ + return ({ QHash* tmpValue275a06 = new QHash(static_cast(ptr)->toVariantHash()); QtCore_PackedList { tmpValue275a06, tmpValue275a06->size() }; }); +} + +struct QtCore_PackedList QJsonObject_ToVariantMap(void* ptr) +{ + return ({ QMap* tmpValuebc2a1c = new QMap(static_cast(ptr)->toVariantMap()); QtCore_PackedList { tmpValuebc2a1c, tmpValuebc2a1c->size() }; }); +} + +void* QJsonObject_Value(void* ptr, struct QtCore_PackedString key) +{ + return new QJsonValue(static_cast(ptr)->value(QString::fromUtf8(key.data, key.len))); +} + +void* QJsonObject_Value2(void* ptr, void* key) +{ + return new QJsonValue(static_cast(ptr)->value(*static_cast(key))); +} + +void QJsonObject_DestroyQJsonObject(void* ptr) +{ + static_cast(ptr)->~QJsonObject(); +} + +void* QJsonObject___fromVariantHash_hash_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QJsonObject___fromVariantHash_hash_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QJsonObject___fromVariantHash_hash_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QJsonObject___fromVariantHash_hash_keyList(void* ptr) +{ + return ({ QList* tmpValuef43bc5 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValuef43bc5, tmpValuef43bc5->size() }; }); +} + +void* QJsonObject___toVariantHash_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QJsonObject___toVariantHash_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QJsonObject___toVariantHash_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QJsonObject___toVariantHash_keyList(void* ptr) +{ + return ({ QList* tmpValuef43bc5 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValuef43bc5, tmpValuef43bc5->size() }; }); +} + +void* QJsonObject___toVariantMap_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QJsonObject___toVariantMap_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QJsonObject___toVariantMap_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtCore_PackedList QJsonObject___toVariantMap_keyList(void* ptr) +{ + return ({ QList* tmpValue1ab909 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue1ab909, tmpValue1ab909->size() }; }); +} + +struct QtCore_PackedString QJsonObject_____fromVariantHash_hash_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QJsonObject_____fromVariantHash_hash_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QJsonObject_____fromVariantHash_hash_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QJsonObject_____fromVariantMap_map_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QJsonObject_____fromVariantMap_map_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QJsonObject_____fromVariantMap_map_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QJsonObject_____toVariantHash_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QJsonObject_____toVariantHash_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QJsonObject_____toVariantHash_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QJsonObject_____toVariantMap_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QJsonObject_____toVariantMap_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QJsonObject_____toVariantMap_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QJsonParseError_ErrorString(void* ptr) +{ + return ({ QByteArray* t740a50 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t740a50->prepend("WHITESPACE").constData()+10), t740a50->size()-10, t740a50 }; }); +} + +int QJsonParseError_Offset(void* ptr) +{ + return static_cast(ptr)->offset; +} + +void QJsonParseError_SetOffset(void* ptr, int vin) +{ + static_cast(ptr)->offset = vin; +} + +long long QJsonParseError_Error(void* ptr) +{ + return static_cast(ptr)->error; +} + +void QJsonParseError_SetError(void* ptr, long long vqj) +{ + static_cast(ptr)->error = static_cast(vqj); +} + +Q_DECLARE_METATYPE(QJsonValue*) +void* QJsonValue_NewQJsonValue(long long ty) +{ + return new QJsonValue(static_cast(ty)); +} + +void* QJsonValue_NewQJsonValue2(char b) +{ + return new QJsonValue(b != 0); +} + +void* QJsonValue_NewQJsonValue3(double n) +{ + return new QJsonValue(n); +} + +void* QJsonValue_NewQJsonValue4(int n) +{ + return new QJsonValue(n); +} + +void* QJsonValue_NewQJsonValue5(long long n) +{ + return new QJsonValue(n); +} + +void* QJsonValue_NewQJsonValue6(struct QtCore_PackedString s) +{ + return new QJsonValue(QString::fromUtf8(s.data, s.len)); +} + +void* QJsonValue_NewQJsonValue7(void* s) +{ + return new QJsonValue(*static_cast(s)); +} + +void* QJsonValue_NewQJsonValue8(char* s) +{ + return new QJsonValue(const_cast(s)); +} + +void* QJsonValue_NewQJsonValue9(void* a) +{ + return new QJsonValue(*static_cast(a)); +} + +void* QJsonValue_NewQJsonValue10(void* o) +{ + return new QJsonValue(*static_cast(o)); +} + +void* QJsonValue_NewQJsonValue11(void* other) +{ + return new QJsonValue(*static_cast(other)); +} + +void* QJsonValue_NewQJsonValue12(void* other) +{ + return new QJsonValue(*static_cast(other)); +} + +void* QJsonValue_QJsonValue_FromVariant(void* variant) +{ + return new QJsonValue(QJsonValue::fromVariant(*static_cast(variant))); +} + +char QJsonValue_IsArray(void* ptr) +{ + return static_cast(ptr)->isArray(); +} + +char QJsonValue_IsBool(void* ptr) +{ + return static_cast(ptr)->isBool(); +} + +char QJsonValue_IsDouble(void* ptr) +{ + return static_cast(ptr)->isDouble(); +} + +char QJsonValue_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QJsonValue_IsObject(void* ptr) +{ + return static_cast(ptr)->isObject(); +} + +char QJsonValue_IsString(void* ptr) +{ + return static_cast(ptr)->isString(); +} + +char QJsonValue_IsUndefined(void* ptr) +{ + return static_cast(ptr)->isUndefined(); +} + +void QJsonValue_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QJsonValue_ToArray(void* ptr, void* defaultValue) +{ + return new QJsonArray(static_cast(ptr)->toArray(*static_cast(defaultValue))); +} + +void* QJsonValue_ToArray2(void* ptr) +{ + return new QJsonArray(static_cast(ptr)->toArray()); +} + +char QJsonValue_ToBool(void* ptr, char defaultValue) +{ + return static_cast(ptr)->toBool(defaultValue != 0); +} + +double QJsonValue_ToDouble(void* ptr, double defaultValue) +{ + return static_cast(ptr)->toDouble(defaultValue); +} + +int QJsonValue_ToInt(void* ptr, int defaultValue) +{ + return static_cast(ptr)->toInt(defaultValue); +} + +void* QJsonValue_ToObject(void* ptr, void* defaultValue) +{ + return new QJsonObject(static_cast(ptr)->toObject(*static_cast(defaultValue))); +} + +void* QJsonValue_ToObject2(void* ptr) +{ + return new QJsonObject(static_cast(ptr)->toObject()); +} + +struct QtCore_PackedString QJsonValue_ToString(void* ptr) +{ + return ({ QByteArray* t54cc8a = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(t54cc8a->prepend("WHITESPACE").constData()+10), t54cc8a->size()-10, t54cc8a }; }); +} + +struct QtCore_PackedString QJsonValue_ToString2(void* ptr, struct QtCore_PackedString defaultValue) +{ + return ({ QByteArray* tb25a8c = new QByteArray(static_cast(ptr)->toString(QString::fromUtf8(defaultValue.data, defaultValue.len)).toUtf8()); QtCore_PackedString { const_cast(tb25a8c->prepend("WHITESPACE").constData()+10), tb25a8c->size()-10, tb25a8c }; }); +} + +void* QJsonValue_ToVariant(void* ptr) +{ + return new QVariant(static_cast(ptr)->toVariant()); +} + +long long QJsonValue_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +void QJsonValue_DestroyQJsonValue(void* ptr) +{ + static_cast(ptr)->~QJsonValue(); +} + +Q_DECLARE_METATYPE(QLatin1Char*) +void* QLatin1Char_NewQLatin1Char(char* c) +{ + return new QLatin1Char(*c); +} + +struct QtCore_PackedString QLatin1Char_ToLatin1(void* ptr) +{ + return ({ char te73025 = static_cast(ptr)->toLatin1(); QtCore_PackedString { &te73025, -1, NULL }; }); +} + +unsigned short QLatin1Char_Unicode(void* ptr) +{ + return static_cast(ptr)->unicode(); +} + +Q_DECLARE_METATYPE(QLatin1String) +Q_DECLARE_METATYPE(QLatin1String*) +void* QLatin1String_NewQLatin1String() +{ + return new QLatin1String(); +} + +void* QLatin1String_NewQLatin1String2(char* str) +{ + return new QLatin1String(const_cast(str)); +} + +void* QLatin1String_NewQLatin1String3(char* first, char* last) +{ + return new QLatin1String(const_cast(first), const_cast(last)); +} + +void* QLatin1String_NewQLatin1String4(char* str, int size) +{ + return new QLatin1String(const_cast(str), size); +} + +void* QLatin1String_NewQLatin1String5(void* str) +{ + return new QLatin1String(*static_cast(str)); +} + +void QLatin1String_Chop(void* ptr, int length) +{ + static_cast(ptr)->chop(length); +} + +void* QLatin1String_Chopped(void* ptr, int length) +{ + return new QLatin1String(static_cast(ptr)->chopped(length)); +} + +struct QtCore_PackedString QLatin1String_Data(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->data()), static_cast(ptr)->size(), NULL }; +} + +char QLatin1String_EndsWith(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(str), static_cast(cs)); +} + +char QLatin1String_EndsWith2(void* ptr, void* l1, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(l1), static_cast(cs)); +} + +char QLatin1String_EndsWith3(void* ptr, void* ch) +{ + return static_cast(ptr)->endsWith(*static_cast(ch)); +} + +char QLatin1String_EndsWith4(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(ch), static_cast(cs)); +} + +char QLatin1String_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QLatin1String_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +struct QtCore_PackedString QLatin1String_Latin1(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->latin1()), -1, NULL }; +} + +void* QLatin1String_Left(void* ptr, int length) +{ + return new QLatin1String(static_cast(ptr)->left(length)); +} + +void* QLatin1String_Mid(void* ptr, int start) +{ + return new QLatin1String(static_cast(ptr)->mid(start)); +} + +void* QLatin1String_Mid2(void* ptr, int start, int length) +{ + return new QLatin1String(static_cast(ptr)->mid(start, length)); +} + +void* QLatin1String_Right(void* ptr, int length) +{ + return new QLatin1String(static_cast(ptr)->right(length)); +} + +int QLatin1String_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +char QLatin1String_StartsWith(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(str), static_cast(cs)); +} + +char QLatin1String_StartsWith2(void* ptr, void* l1, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(l1), static_cast(cs)); +} + +char QLatin1String_StartsWith3(void* ptr, void* ch) +{ + return static_cast(ptr)->startsWith(*static_cast(ch)); +} + +char QLatin1String_StartsWith4(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(ch), static_cast(cs)); +} + +void* QLatin1String_Trimmed(void* ptr) +{ + return new QLatin1String(static_cast(ptr)->trimmed()); +} + +void QLatin1String_Truncate(void* ptr, int length) +{ + static_cast(ptr)->truncate(length); +} + +class MyQLibrary: public QLibrary +{ +public: + MyQLibrary(QObject *parent = Q_NULLPTR) : QLibrary(parent) {QLibrary_QLibrary_QRegisterMetaType();}; + MyQLibrary(const QString &fileName, QObject *parent = Q_NULLPTR) : QLibrary(fileName, parent) {QLibrary_QLibrary_QRegisterMetaType();}; + MyQLibrary(const QString &fileName, int verNum, QObject *parent = Q_NULLPTR) : QLibrary(fileName, verNum, parent) {QLibrary_QLibrary_QRegisterMetaType();}; + MyQLibrary(const QString &fileName, const QString &version, QObject *parent = Q_NULLPTR) : QLibrary(fileName, version, parent) {QLibrary_QLibrary_QRegisterMetaType();}; + ~MyQLibrary() { callbackQLibrary_DestroyQLibrary(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QLibrary*) +Q_DECLARE_METATYPE(MyQLibrary*) + +int QLibrary_QLibrary_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QLibrary_NewQLibrary(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(static_cast(parent)); + } else { + return new MyQLibrary(static_cast(parent)); + } +} + +void* QLibrary_NewQLibrary2(struct QtCore_PackedString fileName, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } +} + +void* QLibrary_NewQLibrary3(struct QtCore_PackedString fileName, int verNum, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } else { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), verNum, static_cast(parent)); + } +} + +void* QLibrary_NewQLibrary4(struct QtCore_PackedString fileName, struct QtCore_PackedString version, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } else { + return new MyQLibrary(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), static_cast(parent)); + } +} + +struct QtCore_PackedString QLibrary_ErrorString(void* ptr) +{ + return ({ QByteArray* te92b99 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(te92b99->prepend("WHITESPACE").constData()+10), te92b99->size()-10, te92b99 }; }); +} + +struct QtCore_PackedString QLibrary_FileName(void* ptr) +{ + return ({ QByteArray* t11b574 = new QByteArray(static_cast(ptr)->fileName().toUtf8()); QtCore_PackedString { const_cast(t11b574->prepend("WHITESPACE").constData()+10), t11b574->size()-10, t11b574 }; }); +} + +char QLibrary_QLibrary_IsLibrary(struct QtCore_PackedString fileName) +{ + return QLibrary::isLibrary(QString::fromUtf8(fileName.data, fileName.len)); +} + +char QLibrary_IsLoaded(void* ptr) +{ + return static_cast(ptr)->isLoaded(); +} + +char QLibrary_Load(void* ptr) +{ + return static_cast(ptr)->load(); +} + +long long QLibrary_LoadHints(void* ptr) +{ + return static_cast(ptr)->loadHints(); +} + +void* QLibrary_Resolve(void* ptr, char* symbol) +{ + return reinterpret_cast(static_cast(ptr)->resolve(const_cast(symbol))); +} + +void* QLibrary_QLibrary_Resolve2(struct QtCore_PackedString fileName, char* symbol) +{ + return reinterpret_cast(QLibrary::resolve(QString::fromUtf8(fileName.data, fileName.len), const_cast(symbol))); +} + +void* QLibrary_QLibrary_Resolve3(struct QtCore_PackedString fileName, int verNum, char* symbol) +{ + return reinterpret_cast(QLibrary::resolve(QString::fromUtf8(fileName.data, fileName.len), verNum, const_cast(symbol))); +} + +void* QLibrary_QLibrary_Resolve4(struct QtCore_PackedString fileName, struct QtCore_PackedString version, char* symbol) +{ + return reinterpret_cast(QLibrary::resolve(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len), const_cast(symbol))); +} + +void QLibrary_SetFileName(void* ptr, struct QtCore_PackedString fileName) +{ + static_cast(ptr)->setFileName(QString::fromUtf8(fileName.data, fileName.len)); +} + +void QLibrary_SetFileNameAndVersion(void* ptr, struct QtCore_PackedString fileName, int versionNumber) +{ + static_cast(ptr)->setFileNameAndVersion(QString::fromUtf8(fileName.data, fileName.len), versionNumber); +} + +void QLibrary_SetFileNameAndVersion2(void* ptr, struct QtCore_PackedString fileName, struct QtCore_PackedString version) +{ + static_cast(ptr)->setFileNameAndVersion(QString::fromUtf8(fileName.data, fileName.len), QString::fromUtf8(version.data, version.len)); +} + +void QLibrary_SetLoadHints(void* ptr, long long hints) +{ + static_cast(ptr)->setLoadHints(static_cast(hints)); +} + +char QLibrary_Unload(void* ptr) +{ + return static_cast(ptr)->unload(); +} + +void QLibrary_DestroyQLibrary(void* ptr) +{ + static_cast(ptr)->~QLibrary(); +} + +void QLibrary_DestroyQLibraryDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +char QLibraryInfo_QLibraryInfo_IsDebugBuild() +{ + return QLibraryInfo::isDebugBuild(); +} + +struct QtCore_PackedString QLibraryInfo_QLibraryInfo_Location(long long loc) +{ + return ({ QByteArray* t19b89f = new QByteArray(QLibraryInfo::location(static_cast(loc)).toUtf8()); QtCore_PackedString { const_cast(t19b89f->prepend("WHITESPACE").constData()+10), t19b89f->size()-10, t19b89f }; }); +} + +void* QLibraryInfo_QLibraryInfo_Version() +{ + return new QVersionNumber(QLibraryInfo::version()); +} + +Q_DECLARE_METATYPE(QLine) +Q_DECLARE_METATYPE(QLine*) +void* QLine_NewQLine() +{ + return new QLine(); +} + +void* QLine_NewQLine2(void* p1, void* p2) +{ + return new QLine(*static_cast(p1), *static_cast(p2)); +} + +void* QLine_NewQLine3(int x1, int y1, int x2, int y2) +{ + return new QLine(x1, y1, x2, y2); +} + +void* QLine_Center(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->center(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +int QLine_Dx(void* ptr) +{ + return static_cast(ptr)->dx(); +} + +int QLine_Dy(void* ptr) +{ + return static_cast(ptr)->dy(); +} + +char QLine_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +void* QLine_P1(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->p1(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void* QLine_P2(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->p2(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void QLine_SetLine(void* ptr, int x1, int y1, int x2, int y2) +{ + static_cast(ptr)->setLine(x1, y1, x2, y2); +} + +void QLine_SetP1(void* ptr, void* p1) +{ + static_cast(ptr)->setP1(*static_cast(p1)); +} + +void QLine_SetP2(void* ptr, void* p2) +{ + static_cast(ptr)->setP2(*static_cast(p2)); +} + +void QLine_SetPoints(void* ptr, void* p1, void* p2) +{ + static_cast(ptr)->setPoints(*static_cast(p1), *static_cast(p2)); +} + +void QLine_Translate(void* ptr, void* offset) +{ + static_cast(ptr)->translate(*static_cast(offset)); +} + +void QLine_Translate2(void* ptr, int dx, int dy) +{ + static_cast(ptr)->translate(dx, dy); +} + +void* QLine_Translated(void* ptr, void* offset) +{ + return ({ QLine tmpValue = static_cast(ptr)->translated(*static_cast(offset)); new QLine(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QLine_Translated2(void* ptr, int dx, int dy) +{ + return ({ QLine tmpValue = static_cast(ptr)->translated(dx, dy); new QLine(tmpValue.p1(), tmpValue.p2()); }); +} + +int QLine_X1(void* ptr) +{ + return static_cast(ptr)->x1(); +} + +int QLine_X2(void* ptr) +{ + return static_cast(ptr)->x2(); +} + +int QLine_Y1(void* ptr) +{ + return static_cast(ptr)->y1(); +} + +int QLine_Y2(void* ptr) +{ + return static_cast(ptr)->y2(); +} + +Q_DECLARE_METATYPE(QLineF) +Q_DECLARE_METATYPE(QLineF*) +void* QLineF_NewQLineF() +{ + return new QLineF(); +} + +void* QLineF_NewQLineF2(void* p1, void* p2) +{ + return new QLineF(*static_cast(p1), *static_cast(p2)); +} + +void* QLineF_NewQLineF3(double x1, double y1, double x2, double y2) +{ + return new QLineF(x1, y1, x2, y2); +} + +void* QLineF_NewQLineF4(void* line) +{ + return new QLineF(*static_cast(line)); +} + +double QLineF_Angle(void* ptr) +{ + return static_cast(ptr)->angle(); +} + +double QLineF_AngleTo(void* ptr, void* line) +{ + return static_cast(ptr)->angleTo(*static_cast(line)); +} + +void* QLineF_Center(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->center(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +double QLineF_Dx(void* ptr) +{ + return static_cast(ptr)->dx(); +} + +double QLineF_Dy(void* ptr) +{ + return static_cast(ptr)->dy(); +} + +void* QLineF_QLineF_FromPolar(double length, double angle) +{ + return ({ QLineF tmpValue = QLineF::fromPolar(length, angle); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +long long QLineF_Intersect(void* ptr, void* line, void* intersectionPoint) +{ + return static_cast(ptr)->intersect(*static_cast(line), static_cast(intersectionPoint)); +} + +char QLineF_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +double QLineF_Length(void* ptr) +{ + return static_cast(ptr)->length(); +} + +void* QLineF_NormalVector(void* ptr) +{ + return ({ QLineF tmpValue = static_cast(ptr)->normalVector(); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QLineF_P1(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->p1(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QLineF_P2(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->p2(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QLineF_PointAt(void* ptr, double t) +{ + return ({ QPointF tmpValue = static_cast(ptr)->pointAt(t); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void QLineF_SetAngle(void* ptr, double angle) +{ + static_cast(ptr)->setAngle(angle); +} + +void QLineF_SetLength(void* ptr, double length) +{ + static_cast(ptr)->setLength(length); +} + +void QLineF_SetLine(void* ptr, double x1, double y1, double x2, double y2) +{ + static_cast(ptr)->setLine(x1, y1, x2, y2); +} + +void QLineF_SetP1(void* ptr, void* p1) +{ + static_cast(ptr)->setP1(*static_cast(p1)); +} + +void QLineF_SetP2(void* ptr, void* p2) +{ + static_cast(ptr)->setP2(*static_cast(p2)); +} + +void QLineF_SetPoints(void* ptr, void* p1, void* p2) +{ + static_cast(ptr)->setPoints(*static_cast(p1), *static_cast(p2)); +} + +void* QLineF_ToLine(void* ptr) +{ + return ({ QLine tmpValue = static_cast(ptr)->toLine(); new QLine(tmpValue.p1(), tmpValue.p2()); }); +} + +void QLineF_Translate(void* ptr, void* offset) +{ + static_cast(ptr)->translate(*static_cast(offset)); +} + +void QLineF_Translate2(void* ptr, double dx, double dy) +{ + static_cast(ptr)->translate(dx, dy); +} + +void* QLineF_Translated(void* ptr, void* offset) +{ + return ({ QLineF tmpValue = static_cast(ptr)->translated(*static_cast(offset)); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QLineF_Translated2(void* ptr, double dx, double dy) +{ + return ({ QLineF tmpValue = static_cast(ptr)->translated(dx, dy); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QLineF_UnitVector(void* ptr) +{ + return ({ QLineF tmpValue = static_cast(ptr)->unitVector(); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +double QLineF_X1(void* ptr) +{ + return static_cast(ptr)->x1(); +} + +double QLineF_X2(void* ptr) +{ + return static_cast(ptr)->x2(); +} + +double QLineF_Y1(void* ptr) +{ + return static_cast(ptr)->y1(); +} + +double QLineF_Y2(void* ptr) +{ + return static_cast(ptr)->y2(); +} + +Q_DECLARE_METATYPE(QLocale) +Q_DECLARE_METATYPE(QLocale*) +void* QLocale_NewQLocale() +{ + return new QLocale(); +} + +void* QLocale_NewQLocale2(struct QtCore_PackedString name) +{ + return new QLocale(QString::fromUtf8(name.data, name.len)); +} + +void* QLocale_NewQLocale3(long long language, long long country) +{ + return new QLocale(static_cast(language), static_cast(country)); +} + +void* QLocale_NewQLocale4(long long language, long long scri, long long country) +{ + return new QLocale(static_cast(language), static_cast(scri), static_cast(country)); +} + +void* QLocale_NewQLocale5(void* other) +{ + return new QLocale(*static_cast(other)); +} + +struct QtCore_PackedString QLocale_AmText(void* ptr) +{ + return ({ QByteArray* t5fc4d4 = new QByteArray(static_cast(ptr)->amText().toUtf8()); QtCore_PackedString { const_cast(t5fc4d4->prepend("WHITESPACE").constData()+10), t5fc4d4->size()-10, t5fc4d4 }; }); +} + +struct QtCore_PackedString QLocale_Bcp47Name(void* ptr) +{ + return ({ QByteArray* t0246a7 = new QByteArray(static_cast(ptr)->bcp47Name().toUtf8()); QtCore_PackedString { const_cast(t0246a7->prepend("WHITESPACE").constData()+10), t0246a7->size()-10, t0246a7 }; }); +} + +void* QLocale_QLocale_C() +{ + return new QLocale(QLocale::c()); +} + +long long QLocale_Country(void* ptr) +{ + return static_cast(ptr)->country(); +} + +struct QtCore_PackedString QLocale_QLocale_CountryToString(long long country) +{ + return ({ QByteArray* tbdb30e = new QByteArray(QLocale::countryToString(static_cast(country)).toUtf8()); QtCore_PackedString { const_cast(tbdb30e->prepend("WHITESPACE").constData()+10), tbdb30e->size()-10, tbdb30e }; }); +} + +struct QtCore_PackedString QLocale_CreateSeparatedList(void* ptr, struct QtCore_PackedString list) +{ + return ({ QByteArray* t6f2da9 = new QByteArray(static_cast(ptr)->createSeparatedList(QString::fromUtf8(list.data, list.len).split("¡¦!", QString::SkipEmptyParts)).toUtf8()); QtCore_PackedString { const_cast(t6f2da9->prepend("WHITESPACE").constData()+10), t6f2da9->size()-10, t6f2da9 }; }); +} + +struct QtCore_PackedString QLocale_CurrencySymbol(void* ptr, long long format) +{ + return ({ QByteArray* t19bd4c = new QByteArray(static_cast(ptr)->currencySymbol(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t19bd4c->prepend("WHITESPACE").constData()+10), t19bd4c->size()-10, t19bd4c }; }); +} + +struct QtCore_PackedString QLocale_DateFormat(void* ptr, long long format) +{ + return ({ QByteArray* t3ea82c = new QByteArray(static_cast(ptr)->dateFormat(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t3ea82c->prepend("WHITESPACE").constData()+10), t3ea82c->size()-10, t3ea82c }; }); +} + +struct QtCore_PackedString QLocale_DateTimeFormat(void* ptr, long long format) +{ + return ({ QByteArray* t3e01fc = new QByteArray(static_cast(ptr)->dateTimeFormat(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t3e01fc->prepend("WHITESPACE").constData()+10), t3e01fc->size()-10, t3e01fc }; }); +} + +struct QtCore_PackedString QLocale_DayName(void* ptr, int day, long long ty) +{ + return ({ QByteArray* t4220d0 = new QByteArray(static_cast(ptr)->dayName(day, static_cast(ty)).toUtf8()); QtCore_PackedString { const_cast(t4220d0->prepend("WHITESPACE").constData()+10), t4220d0->size()-10, t4220d0 }; }); +} + +void* QLocale_DecimalPoint(void* ptr) +{ + return new QChar(static_cast(ptr)->decimalPoint()); +} + +void* QLocale_Exponential(void* ptr) +{ + return new QChar(static_cast(ptr)->exponential()); +} + +long long QLocale_FirstDayOfWeek(void* ptr) +{ + return static_cast(ptr)->firstDayOfWeek(); +} + +struct QtCore_PackedString QLocale_FormattedDataSize2(void* ptr, long long bytes, int precision, long long format) +{ + return ({ QByteArray* t3e7c75 = new QByteArray(static_cast(ptr)->formattedDataSize(bytes, precision, static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t3e7c75->prepend("WHITESPACE").constData()+10), t3e7c75->size()-10, t3e7c75 }; }); +} + +void* QLocale_GroupSeparator(void* ptr) +{ + return new QChar(static_cast(ptr)->groupSeparator()); +} + +long long QLocale_Language(void* ptr) +{ + return static_cast(ptr)->language(); +} + +struct QtCore_PackedString QLocale_QLocale_LanguageToString(long long language) +{ + return ({ QByteArray* t29d017 = new QByteArray(QLocale::languageToString(static_cast(language)).toUtf8()); QtCore_PackedString { const_cast(t29d017->prepend("WHITESPACE").constData()+10), t29d017->size()-10, t29d017 }; }); +} + +struct QtCore_PackedList QLocale_QLocale_MatchingLocales(long long language, long long scri, long long country) +{ + return ({ QList* tmpValue0a12b0 = new QList(QLocale::matchingLocales(static_cast(language), static_cast(scri), static_cast(country))); QtCore_PackedList { tmpValue0a12b0, tmpValue0a12b0->size() }; }); +} + +long long QLocale_MeasurementSystem(void* ptr) +{ + return static_cast(ptr)->measurementSystem(); +} + +struct QtCore_PackedString QLocale_MonthName(void* ptr, int month, long long ty) +{ + return ({ QByteArray* t17d183 = new QByteArray(static_cast(ptr)->monthName(month, static_cast(ty)).toUtf8()); QtCore_PackedString { const_cast(t17d183->prepend("WHITESPACE").constData()+10), t17d183->size()-10, t17d183 }; }); +} + +struct QtCore_PackedString QLocale_Name(void* ptr) +{ + return ({ QByteArray* tee867e = new QByteArray(static_cast(ptr)->name().toUtf8()); QtCore_PackedString { const_cast(tee867e->prepend("WHITESPACE").constData()+10), tee867e->size()-10, tee867e }; }); +} + +struct QtCore_PackedString QLocale_NativeCountryName(void* ptr) +{ + return ({ QByteArray* t08c386 = new QByteArray(static_cast(ptr)->nativeCountryName().toUtf8()); QtCore_PackedString { const_cast(t08c386->prepend("WHITESPACE").constData()+10), t08c386->size()-10, t08c386 }; }); +} + +struct QtCore_PackedString QLocale_NativeLanguageName(void* ptr) +{ + return ({ QByteArray* t34cbe6 = new QByteArray(static_cast(ptr)->nativeLanguageName().toUtf8()); QtCore_PackedString { const_cast(t34cbe6->prepend("WHITESPACE").constData()+10), t34cbe6->size()-10, t34cbe6 }; }); +} + +void* QLocale_NegativeSign(void* ptr) +{ + return new QChar(static_cast(ptr)->negativeSign()); +} + +long long QLocale_NumberOptions(void* ptr) +{ + return static_cast(ptr)->numberOptions(); +} + +void* QLocale_Percent(void* ptr) +{ + return new QChar(static_cast(ptr)->percent()); +} + +struct QtCore_PackedString QLocale_PmText(void* ptr) +{ + return ({ QByteArray* t37d9b2 = new QByteArray(static_cast(ptr)->pmText().toUtf8()); QtCore_PackedString { const_cast(t37d9b2->prepend("WHITESPACE").constData()+10), t37d9b2->size()-10, t37d9b2 }; }); +} + +void* QLocale_PositiveSign(void* ptr) +{ + return new QChar(static_cast(ptr)->positiveSign()); +} + +struct QtCore_PackedString QLocale_QuoteString(void* ptr, struct QtCore_PackedString str, long long style) +{ + return ({ QByteArray* t76145a = new QByteArray(static_cast(ptr)->quoteString(QString::fromUtf8(str.data, str.len), static_cast(style)).toUtf8()); QtCore_PackedString { const_cast(t76145a->prepend("WHITESPACE").constData()+10), t76145a->size()-10, t76145a }; }); +} + +struct QtCore_PackedString QLocale_QuoteString2(void* ptr, void* str, long long style) +{ + return ({ QByteArray* tef32e3 = new QByteArray(static_cast(ptr)->quoteString(*static_cast(str), static_cast(style)).toUtf8()); QtCore_PackedString { const_cast(tef32e3->prepend("WHITESPACE").constData()+10), tef32e3->size()-10, tef32e3 }; }); +} + +long long QLocale_Script(void* ptr) +{ + return static_cast(ptr)->script(); +} + +struct QtCore_PackedString QLocale_QLocale_ScriptToString(long long scri) +{ + return ({ QByteArray* t535509 = new QByteArray(QLocale::scriptToString(static_cast(scri)).toUtf8()); QtCore_PackedString { const_cast(t535509->prepend("WHITESPACE").constData()+10), t535509->size()-10, t535509 }; }); +} + +void QLocale_QLocale_SetDefault(void* locale) +{ + QLocale::setDefault(*static_cast(locale)); +} + +void QLocale_SetNumberOptions(void* ptr, long long options) +{ + static_cast(ptr)->setNumberOptions(static_cast(options)); +} + +struct QtCore_PackedString QLocale_StandaloneDayName(void* ptr, int day, long long ty) +{ + return ({ QByteArray* t7850cf = new QByteArray(static_cast(ptr)->standaloneDayName(day, static_cast(ty)).toUtf8()); QtCore_PackedString { const_cast(t7850cf->prepend("WHITESPACE").constData()+10), t7850cf->size()-10, t7850cf }; }); +} + +struct QtCore_PackedString QLocale_StandaloneMonthName(void* ptr, int month, long long ty) +{ + return ({ QByteArray* t9ff9e7 = new QByteArray(static_cast(ptr)->standaloneMonthName(month, static_cast(ty)).toUtf8()); QtCore_PackedString { const_cast(t9ff9e7->prepend("WHITESPACE").constData()+10), t9ff9e7->size()-10, t9ff9e7 }; }); +} + +void QLocale_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QLocale_QLocale_System() +{ + return new QLocale(QLocale::system()); +} + +long long QLocale_TextDirection(void* ptr) +{ + return static_cast(ptr)->textDirection(); +} + +struct QtCore_PackedString QLocale_TimeFormat(void* ptr, long long format) +{ + return ({ QByteArray* t94be08 = new QByteArray(static_cast(ptr)->timeFormat(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t94be08->prepend("WHITESPACE").constData()+10), t94be08->size()-10, t94be08 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString(void* ptr, long long value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString2(void* ptr, unsigned long long value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString3(void* ptr, short value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString4(void* ptr, unsigned short value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString5(void* ptr, int value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString6(void* ptr, unsigned int value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString7(void* ptr, double value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString8(void* ptr, double value, struct QtCore_PackedString symbol, int precision) +{ + return ({ QByteArray* t891a06 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len), precision).toUtf8()); QtCore_PackedString { const_cast(t891a06->prepend("WHITESPACE").constData()+10), t891a06->size()-10, t891a06 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString9(void* ptr, float value, struct QtCore_PackedString symbol) +{ + return ({ QByteArray* t0fa4d2 = new QByteArray(static_cast(ptr)->toCurrencyString(value, QString::fromUtf8(symbol.data, symbol.len)).toUtf8()); QtCore_PackedString { const_cast(t0fa4d2->prepend("WHITESPACE").constData()+10), t0fa4d2->size()-10, t0fa4d2 }; }); +} + +struct QtCore_PackedString QLocale_ToCurrencyString10(void* ptr, float i, struct QtCore_PackedString symbol, int precision) +{ + return ({ QByteArray* t32b253 = new QByteArray(static_cast(ptr)->toCurrencyString(i, QString::fromUtf8(symbol.data, symbol.len), precision).toUtf8()); QtCore_PackedString { const_cast(t32b253->prepend("WHITESPACE").constData()+10), t32b253->size()-10, t32b253 }; }); +} + +void* QLocale_ToDate(void* ptr, struct QtCore_PackedString stri, long long format) +{ + return new QDate(static_cast(ptr)->toDate(QString::fromUtf8(stri.data, stri.len), static_cast(format))); +} + +void* QLocale_ToDate2(void* ptr, struct QtCore_PackedString stri, struct QtCore_PackedString format) +{ + return new QDate(static_cast(ptr)->toDate(QString::fromUtf8(stri.data, stri.len), QString::fromUtf8(format.data, format.len))); +} + +void* QLocale_ToDateTime(void* ptr, struct QtCore_PackedString stri, long long format) +{ + return new QDateTime(static_cast(ptr)->toDateTime(QString::fromUtf8(stri.data, stri.len), static_cast(format))); +} + +void* QLocale_ToDateTime2(void* ptr, struct QtCore_PackedString stri, struct QtCore_PackedString format) +{ + return new QDateTime(static_cast(ptr)->toDateTime(QString::fromUtf8(stri.data, stri.len), QString::fromUtf8(format.data, format.len))); +} + +double QLocale_ToDouble(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toDouble(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +double QLocale_ToDouble2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toDouble(*static_cast(s), reinterpret_cast(ok)); +} + +double QLocale_ToDouble3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toDouble(*static_cast(s), reinterpret_cast(ok)); +} + +float QLocale_ToFloat(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toFloat(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +float QLocale_ToFloat2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toFloat(*static_cast(s), reinterpret_cast(ok)); +} + +float QLocale_ToFloat3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toFloat(*static_cast(s), reinterpret_cast(ok)); +} + +int QLocale_ToInt(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toInt(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +int QLocale_ToInt2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toInt(*static_cast(s), reinterpret_cast(ok)); +} + +int QLocale_ToInt3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toInt(*static_cast(s), reinterpret_cast(ok)); +} + +long QLocale_ToLong(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toLong(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +long QLocale_ToLong2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toLong(*static_cast(s), reinterpret_cast(ok)); +} + +long QLocale_ToLong3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toLong(*static_cast(s), reinterpret_cast(ok)); +} + +long long QLocale_ToLongLong(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toLongLong(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +long long QLocale_ToLongLong2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toLongLong(*static_cast(s), reinterpret_cast(ok)); +} + +long long QLocale_ToLongLong3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toLongLong(*static_cast(s), reinterpret_cast(ok)); +} + +struct QtCore_PackedString QLocale_ToLower(void* ptr, struct QtCore_PackedString str) +{ + return ({ QByteArray* t112fbe = new QByteArray(static_cast(ptr)->toLower(QString::fromUtf8(str.data, str.len)).toUtf8()); QtCore_PackedString { const_cast(t112fbe->prepend("WHITESPACE").constData()+10), t112fbe->size()-10, t112fbe }; }); +} + +short QLocale_ToShort(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toShort(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +short QLocale_ToShort2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toShort(*static_cast(s), reinterpret_cast(ok)); +} + +short QLocale_ToShort3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toShort(*static_cast(s), reinterpret_cast(ok)); +} + +struct QtCore_PackedString QLocale_ToString(void* ptr, long long i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString2(void* ptr, unsigned long long i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString3(void* ptr, long i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString4(void* ptr, unsigned long i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString5(void* ptr, short i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString6(void* ptr, unsigned short i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString7(void* ptr, int i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString8(void* ptr, unsigned int i) +{ + return ({ QByteArray* teea9c2 = new QByteArray(static_cast(ptr)->toString(i).toUtf8()); QtCore_PackedString { const_cast(teea9c2->prepend("WHITESPACE").constData()+10), teea9c2->size()-10, teea9c2 }; }); +} + +struct QtCore_PackedString QLocale_ToString9(void* ptr, double i, char* ff, int prec) +{ + return ({ QByteArray* t07d146 = new QByteArray(static_cast(ptr)->toString(i, *ff, prec).toUtf8()); QtCore_PackedString { const_cast(t07d146->prepend("WHITESPACE").constData()+10), t07d146->size()-10, t07d146 }; }); +} + +struct QtCore_PackedString QLocale_ToString10(void* ptr, float i, char* ff, int prec) +{ + return ({ QByteArray* t07d146 = new QByteArray(static_cast(ptr)->toString(i, *ff, prec).toUtf8()); QtCore_PackedString { const_cast(t07d146->prepend("WHITESPACE").constData()+10), t07d146->size()-10, t07d146 }; }); +} + +struct QtCore_PackedString QLocale_ToString11(void* ptr, void* date, struct QtCore_PackedString format) +{ + return ({ QByteArray* t198629 = new QByteArray(static_cast(ptr)->toString(*static_cast(date), QString::fromUtf8(format.data, format.len)).toUtf8()); QtCore_PackedString { const_cast(t198629->prepend("WHITESPACE").constData()+10), t198629->size()-10, t198629 }; }); +} + +struct QtCore_PackedString QLocale_ToString12(void* ptr, void* ti, struct QtCore_PackedString format) +{ + return ({ QByteArray* t607af9 = new QByteArray(static_cast(ptr)->toString(*static_cast(ti), QString::fromUtf8(format.data, format.len)).toUtf8()); QtCore_PackedString { const_cast(t607af9->prepend("WHITESPACE").constData()+10), t607af9->size()-10, t607af9 }; }); +} + +struct QtCore_PackedString QLocale_ToString13(void* ptr, void* dateTime, struct QtCore_PackedString format) +{ + return ({ QByteArray* t336e5f = new QByteArray(static_cast(ptr)->toString(*static_cast(dateTime), QString::fromUtf8(format.data, format.len)).toUtf8()); QtCore_PackedString { const_cast(t336e5f->prepend("WHITESPACE").constData()+10), t336e5f->size()-10, t336e5f }; }); +} + +struct QtCore_PackedString QLocale_ToString14(void* ptr, void* date, void* format) +{ + return ({ QByteArray* t08b601 = new QByteArray(static_cast(ptr)->toString(*static_cast(date), *static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t08b601->prepend("WHITESPACE").constData()+10), t08b601->size()-10, t08b601 }; }); +} + +struct QtCore_PackedString QLocale_ToString15(void* ptr, void* ti, void* format) +{ + return ({ QByteArray* t697961 = new QByteArray(static_cast(ptr)->toString(*static_cast(ti), *static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t697961->prepend("WHITESPACE").constData()+10), t697961->size()-10, t697961 }; }); +} + +struct QtCore_PackedString QLocale_ToString16(void* ptr, void* dateTime, void* format) +{ + return ({ QByteArray* t5abf1a = new QByteArray(static_cast(ptr)->toString(*static_cast(dateTime), *static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t5abf1a->prepend("WHITESPACE").constData()+10), t5abf1a->size()-10, t5abf1a }; }); +} + +struct QtCore_PackedString QLocale_ToString17(void* ptr, void* date, long long format) +{ + return ({ QByteArray* t1fa262 = new QByteArray(static_cast(ptr)->toString(*static_cast(date), static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t1fa262->prepend("WHITESPACE").constData()+10), t1fa262->size()-10, t1fa262 }; }); +} + +struct QtCore_PackedString QLocale_ToString18(void* ptr, void* ti, long long format) +{ + return ({ QByteArray* tb6230e = new QByteArray(static_cast(ptr)->toString(*static_cast(ti), static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(tb6230e->prepend("WHITESPACE").constData()+10), tb6230e->size()-10, tb6230e }; }); +} + +struct QtCore_PackedString QLocale_ToString19(void* ptr, void* dateTime, long long format) +{ + return ({ QByteArray* t96745f = new QByteArray(static_cast(ptr)->toString(*static_cast(dateTime), static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t96745f->prepend("WHITESPACE").constData()+10), t96745f->size()-10, t96745f }; }); +} + +void* QLocale_ToTime(void* ptr, struct QtCore_PackedString stri, long long format) +{ + return new QTime(static_cast(ptr)->toTime(QString::fromUtf8(stri.data, stri.len), static_cast(format))); +} + +void* QLocale_ToTime2(void* ptr, struct QtCore_PackedString stri, struct QtCore_PackedString format) +{ + return new QTime(static_cast(ptr)->toTime(QString::fromUtf8(stri.data, stri.len), QString::fromUtf8(format.data, format.len))); +} + +unsigned int QLocale_ToUInt(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toUInt(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +unsigned int QLocale_ToUInt2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toUInt(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned int QLocale_ToUInt3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toUInt(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned long QLocale_ToULong(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toULong(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +unsigned long QLocale_ToULong2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toULong(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned long QLocale_ToULong3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toULong(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned long long QLocale_ToULongLong(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toULongLong(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +unsigned long long QLocale_ToULongLong2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toULongLong(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned long long QLocale_ToULongLong3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toULongLong(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned short QLocale_ToUShort(void* ptr, struct QtCore_PackedString s, char* ok) +{ + return static_cast(ptr)->toUShort(QString::fromUtf8(s.data, s.len), reinterpret_cast(ok)); +} + +unsigned short QLocale_ToUShort2(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toUShort(*static_cast(s), reinterpret_cast(ok)); +} + +unsigned short QLocale_ToUShort3(void* ptr, void* s, char* ok) +{ + return static_cast(ptr)->toUShort(*static_cast(s), reinterpret_cast(ok)); +} + +struct QtCore_PackedString QLocale_ToUpper(void* ptr, struct QtCore_PackedString str) +{ + return ({ QByteArray* t6969d0 = new QByteArray(static_cast(ptr)->toUpper(QString::fromUtf8(str.data, str.len)).toUtf8()); QtCore_PackedString { const_cast(t6969d0->prepend("WHITESPACE").constData()+10), t6969d0->size()-10, t6969d0 }; }); +} + +struct QtCore_PackedString QLocale_UiLanguages(void* ptr) +{ + return ({ QByteArray* tf4f58b = new QByteArray(static_cast(ptr)->uiLanguages().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf4f58b->prepend("WHITESPACE").constData()+10), tf4f58b->size()-10, tf4f58b }; }); +} + +struct QtCore_PackedList QLocale_Weekdays(void* ptr) +{ + return ({ QList* tmpValueae25dd = new QList(static_cast(ptr)->weekdays()); QtCore_PackedList { tmpValueae25dd, tmpValueae25dd->size() }; }); +} + +void* QLocale_ZeroDigit(void* ptr) +{ + return new QChar(static_cast(ptr)->zeroDigit()); +} + +void QLocale_DestroyQLocale(void* ptr) +{ + static_cast(ptr)->~QLocale(); +} + +void* QLocale___matchingLocales_atList(void* ptr, int i) +{ + return new QLocale(({QLocale tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QLocale___matchingLocales_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QLocale___matchingLocales_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +long long QLocale___weekdays_atList(void* ptr, int i) +{ + return ({Qt::DayOfWeek tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QLocale___weekdays_setList(void* ptr, long long i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QLocale___weekdays_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QLockFile*) +void* QLockFile_NewQLockFile(struct QtCore_PackedString fileName) +{ + return new QLockFile(QString::fromUtf8(fileName.data, fileName.len)); +} + +long long QLockFile_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +char QLockFile_GetLockInfo(void* ptr, long long pid, struct QtCore_PackedString hostname, struct QtCore_PackedString appname) +{ + return static_cast(ptr)->getLockInfo(&pid, new QString(QString::fromUtf8(hostname.data, hostname.len)), new QString(QString::fromUtf8(appname.data, appname.len))); +} + +char QLockFile_IsLocked(void* ptr) +{ + return static_cast(ptr)->isLocked(); +} + +char QLockFile_Lock(void* ptr) +{ + return static_cast(ptr)->lock(); +} + +char QLockFile_RemoveStaleLockFile(void* ptr) +{ + return static_cast(ptr)->removeStaleLockFile(); +} + +void QLockFile_SetStaleLockTime(void* ptr, int staleLockTime) +{ + static_cast(ptr)->setStaleLockTime(staleLockTime); +} + +int QLockFile_StaleLockTime(void* ptr) +{ + return static_cast(ptr)->staleLockTime(); +} + +char QLockFile_TryLock(void* ptr, int timeout) +{ + return static_cast(ptr)->tryLock(timeout); +} + +void QLockFile_Unlock(void* ptr) +{ + static_cast(ptr)->unlock(); +} + +void QLockFile_DestroyQLockFile(void* ptr) +{ + static_cast(ptr)->~QLockFile(); +} + +Q_DECLARE_METATYPE(QLoggingCategory*) +void* QLoggingCategory_NewQLoggingCategory2(char* category) +{ + return new QLoggingCategory(const_cast(category)); +} + +struct QtCore_PackedString QLoggingCategory_CategoryName(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->categoryName()), -1, NULL }; +} + +void* QLoggingCategory_QLoggingCategory_DefaultCategory() +{ + return QLoggingCategory::defaultCategory(); +} + +char QLoggingCategory_IsCriticalEnabled(void* ptr) +{ + return static_cast(ptr)->isCriticalEnabled(); +} + +char QLoggingCategory_IsDebugEnabled(void* ptr) +{ + return static_cast(ptr)->isDebugEnabled(); +} + +char QLoggingCategory_IsInfoEnabled(void* ptr) +{ + return static_cast(ptr)->isInfoEnabled(); +} + +char QLoggingCategory_IsWarningEnabled(void* ptr) +{ + return static_cast(ptr)->isWarningEnabled(); +} + +void QLoggingCategory_QLoggingCategory_SetFilterRules(struct QtCore_PackedString rules) +{ + QLoggingCategory::setFilterRules(QString::fromUtf8(rules.data, rules.len)); +} + +void QLoggingCategory_DestroyQLoggingCategory(void* ptr) +{ + static_cast(ptr)->~QLoggingCategory(); +} + +Q_DECLARE_METATYPE(QMargins) +Q_DECLARE_METATYPE(QMargins*) +void* QMargins_NewQMargins() +{ + return new QMargins(); +} + +void* QMargins_NewQMargins2(int left, int top, int right, int bottom) +{ + return new QMargins(left, top, right, bottom); +} + +int QMargins_Bottom(void* ptr) +{ + return static_cast(ptr)->bottom(); +} + +char QMargins_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +int QMargins_Left(void* ptr) +{ + return static_cast(ptr)->left(); +} + +int QMargins_Right(void* ptr) +{ + return static_cast(ptr)->right(); +} + +void QMargins_SetBottom(void* ptr, int bottom) +{ + static_cast(ptr)->setBottom(bottom); +} + +void QMargins_SetLeft(void* ptr, int left) +{ + static_cast(ptr)->setLeft(left); +} + +void QMargins_SetRight(void* ptr, int right) +{ + static_cast(ptr)->setRight(right); +} + +void QMargins_SetTop(void* ptr, int Top) +{ + static_cast(ptr)->setTop(Top); +} + +int QMargins_Top(void* ptr) +{ + return static_cast(ptr)->top(); +} + +Q_DECLARE_METATYPE(QMarginsF) +Q_DECLARE_METATYPE(QMarginsF*) +void* QMarginsF_NewQMarginsF() +{ + return new QMarginsF(); +} + +void* QMarginsF_NewQMarginsF2(double left, double top, double right, double bottom) +{ + return new QMarginsF(left, top, right, bottom); +} + +void* QMarginsF_NewQMarginsF3(void* margins) +{ + return new QMarginsF(*static_cast(margins)); +} + +double QMarginsF_Bottom(void* ptr) +{ + return static_cast(ptr)->bottom(); +} + +char QMarginsF_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +double QMarginsF_Left(void* ptr) +{ + return static_cast(ptr)->left(); +} + +double QMarginsF_Right(void* ptr) +{ + return static_cast(ptr)->right(); +} + +void QMarginsF_SetBottom(void* ptr, double bottom) +{ + static_cast(ptr)->setBottom(bottom); +} + +void QMarginsF_SetLeft(void* ptr, double left) +{ + static_cast(ptr)->setLeft(left); +} + +void QMarginsF_SetRight(void* ptr, double right) +{ + static_cast(ptr)->setRight(right); +} + +void QMarginsF_SetTop(void* ptr, double Top) +{ + static_cast(ptr)->setTop(Top); +} + +void* QMarginsF_ToMargins(void* ptr) +{ + return ({ QMargins tmpValue = static_cast(ptr)->toMargins(); new QMargins(tmpValue.left(), tmpValue.top(), tmpValue.right(), tmpValue.bottom()); }); +} + +double QMarginsF_Top(void* ptr) +{ + return static_cast(ptr)->top(); +} + +Q_DECLARE_METATYPE(QMessageAuthenticationCode*) +void* QMessageAuthenticationCode_NewQMessageAuthenticationCode(long long method, void* key) +{ + return new QMessageAuthenticationCode(static_cast(method), *static_cast(key)); +} + +void QMessageAuthenticationCode_AddData(void* ptr, char* data, int length) +{ + static_cast(ptr)->addData(const_cast(data), length); +} + +void QMessageAuthenticationCode_AddData2(void* ptr, void* data) +{ + static_cast(ptr)->addData(*static_cast(data)); +} + +char QMessageAuthenticationCode_AddData3(void* ptr, void* device) +{ + return static_cast(ptr)->addData(static_cast(device)); +} + +void* QMessageAuthenticationCode_QMessageAuthenticationCode_Hash(void* message, void* key, long long method) +{ + return new QByteArray(QMessageAuthenticationCode::hash(*static_cast(message), *static_cast(key), static_cast(method))); +} + +void QMessageAuthenticationCode_Reset(void* ptr) +{ + static_cast(ptr)->reset(); +} + +void* QMessageAuthenticationCode_Result(void* ptr) +{ + return new QByteArray(static_cast(ptr)->result()); +} + +void QMessageAuthenticationCode_SetKey(void* ptr, void* key) +{ + static_cast(ptr)->setKey(*static_cast(key)); +} + +void QMessageAuthenticationCode_DestroyQMessageAuthenticationCode(void* ptr) +{ + static_cast(ptr)->~QMessageAuthenticationCode(); +} + +Q_DECLARE_METATYPE(QMessageLogger*) +void* QMessageLogger_NewQMessageLogger2() +{ + return new QMessageLogger(); +} + +void* QMessageLogger_NewQMessageLogger3(char* file, int line, char* function) +{ + return new QMessageLogger(const_cast(file), line, const_cast(function)); +} + +void* QMessageLogger_NewQMessageLogger4(char* file, int line, char* function, char* category) +{ + return new QMessageLogger(const_cast(file), line, const_cast(function), const_cast(category)); +} + +void* QMessageLogger_Critical4(void* ptr) +{ + return new QDebug(static_cast(ptr)->critical()); +} + +void* QMessageLogger_Critical5(void* ptr, void* cat) +{ + return new QDebug(static_cast(ptr)->critical(*static_cast(cat))); +} + +void* QMessageLogger_Debug4(void* ptr) +{ + return new QDebug(static_cast(ptr)->debug()); +} + +void* QMessageLogger_Debug5(void* ptr, void* cat) +{ + return new QDebug(static_cast(ptr)->debug(*static_cast(cat))); +} + +void* QMessageLogger_Info4(void* ptr) +{ + return new QDebug(static_cast(ptr)->info()); +} + +void* QMessageLogger_Info5(void* ptr, void* cat) +{ + return new QDebug(static_cast(ptr)->info(*static_cast(cat))); +} + +void* QMessageLogger_Warning4(void* ptr) +{ + return new QDebug(static_cast(ptr)->warning()); +} + +void* QMessageLogger_Warning5(void* ptr, void* cat) +{ + return new QDebug(static_cast(ptr)->warning(*static_cast(cat))); +} + +struct QtCore_PackedString QMetaClassInfo_Name(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->name()), -1, NULL }; +} + +struct QtCore_PackedString QMetaClassInfo_Value(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->value()), -1, NULL }; +} + +struct QtCore_PackedString QMetaEnum_EnumName(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->enumName()), -1, NULL }; +} + +char QMetaEnum_IsFlag(void* ptr) +{ + return static_cast(ptr)->isFlag(); +} + +char QMetaEnum_IsScoped(void* ptr) +{ + return static_cast(ptr)->isScoped(); +} + +char QMetaEnum_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +struct QtCore_PackedString QMetaEnum_Key(void* ptr, int index) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->key(index)), index, NULL }; +} + +int QMetaEnum_KeyCount(void* ptr) +{ + return static_cast(ptr)->keyCount(); +} + +int QMetaEnum_KeyToValue(void* ptr, char* key, char* ok) +{ + return static_cast(ptr)->keyToValue(const_cast(key), reinterpret_cast(ok)); +} + +int QMetaEnum_KeysToValue(void* ptr, char* keys, char* ok) +{ + return static_cast(ptr)->keysToValue(const_cast(keys), reinterpret_cast(ok)); +} + +struct QtCore_PackedString QMetaEnum_Name(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->name()), -1, NULL }; +} + +struct QtCore_PackedString QMetaEnum_Scope(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->scope()), -1, NULL }; +} + +int QMetaEnum_Value(void* ptr, int index) +{ + return static_cast(ptr)->value(index); +} + +struct QtCore_PackedString QMetaEnum_ValueToKey(void* ptr, int value) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->valueToKey(value)), value, NULL }; +} + +void* QMetaEnum_ValueToKeys(void* ptr, int value) +{ + return new QByteArray(static_cast(ptr)->valueToKeys(value)); +} + +long long QMetaMethod_Access(void* ptr) +{ + return static_cast(ptr)->access(); +} + +char QMetaMethod_Invoke(void* ptr, void* object, long long connectionType, void* returnValue, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->invoke(static_cast(object), static_cast(connectionType), *static_cast(returnValue), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaMethod_Invoke2(void* ptr, void* object, void* returnValue, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->invoke(static_cast(object), *static_cast(returnValue), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaMethod_Invoke3(void* ptr, void* object, long long connectionType, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->invoke(static_cast(object), static_cast(connectionType), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaMethod_Invoke4(void* ptr, void* object, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->invoke(static_cast(object), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaMethod_InvokeOnGadget(void* ptr, void* gadget, void* returnValue, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->invokeOnGadget(gadget, *static_cast(returnValue), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaMethod_InvokeOnGadget2(void* ptr, void* gadget, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->invokeOnGadget(gadget, *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaMethod_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QMetaMethod_MethodIndex(void* ptr) +{ + return static_cast(ptr)->methodIndex(); +} + +void* QMetaMethod_MethodSignature(void* ptr) +{ + return new QByteArray(static_cast(ptr)->methodSignature()); +} + +long long QMetaMethod_MethodType(void* ptr) +{ + return static_cast(ptr)->methodType(); +} + +void* QMetaMethod_Name(void* ptr) +{ + return new QByteArray(static_cast(ptr)->name()); +} + +int QMetaMethod_ParameterCount(void* ptr) +{ + return static_cast(ptr)->parameterCount(); +} + +struct QtCore_PackedList QMetaMethod_ParameterNames(void* ptr) +{ + return ({ QList* tmpValuec7ea97 = new QList(static_cast(ptr)->parameterNames()); QtCore_PackedList { tmpValuec7ea97, tmpValuec7ea97->size() }; }); +} + +int QMetaMethod_ParameterType(void* ptr, int index) +{ + return static_cast(ptr)->parameterType(index); +} + +struct QtCore_PackedList QMetaMethod_ParameterTypes(void* ptr) +{ + return ({ QList* tmpValue4f9e78 = new QList(static_cast(ptr)->parameterTypes()); QtCore_PackedList { tmpValue4f9e78, tmpValue4f9e78->size() }; }); +} + +int QMetaMethod_ReturnType(void* ptr) +{ + return static_cast(ptr)->returnType(); +} + +int QMetaMethod_Revision(void* ptr) +{ + return static_cast(ptr)->revision(); +} + +struct QtCore_PackedString QMetaMethod_Tag(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->tag()), -1, NULL }; +} + +struct QtCore_PackedString QMetaMethod_TypeName(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->typeName()), -1, NULL }; +} + +void* QMetaMethod___parameterNames_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QMetaMethod___parameterNames_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QMetaMethod___parameterNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QMetaMethod___parameterTypes_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QMetaMethod___parameterTypes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QMetaMethod___parameterTypes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +char QMetaObject_QMetaObject_CheckConnectArgs(char* sign, char* method) +{ + return QMetaObject::checkConnectArgs(const_cast(sign), const_cast(method)); +} + +char QMetaObject_QMetaObject_CheckConnectArgs2(void* sign, void* method) +{ + return QMetaObject::checkConnectArgs(*static_cast(sign), *static_cast(method)); +} + +int QMetaObject_ClassInfoCount(void* ptr) +{ + return static_cast(ptr)->classInfoCount(); +} + +int QMetaObject_ClassInfoOffset(void* ptr) +{ + return static_cast(ptr)->classInfoOffset(); +} + +struct QtCore_PackedString QMetaObject_ClassName(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->className()), -1, NULL }; +} + +void QMetaObject_QMetaObject_ConnectSlotsByName(void* object) +{ + QMetaObject::connectSlotsByName(static_cast(object)); +} + +void* QMetaObject_Constructor(void* ptr, int index) +{ + return new QMetaMethod(static_cast(ptr)->constructor(index)); +} + +int QMetaObject_ConstructorCount(void* ptr) +{ + return static_cast(ptr)->constructorCount(); +} + +int QMetaObject_EnumeratorCount(void* ptr) +{ + return static_cast(ptr)->enumeratorCount(); +} + +int QMetaObject_EnumeratorOffset(void* ptr) +{ + return static_cast(ptr)->enumeratorOffset(); +} + +int QMetaObject_IndexOfClassInfo(void* ptr, char* name) +{ + return static_cast(ptr)->indexOfClassInfo(const_cast(name)); +} + +int QMetaObject_IndexOfConstructor(void* ptr, char* constructor) +{ + return static_cast(ptr)->indexOfConstructor(const_cast(constructor)); +} + +int QMetaObject_IndexOfEnumerator(void* ptr, char* name) +{ + return static_cast(ptr)->indexOfEnumerator(const_cast(name)); +} + +int QMetaObject_IndexOfMethod(void* ptr, char* method) +{ + return static_cast(ptr)->indexOfMethod(const_cast(method)); +} + +int QMetaObject_IndexOfProperty(void* ptr, char* name) +{ + return static_cast(ptr)->indexOfProperty(const_cast(name)); +} + +int QMetaObject_IndexOfSignal(void* ptr, char* sign) +{ + return static_cast(ptr)->indexOfSignal(const_cast(sign)); +} + +int QMetaObject_IndexOfSlot(void* ptr, char* slot) +{ + return static_cast(ptr)->indexOfSlot(const_cast(slot)); +} + +char QMetaObject_Inherits(void* ptr, void* metaObject) +{ + return static_cast(ptr)->inherits(static_cast(metaObject)); +} + +char QMetaObject_QMetaObject_InvokeMethod(void* obj, char* member, long long ty, void* ret, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return QMetaObject::invokeMethod(static_cast(obj), const_cast(member), static_cast(ty), *static_cast(ret), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaObject_QMetaObject_InvokeMethod2(void* obj, char* member, void* ret, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return QMetaObject::invokeMethod(static_cast(obj), const_cast(member), *static_cast(ret), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaObject_QMetaObject_InvokeMethod3(void* obj, char* member, long long ty, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return QMetaObject::invokeMethod(static_cast(obj), const_cast(member), static_cast(ty), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +char QMetaObject_QMetaObject_InvokeMethod4(void* obj, char* member, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return QMetaObject::invokeMethod(static_cast(obj), const_cast(member), *static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +void* QMetaObject_Method(void* ptr, int index) +{ + return new QMetaMethod(static_cast(ptr)->method(index)); +} + +int QMetaObject_MethodCount(void* ptr) +{ + return static_cast(ptr)->methodCount(); +} + +int QMetaObject_MethodOffset(void* ptr) +{ + return static_cast(ptr)->methodOffset(); +} + +void* QMetaObject_NewInstance(void* ptr, void* val0, void* val1, void* val2, void* val3, void* val4, void* val5, void* val6, void* val7, void* val8, void* val9) +{ + return static_cast(ptr)->newInstance(*static_cast(val0), *static_cast(val1), *static_cast(val2), *static_cast(val3), *static_cast(val4), *static_cast(val5), *static_cast(val6), *static_cast(val7), *static_cast(val8), *static_cast(val9)); +} + +void* QMetaObject_QMetaObject_NormalizedSignature(char* method) +{ + return new QByteArray(QMetaObject::normalizedSignature(const_cast(method))); +} + +void* QMetaObject_QMetaObject_NormalizedType(char* ty) +{ + return new QByteArray(QMetaObject::normalizedType(const_cast(ty))); +} + +int QMetaObject_PropertyCount(void* ptr) +{ + return static_cast(ptr)->propertyCount(); +} + +int QMetaObject_PropertyOffset(void* ptr) +{ + return static_cast(ptr)->propertyOffset(); +} + +void* QMetaObject_SuperClass(void* ptr) +{ + return const_cast(static_cast(ptr)->superClass()); +} + +char QMetaProperty_HasNotifySignal(void* ptr) +{ + return static_cast(ptr)->hasNotifySignal(); +} + +char QMetaProperty_IsConstant(void* ptr) +{ + return static_cast(ptr)->isConstant(); +} + +char QMetaProperty_IsDesignable(void* ptr, void* object) +{ + return static_cast(ptr)->isDesignable(static_cast(object)); +} + +char QMetaProperty_IsEnumType(void* ptr) +{ + return static_cast(ptr)->isEnumType(); +} + +char QMetaProperty_IsFinal(void* ptr) +{ + return static_cast(ptr)->isFinal(); +} + +char QMetaProperty_IsFlagType(void* ptr) +{ + return static_cast(ptr)->isFlagType(); +} + +char QMetaProperty_IsReadable(void* ptr) +{ + return static_cast(ptr)->isReadable(); +} + +char QMetaProperty_IsResettable(void* ptr) +{ + return static_cast(ptr)->isResettable(); +} + +char QMetaProperty_IsScriptable(void* ptr, void* object) +{ + return static_cast(ptr)->isScriptable(static_cast(object)); +} + +char QMetaProperty_IsStored(void* ptr, void* object) +{ + return static_cast(ptr)->isStored(static_cast(object)); +} + +char QMetaProperty_IsUser(void* ptr, void* object) +{ + return static_cast(ptr)->isUser(static_cast(object)); +} + +char QMetaProperty_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +char QMetaProperty_IsWritable(void* ptr) +{ + return static_cast(ptr)->isWritable(); +} + +struct QtCore_PackedString QMetaProperty_Name(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->name()), -1, NULL }; +} + +void* QMetaProperty_NotifySignal(void* ptr) +{ + return new QMetaMethod(static_cast(ptr)->notifySignal()); +} + +int QMetaProperty_NotifySignalIndex(void* ptr) +{ + return static_cast(ptr)->notifySignalIndex(); +} + +int QMetaProperty_PropertyIndex(void* ptr) +{ + return static_cast(ptr)->propertyIndex(); +} + +void* QMetaProperty_Read(void* ptr, void* object) +{ + return new QVariant(static_cast(ptr)->read(static_cast(object))); +} + +void* QMetaProperty_ReadOnGadget(void* ptr, void* gadget) +{ + return new QVariant(static_cast(ptr)->readOnGadget(gadget)); +} + +char QMetaProperty_Reset(void* ptr, void* object) +{ + return static_cast(ptr)->reset(static_cast(object)); +} + +char QMetaProperty_ResetOnGadget(void* ptr, void* gadget) +{ + return static_cast(ptr)->resetOnGadget(gadget); +} + +int QMetaProperty_Revision(void* ptr) +{ + return static_cast(ptr)->revision(); +} + +long long QMetaProperty_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +struct QtCore_PackedString QMetaProperty_TypeName(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->typeName()), -1, NULL }; +} + +int QMetaProperty_UserType(void* ptr) +{ + return static_cast(ptr)->userType(); +} + +char QMetaProperty_Write(void* ptr, void* object, void* value) +{ + return static_cast(ptr)->write(static_cast(object), *static_cast(value)); +} + +char QMetaProperty_WriteOnGadget(void* ptr, void* gadget, void* value) +{ + return static_cast(ptr)->writeOnGadget(gadget, *static_cast(value)); +} + +Q_DECLARE_METATYPE(QMetaType*) +void* QMetaType_NewQMetaType(int typeId) +{ + return new QMetaType(typeId); +} + +char QMetaType_QMetaType_Compare(void* lhs, void* rhs, int typeId, int result) +{ + return QMetaType::compare(lhs, rhs, typeId, &result); +} + +void* QMetaType_QMetaType_Construct2(int ty, void* whe, void* copy) +{ + return QMetaType::construct(ty, whe, copy); +} + +void* QMetaType_Construct3(void* ptr, void* whe, void* copy) +{ + return static_cast(ptr)->construct(whe, copy); +} + +char QMetaType_QMetaType_Convert(void* from, int fromTypeId, void* to, int toTypeId) +{ + return QMetaType::convert(from, fromTypeId, to, toTypeId); +} + +void* QMetaType_QMetaType_Create(int ty, void* copy) +{ + return QMetaType::create(ty, copy); +} + +void* QMetaType_Create2(void* ptr, void* copy) +{ + return static_cast(ptr)->create(copy); +} + +char QMetaType_QMetaType_DebugStream(void* dbg, void* rhs, int typeId) +{ + return QMetaType::debugStream(*static_cast(dbg), rhs, typeId); +} + +void QMetaType_QMetaType_Destroy(int ty, void* data) +{ + QMetaType::destroy(ty, data); +} + +void QMetaType_Destroy2(void* ptr, void* data) +{ + static_cast(ptr)->destroy(data); +} + +void QMetaType_QMetaType_Destruct(int ty, void* whe) +{ + QMetaType::destruct(ty, whe); +} + +void QMetaType_Destruct2(void* ptr, void* data) +{ + static_cast(ptr)->destruct(data); +} + +char QMetaType_QMetaType_Equals(void* lhs, void* rhs, int typeId, int result) +{ + return QMetaType::equals(lhs, rhs, typeId, &result); +} + +long long QMetaType_Flags(void* ptr) +{ + return static_cast(ptr)->flags(); +} + +int QMetaType_Id(void* ptr) +{ + return static_cast(ptr)->id(); +} + +char QMetaType_QMetaType_IsRegistered(int ty) +{ + return QMetaType::isRegistered(ty); +} + +char QMetaType_IsRegistered2(void* ptr) +{ + return static_cast(ptr)->isRegistered(); +} + +char QMetaType_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +char QMetaType_QMetaType_Load(void* stream, int ty, void* data) +{ + return QMetaType::load(*static_cast(stream), ty, data); +} + +void* QMetaType_MetaObject(void* ptr) +{ + return const_cast(static_cast(ptr)->metaObject()); +} + +void* QMetaType_QMetaType_MetaObjectForType(int ty) +{ + return const_cast(QMetaType::metaObjectForType(ty)); +} + +char QMetaType_QMetaType_Save(void* stream, int ty, void* data) +{ + return QMetaType::save(*static_cast(stream), ty, data); +} + +int QMetaType_QMetaType_SizeOf(int ty) +{ + return QMetaType::sizeOf(ty); +} + +int QMetaType_SizeOf2(void* ptr) +{ + return static_cast(ptr)->sizeOf(); +} + +int QMetaType_QMetaType_Type(char* typeName) +{ + return QMetaType::type(const_cast(typeName)); +} + +int QMetaType_QMetaType_Type2(void* typeName) +{ + return QMetaType::type(*static_cast(typeName)); +} + +long long QMetaType_QMetaType_TypeFlags(int ty) +{ + return QMetaType::typeFlags(ty); +} + +struct QtCore_PackedString QMetaType_QMetaType_TypeName(int typeId) +{ + return QtCore_PackedString { const_cast(QMetaType::typeName(typeId)), typeId, NULL }; +} + +void QMetaType_DestroyQMetaType(void* ptr) +{ + static_cast(ptr)->~QMetaType(); +} + +class MyQMimeData: public QMimeData +{ +public: + MyQMimeData() : QMimeData() {QMimeData_QMimeData_QRegisterMetaType();}; + QStringList formats() const { return ({ QtCore_PackedString tempVal = callbackQMimeData_Formats(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + bool hasFormat(const QString & mimeType) const { QByteArray* t3313b8 = new QByteArray(mimeType.toUtf8()); QtCore_PackedString mimeTypePacked = { const_cast(t3313b8->prepend("WHITESPACE").constData()+10), t3313b8->size()-10, t3313b8 };return callbackQMimeData_HasFormat(const_cast(static_cast(this)), mimeTypePacked) != 0; }; + QVariant retrieveData(const QString & mimeType, QVariant::Type ty) const { QByteArray* t3313b8 = new QByteArray(mimeType.toUtf8()); QtCore_PackedString mimeTypePacked = { const_cast(t3313b8->prepend("WHITESPACE").constData()+10), t3313b8->size()-10, t3313b8 };return *static_cast(callbackQMimeData_RetrieveData(const_cast(static_cast(this)), mimeTypePacked, ty)); }; + ~MyQMimeData() { callbackQMimeData_DestroyQMimeData(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QMimeData*) +Q_DECLARE_METATYPE(MyQMimeData*) + +int QMimeData_QMimeData_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QMimeData_NewQMimeData() +{ + return new MyQMimeData(); +} + +void QMimeData_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +void* QMimeData_ColorData(void* ptr) +{ + return new QVariant(static_cast(ptr)->colorData()); +} + +void* QMimeData_Data(void* ptr, struct QtCore_PackedString mimeType) +{ + return new QByteArray(static_cast(ptr)->data(QString::fromUtf8(mimeType.data, mimeType.len))); +} + +struct QtCore_PackedString QMimeData_Formats(void* ptr) +{ + return ({ QByteArray* t353e58 = new QByteArray(static_cast(ptr)->formats().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t353e58->prepend("WHITESPACE").constData()+10), t353e58->size()-10, t353e58 }; }); +} + +struct QtCore_PackedString QMimeData_FormatsDefault(void* ptr) +{ + return ({ QByteArray* td5c1b6 = new QByteArray(static_cast(ptr)->QMimeData::formats().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(td5c1b6->prepend("WHITESPACE").constData()+10), td5c1b6->size()-10, td5c1b6 }; }); +} + +char QMimeData_HasColor(void* ptr) +{ + return static_cast(ptr)->hasColor(); +} + +char QMimeData_HasFormat(void* ptr, struct QtCore_PackedString mimeType) +{ + return static_cast(ptr)->hasFormat(QString::fromUtf8(mimeType.data, mimeType.len)); +} + +char QMimeData_HasFormatDefault(void* ptr, struct QtCore_PackedString mimeType) +{ + return static_cast(ptr)->QMimeData::hasFormat(QString::fromUtf8(mimeType.data, mimeType.len)); +} + +char QMimeData_HasHtml(void* ptr) +{ + return static_cast(ptr)->hasHtml(); +} + +char QMimeData_HasImage(void* ptr) +{ + return static_cast(ptr)->hasImage(); +} + +char QMimeData_HasText(void* ptr) +{ + return static_cast(ptr)->hasText(); +} + +char QMimeData_HasUrls(void* ptr) +{ + return static_cast(ptr)->hasUrls(); +} + +struct QtCore_PackedString QMimeData_Html(void* ptr) +{ + return ({ QByteArray* te6f56b = new QByteArray(static_cast(ptr)->html().toUtf8()); QtCore_PackedString { const_cast(te6f56b->prepend("WHITESPACE").constData()+10), te6f56b->size()-10, te6f56b }; }); +} + +void* QMimeData_ImageData(void* ptr) +{ + return new QVariant(static_cast(ptr)->imageData()); +} + +void QMimeData_RemoveFormat(void* ptr, struct QtCore_PackedString mimeType) +{ + static_cast(ptr)->removeFormat(QString::fromUtf8(mimeType.data, mimeType.len)); +} + +void* QMimeData_RetrieveData(void* ptr, struct QtCore_PackedString mimeType, long long ty) +{ + return new QVariant(static_cast(ptr)->retrieveData(QString::fromUtf8(mimeType.data, mimeType.len), static_cast(ty))); +} + +void* QMimeData_RetrieveDataDefault(void* ptr, struct QtCore_PackedString mimeType, long long ty) +{ + return new QVariant(static_cast(ptr)->QMimeData::retrieveData(QString::fromUtf8(mimeType.data, mimeType.len), static_cast(ty))); +} + +void QMimeData_SetColorData(void* ptr, void* color) +{ + static_cast(ptr)->setColorData(*static_cast(color)); +} + +void QMimeData_SetData(void* ptr, struct QtCore_PackedString mimeType, void* data) +{ + static_cast(ptr)->setData(QString::fromUtf8(mimeType.data, mimeType.len), *static_cast(data)); +} + +void QMimeData_SetHtml(void* ptr, struct QtCore_PackedString html) +{ + static_cast(ptr)->setHtml(QString::fromUtf8(html.data, html.len)); +} + +void QMimeData_SetImageData(void* ptr, void* image) +{ + static_cast(ptr)->setImageData(*static_cast(image)); +} + +void QMimeData_SetText(void* ptr, struct QtCore_PackedString text) +{ + static_cast(ptr)->setText(QString::fromUtf8(text.data, text.len)); +} + +void QMimeData_SetUrls(void* ptr, void* urls) +{ + static_cast(ptr)->setUrls(*static_cast*>(urls)); +} + +struct QtCore_PackedString QMimeData_Text(void* ptr) +{ + return ({ QByteArray* t2355ec = new QByteArray(static_cast(ptr)->text().toUtf8()); QtCore_PackedString { const_cast(t2355ec->prepend("WHITESPACE").constData()+10), t2355ec->size()-10, t2355ec }; }); +} + +struct QtCore_PackedList QMimeData_Urls(void* ptr) +{ + return ({ QList* tmpValuea61c1b = new QList(static_cast(ptr)->urls()); QtCore_PackedList { tmpValuea61c1b, tmpValuea61c1b->size() }; }); +} + +void QMimeData_DestroyQMimeData(void* ptr) +{ + static_cast(ptr)->~QMimeData(); +} + +void QMimeData_DestroyQMimeDataDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QMimeData___setUrls_urls_atList(void* ptr, int i) +{ + return new QUrl(({QUrl tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QMimeData___setUrls_urls_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QMimeData___setUrls_urls_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QMimeData___urls_atList(void* ptr, int i) +{ + return new QUrl(({QUrl tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QMimeData___urls_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QMimeData___urls_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QMimeDatabase*) +void* QMimeDatabase_NewQMimeDatabase2() +{ + return new QMimeDatabase(); +} + +struct QtCore_PackedList QMimeDatabase_AllMimeTypes(void* ptr) +{ + return ({ QList* tmpValuebf56ee = new QList(static_cast(ptr)->allMimeTypes()); QtCore_PackedList { tmpValuebf56ee, tmpValuebf56ee->size() }; }); +} + +void* QMimeDatabase_MimeTypeForData(void* ptr, void* data) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForData(*static_cast(data))); +} + +void* QMimeDatabase_MimeTypeForData2(void* ptr, void* device) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForData(static_cast(device))); +} + +void* QMimeDatabase_MimeTypeForFile(void* ptr, void* fileInfo, long long mode) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForFile(*static_cast(fileInfo), static_cast(mode))); +} + +void* QMimeDatabase_MimeTypeForFile2(void* ptr, struct QtCore_PackedString fileName, long long mode) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForFile(QString::fromUtf8(fileName.data, fileName.len), static_cast(mode))); +} + +void* QMimeDatabase_MimeTypeForFileNameAndData(void* ptr, struct QtCore_PackedString fileName, void* device) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForFileNameAndData(QString::fromUtf8(fileName.data, fileName.len), static_cast(device))); +} + +void* QMimeDatabase_MimeTypeForFileNameAndData2(void* ptr, struct QtCore_PackedString fileName, void* data) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForFileNameAndData(QString::fromUtf8(fileName.data, fileName.len), *static_cast(data))); +} + +void* QMimeDatabase_MimeTypeForName(void* ptr, struct QtCore_PackedString nameOrAlias) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForName(QString::fromUtf8(nameOrAlias.data, nameOrAlias.len))); +} + +void* QMimeDatabase_MimeTypeForUrl(void* ptr, void* url) +{ + return new QMimeType(static_cast(ptr)->mimeTypeForUrl(*static_cast(url))); +} + +struct QtCore_PackedList QMimeDatabase_MimeTypesForFileName(void* ptr, struct QtCore_PackedString fileName) +{ + return ({ QList* tmpValue31f4f7 = new QList(static_cast(ptr)->mimeTypesForFileName(QString::fromUtf8(fileName.data, fileName.len))); QtCore_PackedList { tmpValue31f4f7, tmpValue31f4f7->size() }; }); +} + +struct QtCore_PackedString QMimeDatabase_SuffixForFileName(void* ptr, struct QtCore_PackedString fileName) +{ + return ({ QByteArray* te4c687 = new QByteArray(static_cast(ptr)->suffixForFileName(QString::fromUtf8(fileName.data, fileName.len)).toUtf8()); QtCore_PackedString { const_cast(te4c687->prepend("WHITESPACE").constData()+10), te4c687->size()-10, te4c687 }; }); +} + +void QMimeDatabase_DestroyQMimeDatabase(void* ptr) +{ + static_cast(ptr)->~QMimeDatabase(); +} + +void* QMimeDatabase___allMimeTypes_atList(void* ptr, int i) +{ + return new QMimeType(({QMimeType tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QMimeDatabase___allMimeTypes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QMimeDatabase___allMimeTypes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QMimeDatabase___mimeTypesForFileName_atList(void* ptr, int i) +{ + return new QMimeType(({QMimeType tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QMimeDatabase___mimeTypesForFileName_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QMimeDatabase___mimeTypesForFileName_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QMimeType) +Q_DECLARE_METATYPE(QMimeType*) +void* QMimeType_NewQMimeType() +{ + return new QMimeType(); +} + +void* QMimeType_NewQMimeType2(void* other) +{ + return new QMimeType(*static_cast(other)); +} + +struct QtCore_PackedString QMimeType_Aliases(void* ptr) +{ + return ({ QByteArray* t7480d3 = new QByteArray(static_cast(ptr)->aliases().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t7480d3->prepend("WHITESPACE").constData()+10), t7480d3->size()-10, t7480d3 }; }); +} + +struct QtCore_PackedString QMimeType_AllAncestors(void* ptr) +{ + return ({ QByteArray* tf171fc = new QByteArray(static_cast(ptr)->allAncestors().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf171fc->prepend("WHITESPACE").constData()+10), tf171fc->size()-10, tf171fc }; }); +} + +struct QtCore_PackedString QMimeType_Comment(void* ptr) +{ + return ({ QByteArray* ta1538d = new QByteArray(static_cast(ptr)->comment().toUtf8()); QtCore_PackedString { const_cast(ta1538d->prepend("WHITESPACE").constData()+10), ta1538d->size()-10, ta1538d }; }); +} + +struct QtCore_PackedString QMimeType_FilterString(void* ptr) +{ + return ({ QByteArray* t332dc9 = new QByteArray(static_cast(ptr)->filterString().toUtf8()); QtCore_PackedString { const_cast(t332dc9->prepend("WHITESPACE").constData()+10), t332dc9->size()-10, t332dc9 }; }); +} + +struct QtCore_PackedString QMimeType_GenericIconName(void* ptr) +{ + return ({ QByteArray* te218a0 = new QByteArray(static_cast(ptr)->genericIconName().toUtf8()); QtCore_PackedString { const_cast(te218a0->prepend("WHITESPACE").constData()+10), te218a0->size()-10, te218a0 }; }); +} + +struct QtCore_PackedString QMimeType_GlobPatterns(void* ptr) +{ + return ({ QByteArray* te56904 = new QByteArray(static_cast(ptr)->globPatterns().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(te56904->prepend("WHITESPACE").constData()+10), te56904->size()-10, te56904 }; }); +} + +struct QtCore_PackedString QMimeType_IconName(void* ptr) +{ + return ({ QByteArray* tc23ba4 = new QByteArray(static_cast(ptr)->iconName().toUtf8()); QtCore_PackedString { const_cast(tc23ba4->prepend("WHITESPACE").constData()+10), tc23ba4->size()-10, tc23ba4 }; }); +} + +char QMimeType_Inherits(void* ptr, struct QtCore_PackedString mimeTypeName) +{ + return static_cast(ptr)->inherits(QString::fromUtf8(mimeTypeName.data, mimeTypeName.len)); +} + +char QMimeType_IsDefault(void* ptr) +{ + return static_cast(ptr)->isDefault(); +} + +char QMimeType_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +struct QtCore_PackedString QMimeType_Name(void* ptr) +{ + return ({ QByteArray* ta4c2a4 = new QByteArray(static_cast(ptr)->name().toUtf8()); QtCore_PackedString { const_cast(ta4c2a4->prepend("WHITESPACE").constData()+10), ta4c2a4->size()-10, ta4c2a4 }; }); +} + +struct QtCore_PackedString QMimeType_ParentMimeTypes(void* ptr) +{ + return ({ QByteArray* t4917fb = new QByteArray(static_cast(ptr)->parentMimeTypes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t4917fb->prepend("WHITESPACE").constData()+10), t4917fb->size()-10, t4917fb }; }); +} + +struct QtCore_PackedString QMimeType_PreferredSuffix(void* ptr) +{ + return ({ QByteArray* t3aa3ee = new QByteArray(static_cast(ptr)->preferredSuffix().toUtf8()); QtCore_PackedString { const_cast(t3aa3ee->prepend("WHITESPACE").constData()+10), t3aa3ee->size()-10, t3aa3ee }; }); +} + +struct QtCore_PackedString QMimeType_Suffixes(void* ptr) +{ + return ({ QByteArray* t2e296a = new QByteArray(static_cast(ptr)->suffixes().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t2e296a->prepend("WHITESPACE").constData()+10), t2e296a->size()-10, t2e296a }; }); +} + +void QMimeType_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QMimeType_DestroyQMimeType(void* ptr) +{ + static_cast(ptr)->~QMimeType(); +} + +Q_DECLARE_METATYPE(QModelIndex) +Q_DECLARE_METATYPE(QModelIndex*) +void* QModelIndex_NewQModelIndex() +{ + return new QModelIndex(); +} + +int QModelIndex_Column(void* ptr) +{ + return static_cast(ptr)->column(); +} + +void* QModelIndex_Data(void* ptr, int role) +{ + return new QVariant(static_cast(ptr)->data(role)); +} + +long long QModelIndex_Flags(void* ptr) +{ + return static_cast(ptr)->flags(); +} + +uintptr_t QModelIndex_InternalId(void* ptr) +{ + return static_cast(ptr)->internalId(); +} + +void* QModelIndex_InternalPointer(void* ptr) +{ + return static_cast(ptr)->internalPointer(); +} + +char QModelIndex_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +void* QModelIndex_Model(void* ptr) +{ + return const_cast(static_cast(ptr)->model()); +} + +void* QModelIndex_Parent(void* ptr) +{ + return new QModelIndex(static_cast(ptr)->parent()); +} + +int QModelIndex_Row(void* ptr) +{ + return static_cast(ptr)->row(); +} + +void* QModelIndex_Sibling(void* ptr, int row, int column) +{ + return new QModelIndex(static_cast(ptr)->sibling(row, column)); +} + +void* QModelIndex_SiblingAtColumn(void* ptr, int column) +{ + return new QModelIndex(static_cast(ptr)->siblingAtColumn(column)); +} + +void* QModelIndex_SiblingAtRow(void* ptr, int row) +{ + return new QModelIndex(static_cast(ptr)->siblingAtRow(row)); +} + +Q_DECLARE_METATYPE(QMutex*) +void* QMutex_NewQMutex(long long mode) +{ + return new QMutex(static_cast(mode)); +} + +void QMutex_Lock(void* ptr) +{ + static_cast(ptr)->lock(); +} + +char QMutex_TryLock(void* ptr, int timeout) +{ + return static_cast(ptr)->tryLock(timeout); +} + +char QMutex_Try_lock(void* ptr) +{ + return static_cast(ptr)->try_lock(); +} + +void QMutex_Unlock(void* ptr) +{ + static_cast(ptr)->unlock(); +} + +void QMutex_DestroyQMutex(void* ptr) +{ + static_cast(ptr)->~QMutex(); +} + +Q_DECLARE_METATYPE(QMutexLocker*) +void* QMutexLocker_NewQMutexLocker(void* mutex) +{ + return new QMutexLocker(static_cast(mutex)); +} + +void* QMutexLocker_Mutex(void* ptr) +{ + return static_cast(ptr)->mutex(); +} + +void QMutexLocker_Relock(void* ptr) +{ + static_cast(ptr)->relock(); +} + +void QMutexLocker_Unlock(void* ptr) +{ + static_cast(ptr)->unlock(); +} + +void QMutexLocker_DestroyQMutexLocker(void* ptr) +{ + static_cast(ptr)->~QMutexLocker(); +} + +class MyQObject: public QObject +{ +public: + MyQObject(QObject *parent = Q_NULLPTR) : QObject(parent) {QObject_QObject_QRegisterMetaType();}; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; + ~MyQObject() { callbackQObject_DestroyQObject(this); }; +}; + +Q_DECLARE_METATYPE(MyQObject*) + +int QObject_QObject_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QObject_NewQObject(void* parent) +{ + return new MyQObject(static_cast(parent)); +} + +char QObject_BlockSignals(void* ptr, char block) +{ + return static_cast(ptr)->blockSignals(block != 0); +} + +void QObject_ChildEvent(void* ptr, void* event) +{ + static_cast(ptr)->childEvent(static_cast(event)); +} + +void QObject_ChildEventDefault(void* ptr, void* event) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTranslator::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimer::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimeLine::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThreadPool::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThread::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSocketNotifier::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSharedMemory::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSettings::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPluginLoader::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QObjectCleanupHandler::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QMimeData::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QLibrary::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QItemSelectionModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFutureWatcherBase::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSystemWatcher::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSelector::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QCoreApplication::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIODevice::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalTransition::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventTransition::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTransition::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QState::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QHistoryState::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFinalState::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractState::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractItemModel::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractEventDispatcher::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventLoop::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::childEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractAnimation::childEvent(static_cast(event)); + } else { + static_cast(ptr)->QObject::childEvent(static_cast(event)); + } +} + +struct QtCore_PackedList QObject_Children(void* ptr) +{ + return ({ QList* tmpValue53f390 = new QList(static_cast(ptr)->children()); QtCore_PackedList { tmpValue53f390, tmpValue53f390->size() }; }); +} + +void QObject_ConnectNotify(void* ptr, void* sign) +{ + static_cast(ptr)->connectNotify(*static_cast(sign)); +} + +void QObject_ConnectNotifyDefault(void* ptr, void* sign) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTranslator::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimer::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimeLine::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThreadPool::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThread::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSocketNotifier::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSharedMemory::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSettings::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPluginLoader::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QObjectCleanupHandler::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QMimeData::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QLibrary::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QItemSelectionModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFutureWatcherBase::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSystemWatcher::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSelector::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QCoreApplication::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIODevice::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalTransition::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventTransition::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTransition::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QState::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QHistoryState::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFinalState::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractState::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractItemModel::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractEventDispatcher::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventLoop::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::connectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractAnimation::connectNotify(*static_cast(sign)); + } else { + static_cast(ptr)->QObject::connectNotify(*static_cast(sign)); + } +} + +void QObject_CustomEvent(void* ptr, void* event) +{ + static_cast(ptr)->customEvent(static_cast(event)); +} + +void QObject_CustomEventDefault(void* ptr, void* event) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTranslator::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimer::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimeLine::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThreadPool::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThread::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSocketNotifier::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSharedMemory::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSettings::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPluginLoader::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QObjectCleanupHandler::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QMimeData::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QLibrary::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QItemSelectionModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFutureWatcherBase::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSystemWatcher::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSelector::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QCoreApplication::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIODevice::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalTransition::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventTransition::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTransition::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QState::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QHistoryState::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFinalState::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractState::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractItemModel::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractEventDispatcher::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventLoop::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::customEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractAnimation::customEvent(static_cast(event)); + } else { + static_cast(ptr)->QObject::customEvent(static_cast(event)); + } +} + +void QObject_DeleteLater(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); +} + +void QObject_DeleteLaterDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTranslator::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimer::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimeLine::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThreadPool::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThread::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSocketNotifier::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSharedMemory::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSettings::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPluginLoader::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QObjectCleanupHandler::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QMimeData::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QLibrary::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QItemSelectionModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFutureWatcherBase::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSystemWatcher::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSelector::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QCoreApplication::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIODevice::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalTransition::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventTransition::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTransition::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QState::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QHistoryState::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFinalState::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractState::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractItemModel::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractEventDispatcher::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventLoop::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::deleteLater(); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractAnimation::deleteLater(); + } else { + static_cast(ptr)->QObject::deleteLater(); + } +} + +void QObject_ConnectDestroyed(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QObject::destroyed), static_cast(ptr), static_cast(&MyQObject::Signal_Destroyed), static_cast(t)); +} + +void QObject_DisconnectDestroyed(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QObject::destroyed), static_cast(ptr), static_cast(&MyQObject::Signal_Destroyed)); +} + +void QObject_Destroyed(void* ptr, void* obj) +{ + static_cast(ptr)->destroyed(static_cast(obj)); +} + +char QObject_QObject_Disconnect(void* sender, char* sign, void* receiver, char* method) +{ + return QObject::disconnect(static_cast(sender), const_cast(sign), static_cast(receiver), const_cast(method)); +} + +char QObject_QObject_Disconnect2(void* sender, void* sign, void* receiver, void* method) +{ + return QObject::disconnect(static_cast(sender), *static_cast(sign), static_cast(receiver), *static_cast(method)); +} + +char QObject_Disconnect3(void* ptr, char* sign, void* receiver, char* method) +{ + return static_cast(ptr)->disconnect(const_cast(sign), static_cast(receiver), const_cast(method)); +} + +char QObject_Disconnect4(void* ptr, void* receiver, char* method) +{ + return static_cast(ptr)->disconnect(static_cast(receiver), const_cast(method)); +} + +void QObject_DisconnectNotify(void* ptr, void* sign) +{ + static_cast(ptr)->disconnectNotify(*static_cast(sign)); +} + +void QObject_DisconnectNotifyDefault(void* ptr, void* sign) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTranslator::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimer::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimeLine::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThreadPool::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThread::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSocketNotifier::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSharedMemory::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSettings::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPluginLoader::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QObjectCleanupHandler::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QMimeData::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QLibrary::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QItemSelectionModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFutureWatcherBase::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSystemWatcher::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSelector::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QCoreApplication::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIODevice::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalTransition::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventTransition::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTransition::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QState::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QHistoryState::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFinalState::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractState::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractItemModel::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractEventDispatcher::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventLoop::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::disconnectNotify(*static_cast(sign)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractAnimation::disconnectNotify(*static_cast(sign)); + } else { + static_cast(ptr)->QObject::disconnectNotify(*static_cast(sign)); + } +} + +void QObject_DumpObjectInfo(void* ptr) +{ + static_cast(ptr)->dumpObjectInfo(); +} + +void QObject_DumpObjectTree(void* ptr) +{ + static_cast(ptr)->dumpObjectTree(); +} + +struct QtCore_PackedList QObject_DynamicPropertyNames(void* ptr) +{ + return ({ QList* tmpValue9188e5 = new QList(static_cast(ptr)->dynamicPropertyNames()); QtCore_PackedList { tmpValue9188e5, tmpValue9188e5->size() }; }); +} + +char QObject_Event(void* ptr, void* e) +{ + return static_cast(ptr)->event(static_cast(e)); +} + +char QObject_EventDefault(void* ptr, void* e) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTranslator::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTimer::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTimeLine::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QThreadPool::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QThread::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSocketNotifier::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSharedMemory::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSettings::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPluginLoader::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QObjectCleanupHandler::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QMimeData::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QLibrary::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QItemSelectionModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFutureWatcherBase::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileSystemWatcher::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileSelector::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QCoreApplication::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIODevice::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSignalTransition::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QEventTransition::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTransition::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStateMachine::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QState::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QHistoryState::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFinalState::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractState::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractItemModel::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractEventDispatcher::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QEventLoop::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPropertyAnimation::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QVariantAnimation::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPauseAnimation::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSequentialAnimationGroup::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QParallelAnimationGroup::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAnimationGroup::event(static_cast(e)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractAnimation::event(static_cast(e)); + } else { + return static_cast(ptr)->QObject::event(static_cast(e)); + } +} + +char QObject_EventFilter(void* ptr, void* watched, void* event) +{ + return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); +} + +char QObject_EventFilterDefault(void* ptr, void* watched, void* event) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTranslator::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTimer::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTimeLine::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QThreadPool::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QThread::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSocketNotifier::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSharedMemory::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSettings::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPluginLoader::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QObjectCleanupHandler::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QMimeData::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QLibrary::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QItemSelectionModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFutureWatcherBase::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileSystemWatcher::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileSelector::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QCoreApplication::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QProcess::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSaveFile::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTemporaryFile::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFile::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFileDevice::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QBuffer::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIODevice::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSignalTransition::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QEventTransition::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTransition::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStateMachine::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QState::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QHistoryState::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QFinalState::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractState::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QConcatenateTablesProxyModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QTransposeProxyModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSortFilterProxyModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QIdentityProxyModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractProxyModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QStringListModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractListModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractTableModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractItemModel::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractEventDispatcher::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QEventLoop::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPropertyAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QVariantAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPauseAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QSequentialAnimationGroup::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QParallelAnimationGroup::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAnimationGroup::eventFilter(static_cast(watched), static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QAbstractAnimation::eventFilter(static_cast(watched), static_cast(event)); + } else { + return static_cast(ptr)->QObject::eventFilter(static_cast(watched), static_cast(event)); + } +} + +void* QObject_FindChild(void* ptr, struct QtCore_PackedString name, long long options) +{ + return static_cast(ptr)->findChild(QString::fromUtf8(name.data, name.len), static_cast(options)); +} + +struct QtCore_PackedList QObject_FindChildren(void* ptr, struct QtCore_PackedString name, long long options) +{ + return ({ QList* tmpValue03dce3 = new QList(static_cast(ptr)->findChildren(QString::fromUtf8(name.data, name.len), static_cast(options))); QtCore_PackedList { tmpValue03dce3, tmpValue03dce3->size() }; }); +} + +struct QtCore_PackedList QObject_FindChildren3(void* ptr, void* re, long long options) +{ + return ({ QList* tmpValuec8bf88 = new QList(static_cast(ptr)->findChildren(*static_cast(re), static_cast(options))); QtCore_PackedList { tmpValuec8bf88, tmpValuec8bf88->size() }; }); +} + +char QObject_Inherits(void* ptr, char* className) +{ + return static_cast(ptr)->inherits(const_cast(className)); +} + +void QObject_InstallEventFilter(void* ptr, void* filterObj) +{ + static_cast(ptr)->installEventFilter(static_cast(filterObj)); +} + +char QObject_IsSignalConnected(void* ptr, void* sign) +{ + return static_cast(ptr)->isSignalConnected(*static_cast(sign)); +} + +char QObject_IsWidgetType(void* ptr) +{ + return static_cast(ptr)->isWidgetType(); +} + +char QObject_IsWindowType(void* ptr) +{ + return static_cast(ptr)->isWindowType(); +} + +void QObject_KillTimer(void* ptr, int id) +{ + static_cast(ptr)->killTimer(id); +} + +void* QObject_MetaObject(void* ptr) +{ + return const_cast(static_cast(ptr)->metaObject()); +} + +void* QObject_MetaObjectDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QTranslator::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QTimer::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QTimeLine::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QThreadPool::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QThread::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSocketNotifier::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSharedMemory::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSettings::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QPluginLoader::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QObjectCleanupHandler::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QMimeData::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QLibrary::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QItemSelectionModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QFutureWatcherBase::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QFileSystemWatcher::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QFileSelector::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QCoreApplication::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QProcess::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSaveFile::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QTemporaryFile::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QFile::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QFileDevice::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QBuffer::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QIODevice::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSignalTransition::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QEventTransition::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractTransition::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QStateMachine::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QState::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QHistoryState::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QFinalState::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractState::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QConcatenateTablesProxyModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QTransposeProxyModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSortFilterProxyModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QIdentityProxyModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractProxyModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QStringListModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractListModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractTableModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractItemModel::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractEventDispatcher::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QEventLoop::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QPropertyAnimation::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QVariantAnimation::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QPauseAnimation::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QSequentialAnimationGroup::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QParallelAnimationGroup::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAnimationGroup::metaObject()); + } else if (dynamic_cast(static_cast(ptr))) { + return const_cast(static_cast(ptr)->QAbstractAnimation::metaObject()); + } else { + return const_cast(static_cast(ptr)->QObject::metaObject()); + } +} + +void QObject_MoveToThread(void* ptr, void* targetThread) +{ + static_cast(ptr)->moveToThread(static_cast(targetThread)); +} + +struct QtCore_PackedString QObject_ObjectName(void* ptr) +{ + return ({ QByteArray* te77be1 = new QByteArray(static_cast(ptr)->objectName().toUtf8()); QtCore_PackedString { const_cast(te77be1->prepend("WHITESPACE").constData()+10), te77be1->size()-10, te77be1 }; }); +} + +void QObject_ConnectObjectNameChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QObject::objectNameChanged, static_cast(ptr), static_cast(&MyQObject::Signal_ObjectNameChanged), static_cast(t)); +} + +void QObject_DisconnectObjectNameChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QObject::objectNameChanged, static_cast(ptr), static_cast(&MyQObject::Signal_ObjectNameChanged)); +} + +void* QObject_Parent(void* ptr) +{ + return static_cast(ptr)->parent(); +} + +void* QObject_Property(void* ptr, char* name) +{ + return new QVariant(static_cast(ptr)->property(const_cast(name))); +} + +int QObject_Receivers(void* ptr, char* sign) +{ + return static_cast(ptr)->receivers(const_cast(sign)); +} + +void QObject_RemoveEventFilter(void* ptr, void* obj) +{ + static_cast(ptr)->removeEventFilter(static_cast(obj)); +} + +void* QObject_Sender(void* ptr) +{ + return static_cast(ptr)->sender(); +} + +int QObject_SenderSignalIndex(void* ptr) +{ + return static_cast(ptr)->senderSignalIndex(); +} + +void QObject_SetObjectName(void* ptr, struct QtCore_PackedString name) +{ + static_cast(ptr)->setObjectName(QString::fromUtf8(name.data, name.len)); +} + +void QObject_SetParent(void* ptr, void* parent) +{ + static_cast(ptr)->setParent(static_cast(parent)); +} + +char QObject_SetProperty(void* ptr, char* name, void* value) +{ + return static_cast(ptr)->setProperty(const_cast(name), *static_cast(value)); +} + +char QObject_SignalsBlocked(void* ptr) +{ + return static_cast(ptr)->signalsBlocked(); +} + +int QObject_StartTimer(void* ptr, int interval, long long timerType) +{ + return static_cast(ptr)->startTimer(interval, static_cast(timerType)); +} + +void* QObject_Thread(void* ptr) +{ + return static_cast(ptr)->thread(); +} + +void QObject_TimerEvent(void* ptr, void* event) +{ + static_cast(ptr)->timerEvent(static_cast(event)); +} + +void QObject_TimerEventDefault(void* ptr, void* event) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTranslator::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimer::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTimeLine::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThreadPool::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QThread::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSocketNotifier::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSharedMemory::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSettings::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPluginLoader::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QObjectCleanupHandler::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QMimeData::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QLibrary::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QItemSelectionModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFutureWatcherBase::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSystemWatcher::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileSelector::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QCoreApplication::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QProcess::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSaveFile::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTemporaryFile::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFile::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFileDevice::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QBuffer::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIODevice::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSignalTransition::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventTransition::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTransition::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QState::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QHistoryState::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QFinalState::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractState::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QConcatenateTablesProxyModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QTransposeProxyModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSortFilterProxyModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QIdentityProxyModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractProxyModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStringListModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractListModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractTableModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractItemModel::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractEventDispatcher::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QEventLoop::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QVariantAnimation::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPauseAnimation::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QSequentialAnimationGroup::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QParallelAnimationGroup::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAnimationGroup::timerEvent(static_cast(event)); + } else if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QAbstractAnimation::timerEvent(static_cast(event)); + } else { + static_cast(ptr)->QObject::timerEvent(static_cast(event)); + } +} + +struct QtCore_PackedString QObject_QObject_Tr(char* sourceText, char* disambiguation, int n) +{ + return ({ QByteArray* te5b32b = new QByteArray(QObject::tr(const_cast(sourceText), const_cast(disambiguation), n).toUtf8()); QtCore_PackedString { const_cast(te5b32b->prepend("WHITESPACE").constData()+10), te5b32b->size()-10, te5b32b }; }); +} + +void QObject_DestroyQObject(void* ptr) +{ + static_cast(ptr)->~QObject(); +} + +void QObject_DestroyQObjectDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QObject_InvokeMethod(void* ptr, char* name, void* arg) +{ + QVariant returnArg; + if (arg) + QMetaObject::invokeMethod(static_cast(ptr), const_cast(name), Q_RETURN_ARG(QVariant, returnArg), Q_ARG(QVariant, *static_cast(arg))); + else + QMetaObject::invokeMethod(static_cast(ptr), const_cast(name), Q_RETURN_ARG(QVariant, returnArg)); + return new QVariant(returnArg); +} + +void* QObject_ToVariant(void* ptr) +{ + return new QVariant(QVariant::fromValue(static_cast(ptr))); +} + +void* QObject___children_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObject___children_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObject___children_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObject___dynamicPropertyNames_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QObject___dynamicPropertyNames_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QObject___dynamicPropertyNames_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObject___findChildren_atList(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObject___findChildren_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObject___findChildren_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObject___findChildren_atList2(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObject___findChildren_setList2(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObject___findChildren_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObject___findChildren_atList3(void* ptr, int i) +{ + return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObject___findChildren_setList3(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObject___findChildren_newList3(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQObjectCleanupHandler: public QObjectCleanupHandler +{ +public: + MyQObjectCleanupHandler() : QObjectCleanupHandler() {QObjectCleanupHandler_QObjectCleanupHandler_QRegisterMetaType();}; + ~MyQObjectCleanupHandler() { callbackQObjectCleanupHandler_DestroyQObjectCleanupHandler(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QObjectCleanupHandler*) +Q_DECLARE_METATYPE(MyQObjectCleanupHandler*) + +int QObjectCleanupHandler_QObjectCleanupHandler_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QObjectCleanupHandler_NewQObjectCleanupHandler() +{ + return new MyQObjectCleanupHandler(); +} + +void* QObjectCleanupHandler_Add(void* ptr, void* object) +{ + return static_cast(ptr)->add(static_cast(object)); +} + +void QObjectCleanupHandler_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +char QObjectCleanupHandler_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +void QObjectCleanupHandler_Remove(void* ptr, void* object) +{ + static_cast(ptr)->remove(static_cast(object)); +} + +void QObjectCleanupHandler_DestroyQObjectCleanupHandler(void* ptr) +{ + static_cast(ptr)->~QObjectCleanupHandler(); +} + +void QObjectCleanupHandler_DestroyQObjectCleanupHandlerDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QObjectCleanupHandler___cleanupObjects_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObjectCleanupHandler___cleanupObjects_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObjectCleanupHandler___cleanupObjects_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObjectCleanupHandler___setCleanupObjects__atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObjectCleanupHandler___setCleanupObjects__setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObjectCleanupHandler___setCleanupObjects__newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObjectData___children_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObjectData___children_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObjectData___children_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QObjectData___setChildren__atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QObjectData___setChildren__setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QObjectData___setChildren__newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QOperatingSystemVersion*) +void* QOperatingSystemVersion_NewQOperatingSystemVersion2(long long osType, int vmajor, int vminor, int vmicro) +{ + return new QOperatingSystemVersion(static_cast(osType), vmajor, vminor, vmicro); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_Current() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::current()); +} + +long long QOperatingSystemVersion_QOperatingSystemVersion_CurrentType() +{ + return QOperatingSystemVersion::currentType(); +} + +int QOperatingSystemVersion_MajorVersion(void* ptr) +{ + return static_cast(ptr)->majorVersion(); +} + +int QOperatingSystemVersion_MicroVersion(void* ptr) +{ + return static_cast(ptr)->microVersion(); +} + +int QOperatingSystemVersion_MinorVersion(void* ptr) +{ + return static_cast(ptr)->minorVersion(); +} + +struct QtCore_PackedString QOperatingSystemVersion_Name(void* ptr) +{ + return ({ QByteArray* t3696c4 = new QByteArray(static_cast(ptr)->name().toUtf8()); QtCore_PackedString { const_cast(t3696c4->prepend("WHITESPACE").constData()+10), t3696c4->size()-10, t3696c4 }; }); +} + +int QOperatingSystemVersion_SegmentCount(void* ptr) +{ + return static_cast(ptr)->segmentCount(); +} + +long long QOperatingSystemVersion_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_Windows7() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::Windows7); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_Windows8() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::Windows8); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_Windows8_1() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::Windows8_1); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_Windows10() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::Windows10); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_OSXMavericks() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::OSXMavericks); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_OSXYosemite() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::OSXYosemite); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_OSXElCapitan() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::OSXElCapitan); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_MacOSSierra() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::MacOSSierra); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_MacOSHighSierra() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::MacOSHighSierra); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_MacOSMojave() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::MacOSMojave); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidJellyBean() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidJellyBean); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidJellyBean_MR1() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidJellyBean_MR1); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidJellyBean_MR2() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidJellyBean_MR2); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidKitKat() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidKitKat); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidLollipop() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidLollipop); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidLollipop_MR1() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidLollipop_MR1); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidMarshmallow() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidMarshmallow); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidNougat() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidNougat); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidNougat_MR1() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidNougat_MR1); +} + +void* QOperatingSystemVersion_QOperatingSystemVersion_AndroidOreo() +{ + return new QOperatingSystemVersion(QOperatingSystemVersion::AndroidOreo); +} + +void* QOperatingSystemVersion_NewQOperatingSystemVersion(void* other) +{ + return new QOperatingSystemVersion(*static_cast(other)); +} + +class MyQParallelAnimationGroup: public QParallelAnimationGroup +{ +public: + MyQParallelAnimationGroup(QObject *parent = Q_NULLPTR) : QParallelAnimationGroup(parent) {QParallelAnimationGroup_QParallelAnimationGroup_QRegisterMetaType();}; + int duration() const { return callbackQParallelAnimationGroup_Duration(const_cast(static_cast(this))); }; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + void updateCurrentTime(int currentTime) { callbackQParallelAnimationGroup_UpdateCurrentTime(this, currentTime); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + ~MyQParallelAnimationGroup() { callbackQParallelAnimationGroup_DestroyQParallelAnimationGroup(this); }; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QParallelAnimationGroup*) +Q_DECLARE_METATYPE(MyQParallelAnimationGroup*) + +int QParallelAnimationGroup_QParallelAnimationGroup_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QParallelAnimationGroup_NewQParallelAnimationGroup(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQParallelAnimationGroup(static_cast(parent)); + } else { + return new MyQParallelAnimationGroup(static_cast(parent)); + } +} + +int QParallelAnimationGroup_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +int QParallelAnimationGroup_DurationDefault(void* ptr) +{ + return static_cast(ptr)->QParallelAnimationGroup::duration(); +} + +void QParallelAnimationGroup_UpdateCurrentTime(void* ptr, int currentTime) +{ + static_cast(ptr)->updateCurrentTime(currentTime); +} + +void QParallelAnimationGroup_UpdateCurrentTimeDefault(void* ptr, int currentTime) +{ + static_cast(ptr)->QParallelAnimationGroup::updateCurrentTime(currentTime); +} + +void QParallelAnimationGroup_DestroyQParallelAnimationGroup(void* ptr) +{ + static_cast(ptr)->~QParallelAnimationGroup(); +} + +void QParallelAnimationGroup_DestroyQParallelAnimationGroupDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQPauseAnimation: public QPauseAnimation +{ +public: + MyQPauseAnimation(QObject *parent = Q_NULLPTR) : QPauseAnimation(parent) {QPauseAnimation_QPauseAnimation_QRegisterMetaType();}; + MyQPauseAnimation(int msecs, QObject *parent = Q_NULLPTR) : QPauseAnimation(msecs, parent) {QPauseAnimation_QPauseAnimation_QRegisterMetaType();}; + int duration() const { return callbackQPauseAnimation_Duration(const_cast(static_cast(this))); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void updateCurrentTime(int vin) { callbackQPauseAnimation_UpdateCurrentTime(this, vin); }; + ~MyQPauseAnimation() { callbackQPauseAnimation_DestroyQPauseAnimation(this); }; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QPauseAnimation*) +Q_DECLARE_METATYPE(MyQPauseAnimation*) + +int QPauseAnimation_QPauseAnimation_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QPauseAnimation_NewQPauseAnimation(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(static_cast(parent)); + } else { + return new MyQPauseAnimation(static_cast(parent)); + } +} + +void* QPauseAnimation_NewQPauseAnimation2(int msecs, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } else { + return new MyQPauseAnimation(msecs, static_cast(parent)); + } +} + +int QPauseAnimation_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +int QPauseAnimation_DurationDefault(void* ptr) +{ + return static_cast(ptr)->QPauseAnimation::duration(); +} + +void QPauseAnimation_SetDuration(void* ptr, int msecs) +{ + static_cast(ptr)->setDuration(msecs); +} + +void QPauseAnimation_UpdateCurrentTime(void* ptr, int vin) +{ + static_cast(ptr)->updateCurrentTime(vin); +} + +void QPauseAnimation_UpdateCurrentTimeDefault(void* ptr, int vin) +{ + static_cast(ptr)->QPauseAnimation::updateCurrentTime(vin); +} + +void QPauseAnimation_DestroyQPauseAnimation(void* ptr) +{ + static_cast(ptr)->~QPauseAnimation(); +} + +void QPauseAnimation_DestroyQPauseAnimationDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QPersistentModelIndex*) +void* QPersistentModelIndex_NewQPersistentModelIndex2(void* index) +{ + return new QPersistentModelIndex(*static_cast(index)); +} + +void* QPersistentModelIndex_NewQPersistentModelIndex3(void* other) +{ + return new QPersistentModelIndex(*static_cast(other)); +} + +void* QPersistentModelIndex_NewQPersistentModelIndex4(void* other) +{ + return new QPersistentModelIndex(*static_cast(other)); +} + +int QPersistentModelIndex_Column(void* ptr) +{ + return static_cast(ptr)->column(); +} + +void* QPersistentModelIndex_Data(void* ptr, int role) +{ + return new QVariant(static_cast(ptr)->data(role)); +} + +long long QPersistentModelIndex_Flags(void* ptr) +{ + return static_cast(ptr)->flags(); +} + +char QPersistentModelIndex_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +void* QPersistentModelIndex_Model(void* ptr) +{ + return const_cast(static_cast(ptr)->model()); +} + +void* QPersistentModelIndex_Parent(void* ptr) +{ + return new QModelIndex(static_cast(ptr)->parent()); +} + +int QPersistentModelIndex_Row(void* ptr) +{ + return static_cast(ptr)->row(); +} + +void* QPersistentModelIndex_Sibling(void* ptr, int row, int column) +{ + return new QModelIndex(static_cast(ptr)->sibling(row, column)); +} + +void QPersistentModelIndex_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +class MyQPluginLoader: public QPluginLoader +{ +public: + MyQPluginLoader(QObject *parent = Q_NULLPTR) : QPluginLoader(parent) {QPluginLoader_QPluginLoader_QRegisterMetaType();}; + MyQPluginLoader(const QString &fileName, QObject *parent = Q_NULLPTR) : QPluginLoader(fileName, parent) {QPluginLoader_QPluginLoader_QRegisterMetaType();}; + ~MyQPluginLoader() { callbackQPluginLoader_DestroyQPluginLoader(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QPluginLoader*) +Q_DECLARE_METATYPE(MyQPluginLoader*) + +int QPluginLoader_QPluginLoader_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QPluginLoader_NewQPluginLoader(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(static_cast(parent)); + } else { + return new MyQPluginLoader(static_cast(parent)); + } +} + +void* QPluginLoader_NewQPluginLoader2(struct QtCore_PackedString fileName, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } else { + return new MyQPluginLoader(QString::fromUtf8(fileName.data, fileName.len), static_cast(parent)); + } +} + +struct QtCore_PackedString QPluginLoader_ErrorString(void* ptr) +{ + return ({ QByteArray* tc09de6 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(tc09de6->prepend("WHITESPACE").constData()+10), tc09de6->size()-10, tc09de6 }; }); +} + +struct QtCore_PackedString QPluginLoader_FileName(void* ptr) +{ + return ({ QByteArray* t54ffa7 = new QByteArray(static_cast(ptr)->fileName().toUtf8()); QtCore_PackedString { const_cast(t54ffa7->prepend("WHITESPACE").constData()+10), t54ffa7->size()-10, t54ffa7 }; }); +} + +void* QPluginLoader_Instance(void* ptr) +{ + return static_cast(ptr)->instance(); +} + +char QPluginLoader_IsLoaded(void* ptr) +{ + return static_cast(ptr)->isLoaded(); +} + +char QPluginLoader_Load(void* ptr) +{ + return static_cast(ptr)->load(); +} + +long long QPluginLoader_LoadHints(void* ptr) +{ + return static_cast(ptr)->loadHints(); +} + +void* QPluginLoader_MetaData(void* ptr) +{ + return new QJsonObject(static_cast(ptr)->metaData()); +} + +void QPluginLoader_SetFileName(void* ptr, struct QtCore_PackedString fileName) +{ + static_cast(ptr)->setFileName(QString::fromUtf8(fileName.data, fileName.len)); +} + +void QPluginLoader_SetLoadHints(void* ptr, long long loadHints) +{ + static_cast(ptr)->setLoadHints(static_cast(loadHints)); +} + +struct QtCore_PackedList QPluginLoader_QPluginLoader_StaticInstances() +{ + return ({ QList* tmpValue529eec = new QList(QPluginLoader::staticInstances()); QtCore_PackedList { tmpValue529eec, tmpValue529eec->size() }; }); +} + +char QPluginLoader_Unload(void* ptr) +{ + return static_cast(ptr)->unload(); +} + +void QPluginLoader_DestroyQPluginLoader(void* ptr) +{ + static_cast(ptr)->~QPluginLoader(); +} + +void QPluginLoader_DestroyQPluginLoaderDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QPluginLoader___staticInstances_atList(void* ptr, int i) +{ + return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QPluginLoader___staticInstances_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QPluginLoader___staticInstances_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void QPluginLoader___staticPlugins_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QPluginLoader___staticPlugins_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +Q_DECLARE_METATYPE(QPoint) +Q_DECLARE_METATYPE(QPoint*) +void* QPoint_NewQPoint() +{ + return new QPoint(); +} + +void* QPoint_NewQPoint2(int xpos, int ypos) +{ + return new QPoint(xpos, ypos); +} + +int QPoint_QPoint_DotProduct(void* p1, void* p2) +{ + return QPoint::dotProduct(*static_cast(p1), *static_cast(p2)); +} + +char QPoint_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +int QPoint_ManhattanLength(void* ptr) +{ + return static_cast(ptr)->manhattanLength(); +} + +int QPoint_Rx(void* ptr) +{ + return static_cast(ptr)->rx(); +} + +int QPoint_Ry(void* ptr) +{ + return static_cast(ptr)->ry(); +} + +void QPoint_SetX(void* ptr, int x) +{ + static_cast(ptr)->setX(x); +} + +void QPoint_SetY(void* ptr, int y) +{ + static_cast(ptr)->setY(y); +} + +int QPoint_X(void* ptr) +{ + return static_cast(ptr)->x(); +} + +int QPoint_Y(void* ptr) +{ + return static_cast(ptr)->y(); +} + +Q_DECLARE_METATYPE(QPointF) +Q_DECLARE_METATYPE(QPointF*) +void* QPointF_NewQPointF() +{ + return new QPointF(); +} + +void* QPointF_NewQPointF2(void* point) +{ + return new QPointF(*static_cast(point)); +} + +void* QPointF_NewQPointF3(double xpos, double ypos) +{ + return new QPointF(xpos, ypos); +} + +double QPointF_QPointF_DotProduct(void* p1, void* p2) +{ + return QPointF::dotProduct(*static_cast(p1), *static_cast(p2)); +} + +char QPointF_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +double QPointF_ManhattanLength(void* ptr) +{ + return static_cast(ptr)->manhattanLength(); +} + +double QPointF_Rx(void* ptr) +{ + return static_cast(ptr)->rx(); +} + +double QPointF_Ry(void* ptr) +{ + return static_cast(ptr)->ry(); +} + +void QPointF_SetX(void* ptr, double x) +{ + static_cast(ptr)->setX(x); +} + +void QPointF_SetY(void* ptr, double y) +{ + static_cast(ptr)->setY(y); +} + +void* QPointF_ToPoint(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->toPoint(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +double QPointF_X(void* ptr) +{ + return static_cast(ptr)->x(); +} + +double QPointF_Y(void* ptr) +{ + return static_cast(ptr)->y(); +} + +class MyQProcess: public QProcess +{ +public: + MyQProcess(QObject *parent = Q_NULLPTR) : QProcess(parent) {QProcess_QProcess_QRegisterMetaType();}; + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void close() { callbackQIODevice_Close(this); }; + void Signal_ErrorOccurred(QProcess::ProcessError error) { callbackQProcess_ErrorOccurred(this, error); }; + void Signal_Finished(int exitCode, QProcess::ExitStatus exitStatus) { callbackQProcess_Finished(this, exitCode, exitStatus); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + void kill() { callbackQProcess_Kill(this); }; + bool open(QIODevice::OpenMode mode) { return callbackQIODevice_Open(this, mode) != 0; }; + qint64 readData(char * data, qint64 maxlen) { QtCore_PackedString dataPacked = { data, maxlen, NULL };return callbackQProcess_ReadData(this, dataPacked, maxlen); }; + void Signal_ReadyReadStandardError() { callbackQProcess_ReadyReadStandardError(this); }; + void Signal_ReadyReadStandardOutput() { callbackQProcess_ReadyReadStandardOutput(this); }; + void setupChildProcess() { callbackQProcess_SetupChildProcess(this); }; + void Signal_Started() { callbackQProcess_Started(this); }; + void Signal_StateChanged(QProcess::ProcessState newState) { callbackQProcess_StateChanged(this, newState); }; + void terminate() { callbackQProcess_Terminate(this); }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + qint64 writeData(const char * data, qint64 l) { QtCore_PackedString dataPacked = { const_cast(data), l, NULL };return callbackQProcess_WriteData(this, dataPacked, l); }; + ~MyQProcess() { callbackQProcess_DestroyQProcess(this); }; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + qint64 readLineData(char * data, qint64 maxSize) { QtCore_PackedString dataPacked = { data, maxSize, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxSize); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QProcess*) +Q_DECLARE_METATYPE(MyQProcess*) + +int QProcess_QProcess_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QProcess_NewQProcess(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQProcess(static_cast(parent)); + } else { + return new MyQProcess(static_cast(parent)); + } +} + +struct QtCore_PackedString QProcess_Arguments(void* ptr) +{ + return ({ QByteArray* tab219c = new QByteArray(static_cast(ptr)->arguments().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tab219c->prepend("WHITESPACE").constData()+10), tab219c->size()-10, tab219c }; }); +} + +void QProcess_CloseReadChannel(void* ptr, long long channel) +{ + static_cast(ptr)->closeReadChannel(static_cast(channel)); +} + +void QProcess_CloseWriteChannel(void* ptr) +{ + static_cast(ptr)->closeWriteChannel(); +} + +long long QProcess_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +void QProcess_ConnectErrorOccurred(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast(&QProcess::errorOccurred), static_cast(ptr), static_cast(&MyQProcess::Signal_ErrorOccurred), static_cast(t)); +} + +void QProcess_DisconnectErrorOccurred(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QProcess::errorOccurred), static_cast(ptr), static_cast(&MyQProcess::Signal_ErrorOccurred)); +} + +void QProcess_ErrorOccurred(void* ptr, long long error) +{ + static_cast(ptr)->errorOccurred(static_cast(error)); +} + +int QProcess_QProcess_Execute(struct QtCore_PackedString program, struct QtCore_PackedString arguments) +{ + return QProcess::execute(QString::fromUtf8(program.data, program.len), QString::fromUtf8(arguments.data, arguments.len).split("¡¦!", QString::SkipEmptyParts)); +} + +int QProcess_QProcess_Execute2(struct QtCore_PackedString command) +{ + return QProcess::execute(QString::fromUtf8(command.data, command.len)); +} + +int QProcess_ExitCode(void* ptr) +{ + return static_cast(ptr)->exitCode(); +} + +long long QProcess_ExitStatus(void* ptr) +{ + return static_cast(ptr)->exitStatus(); +} + +void QProcess_ConnectFinished(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), static_cast(&QProcess::finished), static_cast(ptr), static_cast(&MyQProcess::Signal_Finished), static_cast(t)); +} + +void QProcess_DisconnectFinished(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QProcess::finished), static_cast(ptr), static_cast(&MyQProcess::Signal_Finished)); +} + +void QProcess_Finished(void* ptr, int exitCode, long long exitStatus) +{ + static_cast(ptr)->finished(exitCode, static_cast(exitStatus)); +} + +long long QProcess_InputChannelMode(void* ptr) +{ + return static_cast(ptr)->inputChannelMode(); +} + +void QProcess_Kill(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "kill"); +} + +void QProcess_KillDefault(void* ptr) +{ + static_cast(ptr)->QProcess::kill(); +} + +struct QtCore_PackedString QProcess_NativeArguments(void* ptr) +{ +#ifdef Q_OS_WIN + return ({ QByteArray* t56488a = new QByteArray(static_cast(ptr)->nativeArguments().toUtf8()); QtCore_PackedString { const_cast(t56488a->prepend("WHITESPACE").constData()+10), t56488a->size()-10, t56488a }; }); +#else + return QtCore_PackedString {}; +#endif +} + +struct QtCore_PackedString QProcess_QProcess_NullDevice() +{ + return ({ QByteArray* td290b2 = new QByteArray(QProcess::nullDevice().toUtf8()); QtCore_PackedString { const_cast(td290b2->prepend("WHITESPACE").constData()+10), td290b2->size()-10, td290b2 }; }); +} + +long long QProcess_ProcessChannelMode(void* ptr) +{ + return static_cast(ptr)->processChannelMode(); +} + +void* QProcess_ProcessEnvironment(void* ptr) +{ + return new QProcessEnvironment(static_cast(ptr)->processEnvironment()); +} + +long long QProcess_ProcessId(void* ptr) +{ + return static_cast(ptr)->processId(); +} + +struct QtCore_PackedString QProcess_Program(void* ptr) +{ + return ({ QByteArray* t5d7bda = new QByteArray(static_cast(ptr)->program().toUtf8()); QtCore_PackedString { const_cast(t5d7bda->prepend("WHITESPACE").constData()+10), t5d7bda->size()-10, t5d7bda }; }); +} + +void* QProcess_ReadAllStandardError(void* ptr) +{ + return new QByteArray(static_cast(ptr)->readAllStandardError()); +} + +void* QProcess_ReadAllStandardOutput(void* ptr) +{ + return new QByteArray(static_cast(ptr)->readAllStandardOutput()); +} + +long long QProcess_ReadChannel(void* ptr) +{ + return static_cast(ptr)->readChannel(); +} + +long long QProcess_ReadData(void* ptr, char* data, long long maxlen) +{ + return static_cast(ptr)->readData(data, maxlen); +} + +long long QProcess_ReadDataDefault(void* ptr, char* data, long long maxlen) +{ + return static_cast(ptr)->QProcess::readData(data, maxlen); +} + +void QProcess_ConnectReadyReadStandardError(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QProcess::readyReadStandardError, static_cast(ptr), static_cast(&MyQProcess::Signal_ReadyReadStandardError), static_cast(t)); +} + +void QProcess_DisconnectReadyReadStandardError(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QProcess::readyReadStandardError, static_cast(ptr), static_cast(&MyQProcess::Signal_ReadyReadStandardError)); +} + +void QProcess_ConnectReadyReadStandardOutput(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QProcess::readyReadStandardOutput, static_cast(ptr), static_cast(&MyQProcess::Signal_ReadyReadStandardOutput), static_cast(t)); +} + +void QProcess_DisconnectReadyReadStandardOutput(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QProcess::readyReadStandardOutput, static_cast(ptr), static_cast(&MyQProcess::Signal_ReadyReadStandardOutput)); +} + +void QProcess_SetArguments(void* ptr, struct QtCore_PackedString arguments) +{ + static_cast(ptr)->setArguments(QString::fromUtf8(arguments.data, arguments.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QProcess_SetInputChannelMode(void* ptr, long long mode) +{ + static_cast(ptr)->setInputChannelMode(static_cast(mode)); +} + +void QProcess_SetNativeArguments(void* ptr, struct QtCore_PackedString arguments) +{ +#ifdef Q_OS_WIN + static_cast(ptr)->setNativeArguments(QString::fromUtf8(arguments.data, arguments.len)); +#endif +} + +void QProcess_SetProcessChannelMode(void* ptr, long long mode) +{ + static_cast(ptr)->setProcessChannelMode(static_cast(mode)); +} + +void QProcess_SetProcessEnvironment(void* ptr, void* environment) +{ + static_cast(ptr)->setProcessEnvironment(*static_cast(environment)); +} + +void QProcess_SetProcessState(void* ptr, long long state) +{ + static_cast(ptr)->setProcessState(static_cast(state)); +} + +void QProcess_SetProgram(void* ptr, struct QtCore_PackedString program) +{ + static_cast(ptr)->setProgram(QString::fromUtf8(program.data, program.len)); +} + +void QProcess_SetReadChannel(void* ptr, long long channel) +{ + static_cast(ptr)->setReadChannel(static_cast(channel)); +} + +void QProcess_SetStandardErrorFile(void* ptr, struct QtCore_PackedString fileName, long long mode) +{ + static_cast(ptr)->setStandardErrorFile(QString::fromUtf8(fileName.data, fileName.len), static_cast(mode)); +} + +void QProcess_SetStandardInputFile(void* ptr, struct QtCore_PackedString fileName) +{ + static_cast(ptr)->setStandardInputFile(QString::fromUtf8(fileName.data, fileName.len)); +} + +void QProcess_SetStandardOutputFile(void* ptr, struct QtCore_PackedString fileName, long long mode) +{ + static_cast(ptr)->setStandardOutputFile(QString::fromUtf8(fileName.data, fileName.len), static_cast(mode)); +} + +void QProcess_SetStandardOutputProcess(void* ptr, void* destination) +{ + static_cast(ptr)->setStandardOutputProcess(static_cast(destination)); +} + +void QProcess_SetWorkingDirectory(void* ptr, struct QtCore_PackedString dir) +{ + static_cast(ptr)->setWorkingDirectory(QString::fromUtf8(dir.data, dir.len)); +} + +void QProcess_SetupChildProcess(void* ptr) +{ + static_cast(ptr)->setupChildProcess(); +} + +void QProcess_SetupChildProcessDefault(void* ptr) +{ + static_cast(ptr)->QProcess::setupChildProcess(); +} + +void QProcess_Start(void* ptr, struct QtCore_PackedString program, struct QtCore_PackedString arguments, long long mode) +{ + static_cast(ptr)->start(QString::fromUtf8(program.data, program.len), QString::fromUtf8(arguments.data, arguments.len).split("¡¦!", QString::SkipEmptyParts), static_cast(mode)); +} + +void QProcess_Start2(void* ptr, struct QtCore_PackedString command, long long mode) +{ + static_cast(ptr)->start(QString::fromUtf8(command.data, command.len), static_cast(mode)); +} + +void QProcess_Start3(void* ptr, long long mode) +{ + static_cast(ptr)->start(static_cast(mode)); +} + +char QProcess_StartDetached(void* ptr, long long pid) +{ + return static_cast(ptr)->startDetached(&pid); +} + +char QProcess_QProcess_StartDetached2(struct QtCore_PackedString program, struct QtCore_PackedString arguments, struct QtCore_PackedString workingDirectory, long long pid) +{ + return QProcess::startDetached(QString::fromUtf8(program.data, program.len), QString::fromUtf8(arguments.data, arguments.len).split("¡¦!", QString::SkipEmptyParts), QString::fromUtf8(workingDirectory.data, workingDirectory.len), &pid); +} + +char QProcess_QProcess_StartDetached3(struct QtCore_PackedString command) +{ + return QProcess::startDetached(QString::fromUtf8(command.data, command.len)); +} + +void QProcess_ConnectStarted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QProcess::started, static_cast(ptr), static_cast(&MyQProcess::Signal_Started), static_cast(t)); +} + +void QProcess_DisconnectStarted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QProcess::started, static_cast(ptr), static_cast(&MyQProcess::Signal_Started)); +} + +long long QProcess_State(void* ptr) +{ + return static_cast(ptr)->state(); +} + +void QProcess_ConnectStateChanged(void* ptr, long long t) +{ + qRegisterMetaType(); + QObject::connect(static_cast(ptr), &QProcess::stateChanged, static_cast(ptr), static_cast(&MyQProcess::Signal_StateChanged), static_cast(t)); +} + +void QProcess_DisconnectStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QProcess::stateChanged, static_cast(ptr), static_cast(&MyQProcess::Signal_StateChanged)); +} + +struct QtCore_PackedString QProcess_QProcess_SystemEnvironment() +{ + return ({ QByteArray* td5ad45 = new QByteArray(QProcess::systemEnvironment().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(td5ad45->prepend("WHITESPACE").constData()+10), td5ad45->size()-10, td5ad45 }; }); +} + +void QProcess_Terminate(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "terminate"); +} + +void QProcess_TerminateDefault(void* ptr) +{ + static_cast(ptr)->QProcess::terminate(); +} + +char QProcess_WaitForFinished(void* ptr, int msecs) +{ + return static_cast(ptr)->waitForFinished(msecs); +} + +char QProcess_WaitForStarted(void* ptr, int msecs) +{ + return static_cast(ptr)->waitForStarted(msecs); +} + +struct QtCore_PackedString QProcess_WorkingDirectory(void* ptr) +{ + return ({ QByteArray* t55a1e5 = new QByteArray(static_cast(ptr)->workingDirectory().toUtf8()); QtCore_PackedString { const_cast(t55a1e5->prepend("WHITESPACE").constData()+10), t55a1e5->size()-10, t55a1e5 }; }); +} + +long long QProcess_WriteData(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->writeData(const_cast(data), l); +} + +long long QProcess_WriteDataDefault(void* ptr, char* data, long long l) +{ + return static_cast(ptr)->QProcess::writeData(const_cast(data), l); +} + +void QProcess_DestroyQProcess(void* ptr) +{ + static_cast(ptr)->~QProcess(); +} + +void QProcess_DestroyQProcessDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QProcessEnvironment) +Q_DECLARE_METATYPE(QProcessEnvironment*) +void* QProcessEnvironment_NewQProcessEnvironment() +{ + return new QProcessEnvironment(); +} + +void* QProcessEnvironment_NewQProcessEnvironment2(void* other) +{ + return new QProcessEnvironment(*static_cast(other)); +} + +void QProcessEnvironment_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +char QProcessEnvironment_Contains(void* ptr, struct QtCore_PackedString name) +{ + return static_cast(ptr)->contains(QString::fromUtf8(name.data, name.len)); +} + +void QProcessEnvironment_Insert(void* ptr, struct QtCore_PackedString name, struct QtCore_PackedString value) +{ + static_cast(ptr)->insert(QString::fromUtf8(name.data, name.len), QString::fromUtf8(value.data, value.len)); +} + +void QProcessEnvironment_Insert2(void* ptr, void* e) +{ + static_cast(ptr)->insert(*static_cast(e)); +} + +char QProcessEnvironment_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +struct QtCore_PackedString QProcessEnvironment_Keys(void* ptr) +{ + return ({ QByteArray* tf1d987 = new QByteArray(static_cast(ptr)->keys().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf1d987->prepend("WHITESPACE").constData()+10), tf1d987->size()-10, tf1d987 }; }); +} + +void QProcessEnvironment_Remove(void* ptr, struct QtCore_PackedString name) +{ + static_cast(ptr)->remove(QString::fromUtf8(name.data, name.len)); +} + +void QProcessEnvironment_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QProcessEnvironment_QProcessEnvironment_SystemEnvironment() +{ + return new QProcessEnvironment(QProcessEnvironment::systemEnvironment()); +} + +struct QtCore_PackedString QProcessEnvironment_ToStringList(void* ptr) +{ + return ({ QByteArray* tf595c1 = new QByteArray(static_cast(ptr)->toStringList().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf595c1->prepend("WHITESPACE").constData()+10), tf595c1->size()-10, tf595c1 }; }); +} + +struct QtCore_PackedString QProcessEnvironment_Value(void* ptr, struct QtCore_PackedString name, struct QtCore_PackedString defaultValue) +{ + return ({ QByteArray* t6b2311 = new QByteArray(static_cast(ptr)->value(QString::fromUtf8(name.data, name.len), QString::fromUtf8(defaultValue.data, defaultValue.len)).toUtf8()); QtCore_PackedString { const_cast(t6b2311->prepend("WHITESPACE").constData()+10), t6b2311->size()-10, t6b2311 }; }); +} + +void QProcessEnvironment_DestroyQProcessEnvironment(void* ptr) +{ + static_cast(ptr)->~QProcessEnvironment(); +} + +class MyQPropertyAnimation: public QPropertyAnimation +{ +public: + MyQPropertyAnimation(QObject *parent = Q_NULLPTR) : QPropertyAnimation(parent) {QPropertyAnimation_QPropertyAnimation_QRegisterMetaType();}; + MyQPropertyAnimation(QObject *target, const QByteArray &propertyName, QObject *parent = Q_NULLPTR) : QPropertyAnimation(target, propertyName, parent) {QPropertyAnimation_QPropertyAnimation_QRegisterMetaType();}; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + void updateCurrentValue(const QVariant & value) { callbackQVariantAnimation_UpdateCurrentValue(this, const_cast(&value)); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + ~MyQPropertyAnimation() { callbackQPropertyAnimation_DestroyQPropertyAnimation(this); }; + int duration() const { return callbackQVariantAnimation_Duration(const_cast(static_cast(this))); }; + QVariant interpolated(const QVariant & from, const QVariant & to, qreal progress) const { return *static_cast(callbackQVariantAnimation_Interpolated(const_cast(static_cast(this)), const_cast(&from), const_cast(&to), progress)); }; + void updateCurrentTime(int vin) { callbackQVariantAnimation_UpdateCurrentTime(this, vin); }; + void Signal_ValueChanged(const QVariant & value) { callbackQVariantAnimation_ValueChanged(this, const_cast(&value)); }; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QPropertyAnimation*) +Q_DECLARE_METATYPE(MyQPropertyAnimation*) + +int QPropertyAnimation_QPropertyAnimation_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QPropertyAnimation_NewQPropertyAnimation(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQPropertyAnimation(static_cast(parent)); + } else { + return new MyQPropertyAnimation(static_cast(parent)); + } +} + +void* QPropertyAnimation_NewQPropertyAnimation2(void* target, void* propertyName, void* parent) +{ + if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else if (dynamic_cast(static_cast(target))) { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } else { + return new MyQPropertyAnimation(static_cast(target), *static_cast(propertyName), static_cast(parent)); + } +} + +void* QPropertyAnimation_PropertyName(void* ptr) +{ + return new QByteArray(static_cast(ptr)->propertyName()); +} + +void QPropertyAnimation_SetPropertyName(void* ptr, void* propertyName) +{ + static_cast(ptr)->setPropertyName(*static_cast(propertyName)); +} + +void QPropertyAnimation_SetTargetObject(void* ptr, void* target) +{ + static_cast(ptr)->setTargetObject(static_cast(target)); +} + +void* QPropertyAnimation_TargetObject(void* ptr) +{ + return static_cast(ptr)->targetObject(); +} + +void QPropertyAnimation_DestroyQPropertyAnimation(void* ptr) +{ + static_cast(ptr)->~QPropertyAnimation(); +} + +void QPropertyAnimation_DestroyQPropertyAnimationDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QRandomGenerator*) +void* QRandomGenerator_NewQRandomGenerator(unsigned int seedValue) +{ + return new QRandomGenerator(seedValue); +} + +void* QRandomGenerator_NewQRandomGenerator5(unsigned int begin, unsigned int end) +{ + return new QRandomGenerator(const_cast(&begin), const_cast(&end)); +} + +void* QRandomGenerator_NewQRandomGenerator6(void* other) +{ + return new QRandomGenerator(*static_cast(other)); +} + +double QRandomGenerator_Bounded(void* ptr, double highest) +{ + return static_cast(ptr)->bounded(highest); +} + +unsigned int QRandomGenerator_Bounded2(void* ptr, unsigned int highest) +{ + return static_cast(ptr)->bounded(highest); +} + +int QRandomGenerator_Bounded3(void* ptr, int highest) +{ + return static_cast(ptr)->bounded(highest); +} + +unsigned int QRandomGenerator_Bounded4(void* ptr, unsigned int lowest, unsigned int highest) +{ + return static_cast(ptr)->bounded(lowest, highest); +} + +int QRandomGenerator_Bounded5(void* ptr, int lowest, int highest) +{ + return static_cast(ptr)->bounded(lowest, highest); +} + +void QRandomGenerator_Discard(void* ptr, unsigned long long z) +{ + static_cast(ptr)->discard(z); +} + +unsigned int QRandomGenerator_Generate(void* ptr) +{ + return static_cast(ptr)->generate(); +} + +unsigned long long QRandomGenerator_Generate64(void* ptr) +{ + return static_cast(ptr)->generate64(); +} + +double QRandomGenerator_GenerateDouble(void* ptr) +{ + return static_cast(ptr)->generateDouble(); +} + +void* QRandomGenerator_QRandomGenerator_Global() +{ + return QRandomGenerator::global(); +} + +void* QRandomGenerator_QRandomGenerator_SecurelySeeded() +{ + return new QRandomGenerator(QRandomGenerator::securelySeeded()); +} + +void QRandomGenerator_Seed(void* ptr, unsigned int seed) +{ + static_cast(ptr)->seed(seed); +} + +void* QRandomGenerator_QRandomGenerator_System() +{ + return QRandomGenerator::system(); +} + +unsigned long long QRandomGenerator64_Generate(void* ptr) +{ + return static_cast(ptr)->generate(); +} + +Q_DECLARE_METATYPE(QReadLocker*) +void* QReadLocker_NewQReadLocker(void* lock) +{ + return new QReadLocker(static_cast(lock)); +} + +void* QReadLocker_ReadWriteLock(void* ptr) +{ + return static_cast(ptr)->readWriteLock(); +} + +void QReadLocker_Relock(void* ptr) +{ + static_cast(ptr)->relock(); +} + +void QReadLocker_Unlock(void* ptr) +{ + static_cast(ptr)->unlock(); +} + +void QReadLocker_DestroyQReadLocker(void* ptr) +{ + static_cast(ptr)->~QReadLocker(); +} + +Q_DECLARE_METATYPE(QReadWriteLock*) +void* QReadWriteLock_NewQReadWriteLock(long long recursionMode) +{ + return new QReadWriteLock(static_cast(recursionMode)); +} + +void QReadWriteLock_LockForRead(void* ptr) +{ + static_cast(ptr)->lockForRead(); +} + +void QReadWriteLock_LockForWrite(void* ptr) +{ + static_cast(ptr)->lockForWrite(); +} + +char QReadWriteLock_TryLockForRead(void* ptr) +{ + return static_cast(ptr)->tryLockForRead(); +} + +char QReadWriteLock_TryLockForRead2(void* ptr, int timeout) +{ + return static_cast(ptr)->tryLockForRead(timeout); +} + +char QReadWriteLock_TryLockForWrite(void* ptr) +{ + return static_cast(ptr)->tryLockForWrite(); +} + +char QReadWriteLock_TryLockForWrite2(void* ptr, int timeout) +{ + return static_cast(ptr)->tryLockForWrite(timeout); +} + +void QReadWriteLock_Unlock(void* ptr) +{ + static_cast(ptr)->unlock(); +} + +void QReadWriteLock_DestroyQReadWriteLock(void* ptr) +{ + static_cast(ptr)->~QReadWriteLock(); +} + +Q_DECLARE_METATYPE(QRect) +Q_DECLARE_METATYPE(QRect*) +void* QRect_NewQRect() +{ + return new QRect(); +} + +void* QRect_NewQRect2(void* topLeft, void* bottomRight) +{ + return new QRect(*static_cast(topLeft), *static_cast(bottomRight)); +} + +void* QRect_NewQRect3(void* topLeft, void* size) +{ + return new QRect(*static_cast(topLeft), *static_cast(size)); +} + +void* QRect_NewQRect4(int x, int y, int width, int height) +{ + return new QRect(x, y, width, height); +} + +void QRect_Adjust(void* ptr, int dx1, int dy1, int dx2, int dy2) +{ + static_cast(ptr)->adjust(dx1, dy1, dx2, dy2); +} + +void* QRect_Adjusted(void* ptr, int dx1, int dy1, int dx2, int dy2) +{ + return ({ QRect tmpValue = static_cast(ptr)->adjusted(dx1, dy1, dx2, dy2); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +int QRect_Bottom(void* ptr) +{ + return static_cast(ptr)->bottom(); +} + +void* QRect_BottomLeft(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->bottomLeft(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void* QRect_BottomRight(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->bottomRight(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void* QRect_Center(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->center(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +char QRect_Contains(void* ptr, void* point, char proper) +{ + return static_cast(ptr)->contains(*static_cast(point), proper != 0); +} + +char QRect_Contains2(void* ptr, void* rectangle, char proper) +{ + return static_cast(ptr)->contains(*static_cast(rectangle), proper != 0); +} + +char QRect_Contains3(void* ptr, int x, int y) +{ + return static_cast(ptr)->contains(x, y); +} + +char QRect_Contains4(void* ptr, int x, int y, char proper) +{ + return static_cast(ptr)->contains(x, y, proper != 0); +} + +void QRect_GetCoords(void* ptr, int x1, int y1, int x2, int y2) +{ + static_cast(ptr)->getCoords(&x1, &y1, &x2, &y2); +} + +void QRect_GetRect(void* ptr, int x, int y, int width, int height) +{ + static_cast(ptr)->getRect(&x, &y, &width, &height); +} + +int QRect_Height(void* ptr) +{ + return static_cast(ptr)->height(); +} + +void* QRect_Intersected(void* ptr, void* rectangle) +{ + return ({ QRect tmpValue = static_cast(ptr)->intersected(*static_cast(rectangle)); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +char QRect_Intersects(void* ptr, void* rectangle) +{ + return static_cast(ptr)->intersects(*static_cast(rectangle)); +} + +char QRect_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QRect_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QRect_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QRect_Left(void* ptr) +{ + return static_cast(ptr)->left(); +} + +void* QRect_MarginsAdded(void* ptr, void* margins) +{ + return ({ QRect tmpValue = static_cast(ptr)->marginsAdded(*static_cast(margins)); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRect_MarginsRemoved(void* ptr, void* margins) +{ + return ({ QRect tmpValue = static_cast(ptr)->marginsRemoved(*static_cast(margins)); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void QRect_MoveBottom(void* ptr, int y) +{ + static_cast(ptr)->moveBottom(y); +} + +void QRect_MoveBottomLeft(void* ptr, void* position) +{ + static_cast(ptr)->moveBottomLeft(*static_cast(position)); +} + +void QRect_MoveBottomRight(void* ptr, void* position) +{ + static_cast(ptr)->moveBottomRight(*static_cast(position)); +} + +void QRect_MoveCenter(void* ptr, void* position) +{ + static_cast(ptr)->moveCenter(*static_cast(position)); +} + +void QRect_MoveLeft(void* ptr, int x) +{ + static_cast(ptr)->moveLeft(x); +} + +void QRect_MoveRight(void* ptr, int x) +{ + static_cast(ptr)->moveRight(x); +} + +void QRect_MoveTo(void* ptr, int x, int y) +{ + static_cast(ptr)->moveTo(x, y); +} + +void QRect_MoveTo2(void* ptr, void* position) +{ + static_cast(ptr)->moveTo(*static_cast(position)); +} + +void QRect_MoveTop(void* ptr, int y) +{ + static_cast(ptr)->moveTop(y); +} + +void QRect_MoveTopLeft(void* ptr, void* position) +{ + static_cast(ptr)->moveTopLeft(*static_cast(position)); +} + +void QRect_MoveTopRight(void* ptr, void* position) +{ + static_cast(ptr)->moveTopRight(*static_cast(position)); +} + +void* QRect_Normalized(void* ptr) +{ + return ({ QRect tmpValue = static_cast(ptr)->normalized(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +int QRect_Right(void* ptr) +{ + return static_cast(ptr)->right(); +} + +void QRect_SetBottom(void* ptr, int y) +{ + static_cast(ptr)->setBottom(y); +} + +void QRect_SetBottomLeft(void* ptr, void* position) +{ + static_cast(ptr)->setBottomLeft(*static_cast(position)); +} + +void QRect_SetBottomRight(void* ptr, void* position) +{ + static_cast(ptr)->setBottomRight(*static_cast(position)); +} + +void QRect_SetCoords(void* ptr, int x1, int y1, int x2, int y2) +{ + static_cast(ptr)->setCoords(x1, y1, x2, y2); +} + +void QRect_SetHeight(void* ptr, int height) +{ + static_cast(ptr)->setHeight(height); +} + +void QRect_SetLeft(void* ptr, int x) +{ + static_cast(ptr)->setLeft(x); +} + +void QRect_SetRect(void* ptr, int x, int y, int width, int height) +{ + static_cast(ptr)->setRect(x, y, width, height); +} + +void QRect_SetRight(void* ptr, int x) +{ + static_cast(ptr)->setRight(x); +} + +void QRect_SetSize(void* ptr, void* size) +{ + static_cast(ptr)->setSize(*static_cast(size)); +} + +void QRect_SetTop(void* ptr, int y) +{ + static_cast(ptr)->setTop(y); +} + +void QRect_SetTopLeft(void* ptr, void* position) +{ + static_cast(ptr)->setTopLeft(*static_cast(position)); +} + +void QRect_SetTopRight(void* ptr, void* position) +{ + static_cast(ptr)->setTopRight(*static_cast(position)); +} + +void QRect_SetWidth(void* ptr, int width) +{ + static_cast(ptr)->setWidth(width); +} + +void QRect_SetX(void* ptr, int x) +{ + static_cast(ptr)->setX(x); +} + +void QRect_SetY(void* ptr, int y) +{ + static_cast(ptr)->setY(y); +} + +void* QRect_Size(void* ptr) +{ + return ({ QSize tmpValue = static_cast(ptr)->size(); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +int QRect_Top(void* ptr) +{ + return static_cast(ptr)->top(); +} + +void* QRect_TopLeft(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->topLeft(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void* QRect_TopRight(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->topRight(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void QRect_Translate(void* ptr, int dx, int dy) +{ + static_cast(ptr)->translate(dx, dy); +} + +void QRect_Translate2(void* ptr, void* offset) +{ + static_cast(ptr)->translate(*static_cast(offset)); +} + +void* QRect_Translated(void* ptr, int dx, int dy) +{ + return ({ QRect tmpValue = static_cast(ptr)->translated(dx, dy); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRect_Translated2(void* ptr, void* offset) +{ + return ({ QRect tmpValue = static_cast(ptr)->translated(*static_cast(offset)); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRect_Transposed(void* ptr) +{ + return ({ QRect tmpValue = static_cast(ptr)->transposed(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRect_United(void* ptr, void* rectangle) +{ + return ({ QRect tmpValue = static_cast(ptr)->united(*static_cast(rectangle)); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +int QRect_Width(void* ptr) +{ + return static_cast(ptr)->width(); +} + +int QRect_X(void* ptr) +{ + return static_cast(ptr)->x(); +} + +int QRect_Y(void* ptr) +{ + return static_cast(ptr)->y(); +} + +Q_DECLARE_METATYPE(QRectF) +Q_DECLARE_METATYPE(QRectF*) +void* QRectF_NewQRectF() +{ + return new QRectF(); +} + +void* QRectF_NewQRectF2(void* topLeft, void* size) +{ + return new QRectF(*static_cast(topLeft), *static_cast(size)); +} + +void* QRectF_NewQRectF3(void* topLeft, void* bottomRight) +{ + return new QRectF(*static_cast(topLeft), *static_cast(bottomRight)); +} + +void* QRectF_NewQRectF4(double x, double y, double width, double height) +{ + return new QRectF(x, y, width, height); +} + +void* QRectF_NewQRectF5(void* rectangle) +{ + return new QRectF(*static_cast(rectangle)); +} + +void QRectF_Adjust(void* ptr, double dx1, double dy1, double dx2, double dy2) +{ + static_cast(ptr)->adjust(dx1, dy1, dx2, dy2); +} + +void* QRectF_Adjusted(void* ptr, double dx1, double dy1, double dx2, double dy2) +{ + return ({ QRectF tmpValue = static_cast(ptr)->adjusted(dx1, dy1, dx2, dy2); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +double QRectF_Bottom(void* ptr) +{ + return static_cast(ptr)->bottom(); +} + +void* QRectF_BottomLeft(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->bottomLeft(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QRectF_BottomRight(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->bottomRight(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QRectF_Center(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->center(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +char QRectF_Contains(void* ptr, void* point) +{ + return static_cast(ptr)->contains(*static_cast(point)); +} + +char QRectF_Contains2(void* ptr, void* rectangle) +{ + return static_cast(ptr)->contains(*static_cast(rectangle)); +} + +char QRectF_Contains3(void* ptr, double x, double y) +{ + return static_cast(ptr)->contains(x, y); +} + +void QRectF_GetCoords(void* ptr, double x1, double y1, double x2, double y2) +{ + static_cast(ptr)->getCoords(&x1, &y1, &x2, &y2); +} + +void QRectF_GetRect(void* ptr, double x, double y, double width, double height) +{ + static_cast(ptr)->getRect(&x, &y, &width, &height); +} + +double QRectF_Height(void* ptr) +{ + return static_cast(ptr)->height(); +} + +void* QRectF_Intersected(void* ptr, void* rectangle) +{ + return ({ QRectF tmpValue = static_cast(ptr)->intersected(*static_cast(rectangle)); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +char QRectF_Intersects(void* ptr, void* rectangle) +{ + return static_cast(ptr)->intersects(*static_cast(rectangle)); +} + +char QRectF_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QRectF_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QRectF_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +double QRectF_Left(void* ptr) +{ + return static_cast(ptr)->left(); +} + +void* QRectF_MarginsAdded(void* ptr, void* margins) +{ + return ({ QRectF tmpValue = static_cast(ptr)->marginsAdded(*static_cast(margins)); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRectF_MarginsRemoved(void* ptr, void* margins) +{ + return ({ QRectF tmpValue = static_cast(ptr)->marginsRemoved(*static_cast(margins)); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void QRectF_MoveBottom(void* ptr, double y) +{ + static_cast(ptr)->moveBottom(y); +} + +void QRectF_MoveBottomLeft(void* ptr, void* position) +{ + static_cast(ptr)->moveBottomLeft(*static_cast(position)); +} + +void QRectF_MoveBottomRight(void* ptr, void* position) +{ + static_cast(ptr)->moveBottomRight(*static_cast(position)); +} + +void QRectF_MoveCenter(void* ptr, void* position) +{ + static_cast(ptr)->moveCenter(*static_cast(position)); +} + +void QRectF_MoveLeft(void* ptr, double x) +{ + static_cast(ptr)->moveLeft(x); +} + +void QRectF_MoveRight(void* ptr, double x) +{ + static_cast(ptr)->moveRight(x); +} + +void QRectF_MoveTo(void* ptr, double x, double y) +{ + static_cast(ptr)->moveTo(x, y); +} + +void QRectF_MoveTo2(void* ptr, void* position) +{ + static_cast(ptr)->moveTo(*static_cast(position)); +} + +void QRectF_MoveTop(void* ptr, double y) +{ + static_cast(ptr)->moveTop(y); +} + +void QRectF_MoveTopLeft(void* ptr, void* position) +{ + static_cast(ptr)->moveTopLeft(*static_cast(position)); +} + +void QRectF_MoveTopRight(void* ptr, void* position) +{ + static_cast(ptr)->moveTopRight(*static_cast(position)); +} + +void* QRectF_Normalized(void* ptr) +{ + return ({ QRectF tmpValue = static_cast(ptr)->normalized(); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +double QRectF_Right(void* ptr) +{ + return static_cast(ptr)->right(); +} + +void QRectF_SetBottom(void* ptr, double y) +{ + static_cast(ptr)->setBottom(y); +} + +void QRectF_SetBottomLeft(void* ptr, void* position) +{ + static_cast(ptr)->setBottomLeft(*static_cast(position)); +} + +void QRectF_SetBottomRight(void* ptr, void* position) +{ + static_cast(ptr)->setBottomRight(*static_cast(position)); +} + +void QRectF_SetCoords(void* ptr, double x1, double y1, double x2, double y2) +{ + static_cast(ptr)->setCoords(x1, y1, x2, y2); +} + +void QRectF_SetHeight(void* ptr, double height) +{ + static_cast(ptr)->setHeight(height); +} + +void QRectF_SetLeft(void* ptr, double x) +{ + static_cast(ptr)->setLeft(x); +} + +void QRectF_SetRect(void* ptr, double x, double y, double width, double height) +{ + static_cast(ptr)->setRect(x, y, width, height); +} + +void QRectF_SetRight(void* ptr, double x) +{ + static_cast(ptr)->setRight(x); +} + +void QRectF_SetSize(void* ptr, void* size) +{ + static_cast(ptr)->setSize(*static_cast(size)); +} + +void QRectF_SetTop(void* ptr, double y) +{ + static_cast(ptr)->setTop(y); +} + +void QRectF_SetTopLeft(void* ptr, void* position) +{ + static_cast(ptr)->setTopLeft(*static_cast(position)); +} + +void QRectF_SetTopRight(void* ptr, void* position) +{ + static_cast(ptr)->setTopRight(*static_cast(position)); +} + +void QRectF_SetWidth(void* ptr, double width) +{ + static_cast(ptr)->setWidth(width); +} + +void QRectF_SetX(void* ptr, double x) +{ + static_cast(ptr)->setX(x); +} + +void QRectF_SetY(void* ptr, double y) +{ + static_cast(ptr)->setY(y); +} + +void* QRectF_Size(void* ptr) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->size(); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +void* QRectF_ToAlignedRect(void* ptr) +{ + return ({ QRect tmpValue = static_cast(ptr)->toAlignedRect(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRectF_ToRect(void* ptr) +{ + return ({ QRect tmpValue = static_cast(ptr)->toRect(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +double QRectF_Top(void* ptr) +{ + return static_cast(ptr)->top(); +} + +void* QRectF_TopLeft(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->topLeft(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void* QRectF_TopRight(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->topRight(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +void QRectF_Translate(void* ptr, double dx, double dy) +{ + static_cast(ptr)->translate(dx, dy); +} + +void QRectF_Translate2(void* ptr, void* offset) +{ + static_cast(ptr)->translate(*static_cast(offset)); +} + +void* QRectF_Translated(void* ptr, double dx, double dy) +{ + return ({ QRectF tmpValue = static_cast(ptr)->translated(dx, dy); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRectF_Translated2(void* ptr, void* offset) +{ + return ({ QRectF tmpValue = static_cast(ptr)->translated(*static_cast(offset)); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRectF_Transposed(void* ptr) +{ + return ({ QRectF tmpValue = static_cast(ptr)->transposed(); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QRectF_United(void* ptr, void* rectangle) +{ + return ({ QRectF tmpValue = static_cast(ptr)->united(*static_cast(rectangle)); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +double QRectF_Width(void* ptr) +{ + return static_cast(ptr)->width(); +} + +double QRectF_X(void* ptr) +{ + return static_cast(ptr)->x(); +} + +double QRectF_Y(void* ptr) +{ + return static_cast(ptr)->y(); +} + +Q_DECLARE_METATYPE(QRegExp) +Q_DECLARE_METATYPE(QRegExp*) +void* QRegExp_NewQRegExp() +{ + return new QRegExp(); +} + +void* QRegExp_NewQRegExp2(struct QtCore_PackedString pattern, long long cs, long long syntax) +{ + return new QRegExp(QString::fromUtf8(pattern.data, pattern.len), static_cast(cs), static_cast(syntax)); +} + +void* QRegExp_NewQRegExp3(void* rx) +{ + return new QRegExp(*static_cast(rx)); +} + +struct QtCore_PackedString QRegExp_Cap(void* ptr, int nth) +{ + return ({ QByteArray* t6327b9 = new QByteArray(static_cast(ptr)->cap(nth).toUtf8()); QtCore_PackedString { const_cast(t6327b9->prepend("WHITESPACE").constData()+10), t6327b9->size()-10, t6327b9 }; }); +} + +int QRegExp_CaptureCount(void* ptr) +{ + return static_cast(ptr)->captureCount(); +} + +struct QtCore_PackedString QRegExp_CapturedTexts(void* ptr) +{ + return ({ QByteArray* t69e4cf = new QByteArray(static_cast(ptr)->capturedTexts().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t69e4cf->prepend("WHITESPACE").constData()+10), t69e4cf->size()-10, t69e4cf }; }); +} + +long long QRegExp_CaseSensitivity(void* ptr) +{ + return static_cast(ptr)->caseSensitivity(); +} + +struct QtCore_PackedString QRegExp_ErrorString(void* ptr) +{ + return ({ QByteArray* t53d00c = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t53d00c->prepend("WHITESPACE").constData()+10), t53d00c->size()-10, t53d00c }; }); +} + +struct QtCore_PackedString QRegExp_QRegExp_Escape(struct QtCore_PackedString str) +{ + return ({ QByteArray* tf416e0 = new QByteArray(QRegExp::escape(QString::fromUtf8(str.data, str.len)).toUtf8()); QtCore_PackedString { const_cast(tf416e0->prepend("WHITESPACE").constData()+10), tf416e0->size()-10, tf416e0 }; }); +} + +char QRegExp_ExactMatch(void* ptr, struct QtCore_PackedString str) +{ + return static_cast(ptr)->exactMatch(QString::fromUtf8(str.data, str.len)); +} + +int QRegExp_IndexIn(void* ptr, struct QtCore_PackedString str, int offset, long long caretMode) +{ + return static_cast(ptr)->indexIn(QString::fromUtf8(str.data, str.len), offset, static_cast(caretMode)); +} + +char QRegExp_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QRegExp_IsMinimal(void* ptr) +{ + return static_cast(ptr)->isMinimal(); +} + +char QRegExp_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QRegExp_LastIndexIn(void* ptr, struct QtCore_PackedString str, int offset, long long caretMode) +{ + return static_cast(ptr)->lastIndexIn(QString::fromUtf8(str.data, str.len), offset, static_cast(caretMode)); +} + +int QRegExp_MatchedLength(void* ptr) +{ + return static_cast(ptr)->matchedLength(); +} + +struct QtCore_PackedString QRegExp_Pattern(void* ptr) +{ + return ({ QByteArray* t70b801 = new QByteArray(static_cast(ptr)->pattern().toUtf8()); QtCore_PackedString { const_cast(t70b801->prepend("WHITESPACE").constData()+10), t70b801->size()-10, t70b801 }; }); +} + +long long QRegExp_PatternSyntax(void* ptr) +{ + return static_cast(ptr)->patternSyntax(); +} + +int QRegExp_Pos(void* ptr, int nth) +{ + return static_cast(ptr)->pos(nth); +} + +void QRegExp_SetCaseSensitivity(void* ptr, long long cs) +{ + static_cast(ptr)->setCaseSensitivity(static_cast(cs)); +} + +void QRegExp_SetMinimal(void* ptr, char minimal) +{ + static_cast(ptr)->setMinimal(minimal != 0); +} + +void QRegExp_SetPattern(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->setPattern(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QRegExp_SetPatternSyntax(void* ptr, long long syntax) +{ + static_cast(ptr)->setPatternSyntax(static_cast(syntax)); +} + +void QRegExp_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QRegExp_DestroyQRegExp(void* ptr) +{ + static_cast(ptr)->~QRegExp(); +} + +Q_DECLARE_METATYPE(QRegularExpression) +Q_DECLARE_METATYPE(QRegularExpression*) +void* QRegularExpression_NewQRegularExpression() +{ + return new QRegularExpression(); +} + +void* QRegularExpression_NewQRegularExpression2(struct QtCore_PackedString pattern, long long options) +{ + return new QRegularExpression(QString::fromUtf8(pattern.data, pattern.len), static_cast(options)); +} + +void* QRegularExpression_NewQRegularExpression3(void* re) +{ + return new QRegularExpression(*static_cast(re)); +} + +struct QtCore_PackedString QRegularExpression_QRegularExpression_AnchoredPattern(struct QtCore_PackedString expression) +{ + return ({ QByteArray* t32c726 = new QByteArray(QRegularExpression::anchoredPattern(QString::fromUtf8(expression.data, expression.len)).toUtf8()); QtCore_PackedString { const_cast(t32c726->prepend("WHITESPACE").constData()+10), t32c726->size()-10, t32c726 }; }); +} + +int QRegularExpression_CaptureCount(void* ptr) +{ + return static_cast(ptr)->captureCount(); +} + +struct QtCore_PackedString QRegularExpression_ErrorString(void* ptr) +{ + return ({ QByteArray* t85aa6b = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t85aa6b->prepend("WHITESPACE").constData()+10), t85aa6b->size()-10, t85aa6b }; }); +} + +struct QtCore_PackedString QRegularExpression_QRegularExpression_Escape(struct QtCore_PackedString str) +{ + return ({ QByteArray* tf551fc = new QByteArray(QRegularExpression::escape(QString::fromUtf8(str.data, str.len)).toUtf8()); QtCore_PackedString { const_cast(tf551fc->prepend("WHITESPACE").constData()+10), tf551fc->size()-10, tf551fc }; }); +} + +void* QRegularExpression_GlobalMatch(void* ptr, struct QtCore_PackedString subject, int offset, long long matchType, long long matchOptions) +{ + return new QRegularExpressionMatchIterator(static_cast(ptr)->globalMatch(QString::fromUtf8(subject.data, subject.len), offset, static_cast(matchType), static_cast(matchOptions))); +} + +void* QRegularExpression_GlobalMatch2(void* ptr, void* subjectRef, int offset, long long matchType, long long matchOptions) +{ + return new QRegularExpressionMatchIterator(static_cast(ptr)->globalMatch(*static_cast(subjectRef), offset, static_cast(matchType), static_cast(matchOptions))); +} + +char QRegularExpression_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +void* QRegularExpression_Match(void* ptr, struct QtCore_PackedString subject, int offset, long long matchType, long long matchOptions) +{ + return new QRegularExpressionMatch(static_cast(ptr)->match(QString::fromUtf8(subject.data, subject.len), offset, static_cast(matchType), static_cast(matchOptions))); +} + +void* QRegularExpression_Match2(void* ptr, void* subjectRef, int offset, long long matchType, long long matchOptions) +{ + return new QRegularExpressionMatch(static_cast(ptr)->match(*static_cast(subjectRef), offset, static_cast(matchType), static_cast(matchOptions))); +} + +struct QtCore_PackedString QRegularExpression_NamedCaptureGroups(void* ptr) +{ + return ({ QByteArray* t5a80a4 = new QByteArray(static_cast(ptr)->namedCaptureGroups().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t5a80a4->prepend("WHITESPACE").constData()+10), t5a80a4->size()-10, t5a80a4 }; }); +} + +void QRegularExpression_Optimize(void* ptr) +{ + static_cast(ptr)->optimize(); +} + +struct QtCore_PackedString QRegularExpression_Pattern(void* ptr) +{ + return ({ QByteArray* t585ea0 = new QByteArray(static_cast(ptr)->pattern().toUtf8()); QtCore_PackedString { const_cast(t585ea0->prepend("WHITESPACE").constData()+10), t585ea0->size()-10, t585ea0 }; }); +} + +int QRegularExpression_PatternErrorOffset(void* ptr) +{ + return static_cast(ptr)->patternErrorOffset(); +} + +long long QRegularExpression_PatternOptions(void* ptr) +{ + return static_cast(ptr)->patternOptions(); +} + +void QRegularExpression_SetPattern(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->setPattern(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QRegularExpression_SetPatternOptions(void* ptr, long long options) +{ + static_cast(ptr)->setPatternOptions(static_cast(options)); +} + +void QRegularExpression_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +struct QtCore_PackedString QRegularExpression_QRegularExpression_WildcardToRegularExpression(struct QtCore_PackedString pattern) +{ + return ({ QByteArray* ta3cf94 = new QByteArray(QRegularExpression::wildcardToRegularExpression(QString::fromUtf8(pattern.data, pattern.len)).toUtf8()); QtCore_PackedString { const_cast(ta3cf94->prepend("WHITESPACE").constData()+10), ta3cf94->size()-10, ta3cf94 }; }); +} + +void QRegularExpression_DestroyQRegularExpression(void* ptr) +{ + static_cast(ptr)->~QRegularExpression(); +} + +Q_DECLARE_METATYPE(QRegularExpressionMatch) +Q_DECLARE_METATYPE(QRegularExpressionMatch*) +void* QRegularExpressionMatch_NewQRegularExpressionMatch() +{ + return new QRegularExpressionMatch(); +} + +void* QRegularExpressionMatch_NewQRegularExpressionMatch2(void* match) +{ + return new QRegularExpressionMatch(*static_cast(match)); +} + +struct QtCore_PackedString QRegularExpressionMatch_Captured(void* ptr, int nth) +{ + return ({ QByteArray* t5bb134 = new QByteArray(static_cast(ptr)->captured(nth).toUtf8()); QtCore_PackedString { const_cast(t5bb134->prepend("WHITESPACE").constData()+10), t5bb134->size()-10, t5bb134 }; }); +} + +struct QtCore_PackedString QRegularExpressionMatch_Captured2(void* ptr, struct QtCore_PackedString name) +{ + return ({ QByteArray* te09a4d = new QByteArray(static_cast(ptr)->captured(QString::fromUtf8(name.data, name.len)).toUtf8()); QtCore_PackedString { const_cast(te09a4d->prepend("WHITESPACE").constData()+10), te09a4d->size()-10, te09a4d }; }); +} + +struct QtCore_PackedString QRegularExpressionMatch_Captured3(void* ptr, void* name) +{ + return ({ QByteArray* t0ab4af = new QByteArray(static_cast(ptr)->captured(*static_cast(name)).toUtf8()); QtCore_PackedString { const_cast(t0ab4af->prepend("WHITESPACE").constData()+10), t0ab4af->size()-10, t0ab4af }; }); +} + +int QRegularExpressionMatch_CapturedEnd(void* ptr, int nth) +{ + return static_cast(ptr)->capturedEnd(nth); +} + +int QRegularExpressionMatch_CapturedEnd2(void* ptr, struct QtCore_PackedString name) +{ + return static_cast(ptr)->capturedEnd(QString::fromUtf8(name.data, name.len)); +} + +int QRegularExpressionMatch_CapturedEnd3(void* ptr, void* name) +{ + return static_cast(ptr)->capturedEnd(*static_cast(name)); +} + +int QRegularExpressionMatch_CapturedLength(void* ptr, int nth) +{ + return static_cast(ptr)->capturedLength(nth); +} + +int QRegularExpressionMatch_CapturedLength2(void* ptr, struct QtCore_PackedString name) +{ + return static_cast(ptr)->capturedLength(QString::fromUtf8(name.data, name.len)); +} + +int QRegularExpressionMatch_CapturedLength3(void* ptr, void* name) +{ + return static_cast(ptr)->capturedLength(*static_cast(name)); +} + +void* QRegularExpressionMatch_CapturedRef(void* ptr, int nth) +{ + return new QStringRef(static_cast(ptr)->capturedRef(nth)); +} + +void* QRegularExpressionMatch_CapturedRef2(void* ptr, struct QtCore_PackedString name) +{ + return new QStringRef(static_cast(ptr)->capturedRef(QString::fromUtf8(name.data, name.len))); +} + +void* QRegularExpressionMatch_CapturedRef3(void* ptr, void* name) +{ + return new QStringRef(static_cast(ptr)->capturedRef(*static_cast(name))); +} + +int QRegularExpressionMatch_CapturedStart(void* ptr, int nth) +{ + return static_cast(ptr)->capturedStart(nth); +} + +int QRegularExpressionMatch_CapturedStart2(void* ptr, struct QtCore_PackedString name) +{ + return static_cast(ptr)->capturedStart(QString::fromUtf8(name.data, name.len)); +} + +int QRegularExpressionMatch_CapturedStart3(void* ptr, void* name) +{ + return static_cast(ptr)->capturedStart(*static_cast(name)); +} + +struct QtCore_PackedString QRegularExpressionMatch_CapturedTexts(void* ptr) +{ + return ({ QByteArray* t75c0a9 = new QByteArray(static_cast(ptr)->capturedTexts().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t75c0a9->prepend("WHITESPACE").constData()+10), t75c0a9->size()-10, t75c0a9 }; }); +} + +void* QRegularExpressionMatch_CapturedView(void* ptr, int nth) +{ + return new QStringView(static_cast(ptr)->capturedView(nth)); +} + +void* QRegularExpressionMatch_CapturedView2(void* ptr, void* name) +{ + return new QStringView(static_cast(ptr)->capturedView(*static_cast(name))); +} + +char QRegularExpressionMatch_HasMatch(void* ptr) +{ + return static_cast(ptr)->hasMatch(); +} + +char QRegularExpressionMatch_HasPartialMatch(void* ptr) +{ + return static_cast(ptr)->hasPartialMatch(); +} + +char QRegularExpressionMatch_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QRegularExpressionMatch_LastCapturedIndex(void* ptr) +{ + return static_cast(ptr)->lastCapturedIndex(); +} + +long long QRegularExpressionMatch_MatchOptions(void* ptr) +{ + return static_cast(ptr)->matchOptions(); +} + +long long QRegularExpressionMatch_MatchType(void* ptr) +{ + return static_cast(ptr)->matchType(); +} + +void* QRegularExpressionMatch_RegularExpression(void* ptr) +{ + return new QRegularExpression(static_cast(ptr)->regularExpression()); +} + +void QRegularExpressionMatch_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QRegularExpressionMatch_DestroyQRegularExpressionMatch(void* ptr) +{ + static_cast(ptr)->~QRegularExpressionMatch(); +} + +Q_DECLARE_METATYPE(QResource*) +void* QResource_NewQResource(struct QtCore_PackedString file, void* locale) +{ + return new QResource(QString::fromUtf8(file.data, file.len), *static_cast(locale)); +} + +struct QtCore_PackedString QResource_AbsoluteFilePath(void* ptr) +{ + return ({ QByteArray* t1066ec = new QByteArray(static_cast(ptr)->absoluteFilePath().toUtf8()); QtCore_PackedString { const_cast(t1066ec->prepend("WHITESPACE").constData()+10), t1066ec->size()-10, t1066ec }; }); +} + +struct QtCore_PackedString QResource_Children(void* ptr) +{ + return ({ QByteArray* t6aef35 = new QByteArray(static_cast(ptr)->children().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t6aef35->prepend("WHITESPACE").constData()+10), t6aef35->size()-10, t6aef35 }; }); +} + +long long QResource_CompressionAlgorithm(void* ptr) +{ + return static_cast(ptr)->compressionAlgorithm(); +} + +struct QtCore_PackedString QResource_Data(void* ptr) +{ + return ({ char* t4b0f0d = static_cast(static_cast(const_cast(static_cast(ptr)->data()))); QtCore_PackedString { t4b0f0d, -1, NULL }; }); +} + +struct QtCore_PackedString QResource_FileName(void* ptr) +{ + return ({ QByteArray* t28de69 = new QByteArray(static_cast(ptr)->fileName().toUtf8()); QtCore_PackedString { const_cast(t28de69->prepend("WHITESPACE").constData()+10), t28de69->size()-10, t28de69 }; }); +} + +char QResource_IsCompressed(void* ptr) +{ + return static_cast(ptr)->isCompressed(); +} + +char QResource_IsDir(void* ptr) +{ + return static_cast(ptr)->isDir(); +} + +char QResource_IsFile(void* ptr) +{ + return static_cast(ptr)->isFile(); +} + +char QResource_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +void* QResource_LastModified(void* ptr) +{ + return new QDateTime(static_cast(ptr)->lastModified()); +} + +void* QResource_Locale(void* ptr) +{ + return new QLocale(static_cast(ptr)->locale()); +} + +char QResource_QResource_RegisterResource(struct QtCore_PackedString rccFileName, struct QtCore_PackedString mapRoot) +{ + return QResource::registerResource(QString::fromUtf8(rccFileName.data, rccFileName.len), QString::fromUtf8(mapRoot.data, mapRoot.len)); +} + +char QResource_QResource_RegisterResource2(char* rccData, struct QtCore_PackedString mapRoot) +{ + return QResource::registerResource(const_cast(static_cast(static_cast(rccData))), QString::fromUtf8(mapRoot.data, mapRoot.len)); +} + +void QResource_SetFileName(void* ptr, struct QtCore_PackedString file) +{ + static_cast(ptr)->setFileName(QString::fromUtf8(file.data, file.len)); +} + +void QResource_SetLocale(void* ptr, void* locale) +{ + static_cast(ptr)->setLocale(*static_cast(locale)); +} + +long long QResource_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +char QResource_QResource_UnregisterResource(struct QtCore_PackedString rccFileName, struct QtCore_PackedString mapRoot) +{ + return QResource::unregisterResource(QString::fromUtf8(rccFileName.data, rccFileName.len), QString::fromUtf8(mapRoot.data, mapRoot.len)); +} + +char QResource_QResource_UnregisterResource2(char* rccData, struct QtCore_PackedString mapRoot) +{ + return QResource::unregisterResource(const_cast(static_cast(static_cast(rccData))), QString::fromUtf8(mapRoot.data, mapRoot.len)); +} + +void QResource_DestroyQResource(void* ptr) +{ + static_cast(ptr)->~QResource(); +} + +class MyQRunnable: public QRunnable +{ +public: + MyQRunnable() : QRunnable() {QRunnable_QRunnable_QRegisterMetaType();}; + void run() { callbackQRunnable_Run(this); }; + ~MyQRunnable() { callbackQRunnable_DestroyQRunnable(this); }; +}; + +Q_DECLARE_METATYPE(QRunnable*) +Q_DECLARE_METATYPE(MyQRunnable*) + +int QRunnable_QRunnable_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QRunnable_NewQRunnable() +{ + return new MyQRunnable(); +} + +char QRunnable_AutoDelete(void* ptr) +{ + return static_cast(ptr)->autoDelete(); +} + +void QRunnable_Run(void* ptr) +{ + static_cast(ptr)->run(); +} + +void QRunnable_SetAutoDelete(void* ptr, char autoDelete) +{ + static_cast(ptr)->setAutoDelete(autoDelete != 0); +} + +void QRunnable_DestroyQRunnable(void* ptr) +{ + static_cast(ptr)->~QRunnable(); +} + +void QRunnable_DestroyQRunnableDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQSaveFile: public QSaveFile +{ +public: + MyQSaveFile(const QString &name) : QSaveFile(name) {QSaveFile_QSaveFile_QRegisterMetaType();}; + MyQSaveFile(QObject *parent = Q_NULLPTR) : QSaveFile(parent) {QSaveFile_QSaveFile_QRegisterMetaType();}; + MyQSaveFile(const QString &name, QObject *parent) : QSaveFile(name, parent) {QSaveFile_QSaveFile_QRegisterMetaType();}; + QString fileName() const { return ({ QtCore_PackedString tempVal = callbackQFileDevice_FileName(const_cast(static_cast(this))); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; + bool open(QIODevice::OpenMode mode) { return callbackQIODevice_Open(this, mode) != 0; }; + qint64 writeData(const char * data, qint64 l) { QtCore_PackedString dataPacked = { const_cast(data), l, NULL };return callbackQFileDevice_WriteData(this, dataPacked, l); }; + ~MyQSaveFile() { callbackQSaveFile_DestroyQSaveFile(this); }; + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + void close() { callbackQIODevice_Close(this); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + QFileDevice::Permissions permissions() const { return static_cast(callbackQFileDevice_Permissions(const_cast(static_cast(this)))); }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + qint64 readData(char * data, qint64 l) { QtCore_PackedString dataPacked = { data, l, NULL };return callbackQFileDevice_ReadData(this, dataPacked, l); }; + qint64 readLineData(char * data, qint64 maxlen) { QtCore_PackedString dataPacked = { data, maxlen, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxlen); }; + bool resize(qint64 sz) { return callbackQFileDevice_Resize(this, sz) != 0; }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + bool setPermissions(QFileDevice::Permissions permissions) { return callbackQFileDevice_SetPermissions(this, permissions) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSaveFile*) +Q_DECLARE_METATYPE(MyQSaveFile*) + +int QSaveFile_QSaveFile_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QSaveFile_NewQSaveFile(struct QtCore_PackedString name) +{ + return new MyQSaveFile(QString::fromUtf8(name.data, name.len)); +} + +void* QSaveFile_NewQSaveFile2(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(static_cast(parent)); + } else { + return new MyQSaveFile(static_cast(parent)); + } +} + +void* QSaveFile_NewQSaveFile3(struct QtCore_PackedString name, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } else { + return new MyQSaveFile(QString::fromUtf8(name.data, name.len), static_cast(parent)); + } +} + +void QSaveFile_CancelWriting(void* ptr) +{ + static_cast(ptr)->cancelWriting(); +} + +char QSaveFile_Commit(void* ptr) +{ + return static_cast(ptr)->commit(); +} + +char QSaveFile_DirectWriteFallback(void* ptr) +{ + return static_cast(ptr)->directWriteFallback(); +} + +void QSaveFile_SetDirectWriteFallback(void* ptr, char enabled) +{ + static_cast(ptr)->setDirectWriteFallback(enabled != 0); +} + +void QSaveFile_SetFileName(void* ptr, struct QtCore_PackedString name) +{ + static_cast(ptr)->setFileName(QString::fromUtf8(name.data, name.len)); +} + +void QSaveFile_DestroyQSaveFile(void* ptr) +{ + static_cast(ptr)->~QSaveFile(); +} + +void QSaveFile_DestroyQSaveFileDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QSemaphore*) +void* QSemaphore_NewQSemaphore(int n) +{ + return new QSemaphore(n); +} + +void QSemaphore_Acquire(void* ptr, int n) +{ + static_cast(ptr)->acquire(n); +} + +int QSemaphore_Available(void* ptr) +{ + return static_cast(ptr)->available(); +} + +void QSemaphore_Release(void* ptr, int n) +{ + static_cast(ptr)->release(n); +} + +char QSemaphore_TryAcquire(void* ptr, int n) +{ + return static_cast(ptr)->tryAcquire(n); +} + +char QSemaphore_TryAcquire2(void* ptr, int n, int timeout) +{ + return static_cast(ptr)->tryAcquire(n, timeout); +} + +void QSemaphore_DestroyQSemaphore(void* ptr) +{ + static_cast(ptr)->~QSemaphore(); +} + +Q_DECLARE_METATYPE(QSemaphoreReleaser*) +void* QSemaphoreReleaser_NewQSemaphoreReleaser() +{ + return new QSemaphoreReleaser(); +} + +void* QSemaphoreReleaser_NewQSemaphoreReleaser2(void* sem, int n) +{ + return new QSemaphoreReleaser(*static_cast(sem), n); +} + +void* QSemaphoreReleaser_NewQSemaphoreReleaser3(void* sem, int n) +{ + return new QSemaphoreReleaser(static_cast(sem), n); +} + +void* QSemaphoreReleaser_Cancel(void* ptr) +{ + return static_cast(ptr)->cancel(); +} + +void* QSemaphoreReleaser_Semaphore(void* ptr) +{ + return static_cast(ptr)->semaphore(); +} + +void QSemaphoreReleaser_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QSemaphoreReleaser_DestroyQSemaphoreReleaser(void* ptr) +{ + static_cast(ptr)->~QSemaphoreReleaser(); +} + +class MyQSequentialAnimationGroup: public QSequentialAnimationGroup +{ +public: + MyQSequentialAnimationGroup(QObject *parent = Q_NULLPTR) : QSequentialAnimationGroup(parent) {QSequentialAnimationGroup_QSequentialAnimationGroup_QRegisterMetaType();}; + void Signal_CurrentAnimationChanged(QAbstractAnimation * current) { callbackQSequentialAnimationGroup_CurrentAnimationChanged(this, current); }; + int duration() const { return callbackQSequentialAnimationGroup_Duration(const_cast(static_cast(this))); }; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + void updateCurrentTime(int currentTime) { callbackQSequentialAnimationGroup_UpdateCurrentTime(this, currentTime); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + ~MyQSequentialAnimationGroup() { callbackQSequentialAnimationGroup_DestroyQSequentialAnimationGroup(this); }; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSequentialAnimationGroup*) +Q_DECLARE_METATYPE(MyQSequentialAnimationGroup*) + +int QSequentialAnimationGroup_QSequentialAnimationGroup_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QSequentialAnimationGroup_NewQSequentialAnimationGroup(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } else { + return new MyQSequentialAnimationGroup(static_cast(parent)); + } +} + +void* QSequentialAnimationGroup_AddPause(void* ptr, int msecs) +{ + return static_cast(ptr)->addPause(msecs); +} + +void* QSequentialAnimationGroup_CurrentAnimation(void* ptr) +{ + return static_cast(ptr)->currentAnimation(); +} + +void QSequentialAnimationGroup_ConnectCurrentAnimationChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QSequentialAnimationGroup::currentAnimationChanged), static_cast(ptr), static_cast(&MyQSequentialAnimationGroup::Signal_CurrentAnimationChanged), static_cast(t)); +} + +void QSequentialAnimationGroup_DisconnectCurrentAnimationChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QSequentialAnimationGroup::currentAnimationChanged), static_cast(ptr), static_cast(&MyQSequentialAnimationGroup::Signal_CurrentAnimationChanged)); +} + +void QSequentialAnimationGroup_CurrentAnimationChanged(void* ptr, void* current) +{ + static_cast(ptr)->currentAnimationChanged(static_cast(current)); +} + +int QSequentialAnimationGroup_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +int QSequentialAnimationGroup_DurationDefault(void* ptr) +{ + return static_cast(ptr)->QSequentialAnimationGroup::duration(); +} + +void* QSequentialAnimationGroup_InsertPause(void* ptr, int index, int msecs) +{ + return static_cast(ptr)->insertPause(index, msecs); +} + +void QSequentialAnimationGroup_UpdateCurrentTime(void* ptr, int currentTime) +{ + static_cast(ptr)->updateCurrentTime(currentTime); +} + +void QSequentialAnimationGroup_UpdateCurrentTimeDefault(void* ptr, int currentTime) +{ + static_cast(ptr)->QSequentialAnimationGroup::updateCurrentTime(currentTime); +} + +void QSequentialAnimationGroup_DestroyQSequentialAnimationGroup(void* ptr) +{ + static_cast(ptr)->~QSequentialAnimationGroup(); +} + +void QSequentialAnimationGroup_DestroyQSequentialAnimationGroupDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QSequentialIterable_At(void* ptr, int idx) +{ + return new QVariant(static_cast(ptr)->at(idx)); +} + +char QSequentialIterable_CanReverseIterate(void* ptr) +{ + return static_cast(ptr)->canReverseIterate(); +} + +int QSequentialIterable_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +class MyQSettings: public QSettings +{ +public: + MyQSettings(const QString &organization, const QString &application = QString(), QObject *parent = Q_NULLPTR) : QSettings(organization, application, parent) {QSettings_QSettings_QRegisterMetaType();}; + MyQSettings(QSettings::Scope scope, const QString &organization, const QString &application = QString(), QObject *parent = Q_NULLPTR) : QSettings(scope, organization, application, parent) {QSettings_QSettings_QRegisterMetaType();}; + MyQSettings(QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application = QString(), QObject *parent = Q_NULLPTR) : QSettings(format, scope, organization, application, parent) {QSettings_QSettings_QRegisterMetaType();}; + MyQSettings(const QString &fileName, QSettings::Format format, QObject *parent = Q_NULLPTR) : QSettings(fileName, format, parent) {QSettings_QSettings_QRegisterMetaType();}; + MyQSettings(QObject *parent = Q_NULLPTR) : QSettings(parent) {QSettings_QSettings_QRegisterMetaType();}; + MyQSettings(QSettings::Scope scope, QObject *parent = Q_NULLPTR) : QSettings(scope, parent) {QSettings_QSettings_QRegisterMetaType();}; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + ~MyQSettings() { callbackQSettings_DestroyQSettings(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSettings*) +Q_DECLARE_METATYPE(MyQSettings*) + +int QSettings_QSettings_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QSettings_NewQSettings(struct QtCore_PackedString organization, struct QtCore_PackedString application, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else { + return new MyQSettings(QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } +} + +void* QSettings_NewQSettings2(long long scope, struct QtCore_PackedString organization, struct QtCore_PackedString application, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else { + return new MyQSettings(static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } +} + +void* QSettings_NewQSettings3(long long format, long long scope, struct QtCore_PackedString organization, struct QtCore_PackedString application, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } else { + return new MyQSettings(static_cast(format), static_cast(scope), QString::fromUtf8(organization.data, organization.len), QString::fromUtf8(application.data, application.len), static_cast(parent)); + } +} + +void* QSettings_NewQSettings4(struct QtCore_PackedString fileName, long long format, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } else { + return new MyQSettings(QString::fromUtf8(fileName.data, fileName.len), static_cast(format), static_cast(parent)); + } +} + +void* QSettings_NewQSettings5(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(parent)); + } else { + return new MyQSettings(static_cast(parent)); + } +} + +void* QSettings_NewQSettings6(long long scope, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } else { + return new MyQSettings(static_cast(scope), static_cast(parent)); + } +} + +struct QtCore_PackedString QSettings_AllKeys(void* ptr) +{ + return ({ QByteArray* t39d6f3 = new QByteArray(static_cast(ptr)->allKeys().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t39d6f3->prepend("WHITESPACE").constData()+10), t39d6f3->size()-10, t39d6f3 }; }); +} + +struct QtCore_PackedString QSettings_ApplicationName(void* ptr) +{ + return ({ QByteArray* tbe59f0 = new QByteArray(static_cast(ptr)->applicationName().toUtf8()); QtCore_PackedString { const_cast(tbe59f0->prepend("WHITESPACE").constData()+10), tbe59f0->size()-10, tbe59f0 }; }); +} + +void QSettings_BeginGroup(void* ptr, struct QtCore_PackedString prefix) +{ + static_cast(ptr)->beginGroup(QString::fromUtf8(prefix.data, prefix.len)); +} + +int QSettings_BeginReadArray(void* ptr, struct QtCore_PackedString prefix) +{ + return static_cast(ptr)->beginReadArray(QString::fromUtf8(prefix.data, prefix.len)); +} + +void QSettings_BeginWriteArray(void* ptr, struct QtCore_PackedString prefix, int size) +{ + static_cast(ptr)->beginWriteArray(QString::fromUtf8(prefix.data, prefix.len), size); +} + +struct QtCore_PackedString QSettings_ChildGroups(void* ptr) +{ + return ({ QByteArray* t85b658 = new QByteArray(static_cast(ptr)->childGroups().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t85b658->prepend("WHITESPACE").constData()+10), t85b658->size()-10, t85b658 }; }); +} + +struct QtCore_PackedString QSettings_ChildKeys(void* ptr) +{ + return ({ QByteArray* t28840d = new QByteArray(static_cast(ptr)->childKeys().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t28840d->prepend("WHITESPACE").constData()+10), t28840d->size()-10, t28840d }; }); +} + +void QSettings_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +char QSettings_Contains(void* ptr, struct QtCore_PackedString key) +{ + return static_cast(ptr)->contains(QString::fromUtf8(key.data, key.len)); +} + +long long QSettings_QSettings_DefaultFormat() +{ + return QSettings::defaultFormat(); +} + +void QSettings_EndArray(void* ptr) +{ + static_cast(ptr)->endArray(); +} + +void QSettings_EndGroup(void* ptr) +{ + static_cast(ptr)->endGroup(); +} + +char QSettings_FallbacksEnabled(void* ptr) +{ + return static_cast(ptr)->fallbacksEnabled(); +} + +struct QtCore_PackedString QSettings_FileName(void* ptr) +{ + return ({ QByteArray* tb2013f = new QByteArray(static_cast(ptr)->fileName().toUtf8()); QtCore_PackedString { const_cast(tb2013f->prepend("WHITESPACE").constData()+10), tb2013f->size()-10, tb2013f }; }); +} + +long long QSettings_Format(void* ptr) +{ + return static_cast(ptr)->format(); +} + +struct QtCore_PackedString QSettings_Group(void* ptr) +{ + return ({ QByteArray* t8d2697 = new QByteArray(static_cast(ptr)->group().toUtf8()); QtCore_PackedString { const_cast(t8d2697->prepend("WHITESPACE").constData()+10), t8d2697->size()-10, t8d2697 }; }); +} + +void* QSettings_IniCodec(void* ptr) +{ + return static_cast(ptr)->iniCodec(); +} + +char QSettings_IsAtomicSyncRequired(void* ptr) +{ + return static_cast(ptr)->isAtomicSyncRequired(); +} + +char QSettings_IsWritable(void* ptr) +{ + return static_cast(ptr)->isWritable(); +} + +struct QtCore_PackedString QSettings_OrganizationName(void* ptr) +{ + return ({ QByteArray* t43251f = new QByteArray(static_cast(ptr)->organizationName().toUtf8()); QtCore_PackedString { const_cast(t43251f->prepend("WHITESPACE").constData()+10), t43251f->size()-10, t43251f }; }); +} + +void QSettings_Remove(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->remove(QString::fromUtf8(key.data, key.len)); +} + +long long QSettings_Scope(void* ptr) +{ + return static_cast(ptr)->scope(); +} + +void QSettings_SetArrayIndex(void* ptr, int i) +{ + static_cast(ptr)->setArrayIndex(i); +} + +void QSettings_SetAtomicSyncRequired(void* ptr, char enable) +{ + static_cast(ptr)->setAtomicSyncRequired(enable != 0); +} + +void QSettings_QSettings_SetDefaultFormat(long long format) +{ + QSettings::setDefaultFormat(static_cast(format)); +} + +void QSettings_SetFallbacksEnabled(void* ptr, char b) +{ + static_cast(ptr)->setFallbacksEnabled(b != 0); +} + +void QSettings_SetIniCodec(void* ptr, void* codec) +{ + static_cast(ptr)->setIniCodec(static_cast(codec)); +} + +void QSettings_SetIniCodec2(void* ptr, char* codecName) +{ + static_cast(ptr)->setIniCodec(const_cast(codecName)); +} + +void QSettings_QSettings_SetPath(long long format, long long scope, struct QtCore_PackedString path) +{ + QSettings::setPath(static_cast(format), static_cast(scope), QString::fromUtf8(path.data, path.len)); +} + +void QSettings_SetValue(void* ptr, struct QtCore_PackedString key, void* value) +{ + static_cast(ptr)->setValue(QString::fromUtf8(key.data, key.len), *static_cast(value)); +} + +long long QSettings_Status(void* ptr) +{ + return static_cast(ptr)->status(); +} + +void QSettings_Sync(void* ptr) +{ + static_cast(ptr)->sync(); +} + +void* QSettings_Value(void* ptr, struct QtCore_PackedString key, void* defaultValue) +{ + return new QVariant(static_cast(ptr)->value(QString::fromUtf8(key.data, key.len), *static_cast(defaultValue))); +} + +void QSettings_DestroyQSettings(void* ptr) +{ + static_cast(ptr)->~QSettings(); +} + +void QSettings_DestroyQSettingsDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QSharedData) +Q_DECLARE_METATYPE(QSharedData*) +void* QSharedData_NewQSharedData() +{ + return new QSharedData(); +} + +void* QSharedData_NewQSharedData2(void* vqs) +{ + return new QSharedData(*static_cast(vqs)); +} + +class MyQSharedMemory: public QSharedMemory +{ +public: + MyQSharedMemory(const QString &key, QObject *parent = Q_NULLPTR) : QSharedMemory(key, parent) {QSharedMemory_QSharedMemory_QRegisterMetaType();}; + MyQSharedMemory(QObject *parent = Q_NULLPTR) : QSharedMemory(parent) {QSharedMemory_QSharedMemory_QRegisterMetaType();}; + ~MyQSharedMemory() { callbackQSharedMemory_DestroyQSharedMemory(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSharedMemory*) +Q_DECLARE_METATYPE(MyQSharedMemory*) + +int QSharedMemory_QSharedMemory_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QSharedMemory_NewQSharedMemory(struct QtCore_PackedString key, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } else { + return new MyQSharedMemory(QString::fromUtf8(key.data, key.len), static_cast(parent)); + } +} + +void* QSharedMemory_NewQSharedMemory2(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSharedMemory(static_cast(parent)); + } else { + return new MyQSharedMemory(static_cast(parent)); + } +} + +char QSharedMemory_Attach(void* ptr, long long mode) +{ + return static_cast(ptr)->attach(static_cast(mode)); +} + +void* QSharedMemory_ConstData(void* ptr) +{ + return const_cast(static_cast(ptr)->constData()); +} + +char QSharedMemory_Create(void* ptr, int size, long long mode) +{ + return static_cast(ptr)->create(size, static_cast(mode)); +} + +void* QSharedMemory_Data(void* ptr) +{ + return static_cast(ptr)->data(); +} + +void* QSharedMemory_Data2(void* ptr) +{ + return const_cast(static_cast(ptr)->data()); +} + +char QSharedMemory_Detach(void* ptr) +{ + return static_cast(ptr)->detach(); +} + +long long QSharedMemory_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +struct QtCore_PackedString QSharedMemory_ErrorString(void* ptr) +{ + return ({ QByteArray* t1fb547 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t1fb547->prepend("WHITESPACE").constData()+10), t1fb547->size()-10, t1fb547 }; }); +} + +char QSharedMemory_IsAttached(void* ptr) +{ + return static_cast(ptr)->isAttached(); +} + +struct QtCore_PackedString QSharedMemory_Key(void* ptr) +{ + return ({ QByteArray* t0bb3c9 = new QByteArray(static_cast(ptr)->key().toUtf8()); QtCore_PackedString { const_cast(t0bb3c9->prepend("WHITESPACE").constData()+10), t0bb3c9->size()-10, t0bb3c9 }; }); +} + +char QSharedMemory_Lock(void* ptr) +{ + return static_cast(ptr)->lock(); +} + +struct QtCore_PackedString QSharedMemory_NativeKey(void* ptr) +{ + return ({ QByteArray* t971b81 = new QByteArray(static_cast(ptr)->nativeKey().toUtf8()); QtCore_PackedString { const_cast(t971b81->prepend("WHITESPACE").constData()+10), t971b81->size()-10, t971b81 }; }); +} + +void QSharedMemory_SetKey(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->setKey(QString::fromUtf8(key.data, key.len)); +} + +void QSharedMemory_SetNativeKey(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->setNativeKey(QString::fromUtf8(key.data, key.len)); +} + +int QSharedMemory_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +char QSharedMemory_Unlock(void* ptr) +{ + return static_cast(ptr)->unlock(); +} + +void QSharedMemory_DestroyQSharedMemory(void* ptr) +{ + static_cast(ptr)->~QSharedMemory(); +} + +void QSharedMemory_DestroyQSharedMemoryDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QSignalBlocker*) +void* QSignalBlocker_NewQSignalBlocker(void* object) +{ + if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(static_cast(object)); + } else { + return new QSignalBlocker(static_cast(object)); + } +} + +void* QSignalBlocker_NewQSignalBlocker2(void* object) +{ + if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else if (dynamic_cast(static_cast(object))) { + return new QSignalBlocker(*static_cast(object)); + } else { + return new QSignalBlocker(*static_cast(object)); + } +} + +void QSignalBlocker_Reblock(void* ptr) +{ + static_cast(ptr)->reblock(); +} + +void QSignalBlocker_Unblock(void* ptr) +{ + static_cast(ptr)->unblock(); +} + +void QSignalBlocker_DestroyQSignalBlocker(void* ptr) +{ + static_cast(ptr)->~QSignalBlocker(); +} + +class MyQSignalTransition: public QSignalTransition +{ +public: + MyQSignalTransition(QState *sourceState = Q_NULLPTR) : QSignalTransition(sourceState) {QSignalTransition_QSignalTransition_QRegisterMetaType();}; + MyQSignalTransition(const QObject *sender, const char *sign, QState *sourceState = Q_NULLPTR) : QSignalTransition(sender, sign, sourceState) {QSignalTransition_QSignalTransition_QRegisterMetaType();}; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventTest(QEvent * event) { return callbackQSignalTransition_EventTest(this, event) != 0; }; + void onTransition(QEvent * event) { callbackQSignalTransition_OnTransition(this, event); }; + void Signal_SenderObjectChanged() { callbackQSignalTransition_SenderObjectChanged(this); }; + void Signal_SignalChanged() { callbackQSignalTransition_SignalChanged(this); }; + ~MyQSignalTransition() { callbackQSignalTransition_DestroyQSignalTransition(this); }; + void Signal_TargetStateChanged() { callbackQAbstractTransition_TargetStateChanged(this); }; + void Signal_TargetStatesChanged() { callbackQAbstractTransition_TargetStatesChanged(this); }; + void Signal_Triggered() { callbackQAbstractTransition_Triggered(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSignalTransition*) +Q_DECLARE_METATYPE(MyQSignalTransition*) + +int QSignalTransition_QSignalTransition_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QSignalTransition_NewQSignalTransition(void* sourceState) +{ + return new MyQSignalTransition(static_cast(sourceState)); +} + +void* QSignalTransition_NewQSignalTransition2(void* sender, char* sign, void* sourceState) +{ + if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else if (dynamic_cast(static_cast(sender))) { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } else { + return new MyQSignalTransition(static_cast(sender), const_cast(sign), static_cast(sourceState)); + } +} + +char QSignalTransition_EventTest(void* ptr, void* event) +{ + return static_cast(ptr)->eventTest(static_cast(event)); +} + +char QSignalTransition_EventTestDefault(void* ptr, void* event) +{ + return static_cast(ptr)->QSignalTransition::eventTest(static_cast(event)); +} + +void QSignalTransition_OnTransition(void* ptr, void* event) +{ + static_cast(ptr)->onTransition(static_cast(event)); +} + +void QSignalTransition_OnTransitionDefault(void* ptr, void* event) +{ + static_cast(ptr)->QSignalTransition::onTransition(static_cast(event)); +} + +void* QSignalTransition_SenderObject(void* ptr) +{ + return static_cast(ptr)->senderObject(); +} + +void QSignalTransition_ConnectSenderObjectChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QSignalTransition::senderObjectChanged, static_cast(ptr), static_cast(&MyQSignalTransition::Signal_SenderObjectChanged), static_cast(t)); +} + +void QSignalTransition_DisconnectSenderObjectChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QSignalTransition::senderObjectChanged, static_cast(ptr), static_cast(&MyQSignalTransition::Signal_SenderObjectChanged)); +} + +void QSignalTransition_SetSenderObject(void* ptr, void* sender) +{ + static_cast(ptr)->setSenderObject(static_cast(sender)); +} + +void QSignalTransition_SetSignal(void* ptr, void* sign) +{ + static_cast(ptr)->setSignal(*static_cast(sign)); +} + +void* QSignalTransition_Signal(void* ptr) +{ + return new QByteArray(static_cast(ptr)->signal()); +} + +void QSignalTransition_ConnectSignalChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QSignalTransition::signalChanged, static_cast(ptr), static_cast(&MyQSignalTransition::Signal_SignalChanged), static_cast(t)); +} + +void QSignalTransition_DisconnectSignalChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QSignalTransition::signalChanged, static_cast(ptr), static_cast(&MyQSignalTransition::Signal_SignalChanged)); +} + +void QSignalTransition_DestroyQSignalTransition(void* ptr) +{ + static_cast(ptr)->~QSignalTransition(); +} + +void QSignalTransition_DestroyQSignalTransitionDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QSize) +Q_DECLARE_METATYPE(QSize*) +void* QSize_NewQSize() +{ + return new QSize(); +} + +void* QSize_NewQSize2(int width, int height) +{ + return new QSize(width, height); +} + +void* QSize_BoundedTo(void* ptr, void* otherSize) +{ + return ({ QSize tmpValue = static_cast(ptr)->boundedTo(*static_cast(otherSize)); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +void* QSize_ExpandedTo(void* ptr, void* otherSize) +{ + return ({ QSize tmpValue = static_cast(ptr)->expandedTo(*static_cast(otherSize)); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +int QSize_Height(void* ptr) +{ + return static_cast(ptr)->height(); +} + +char QSize_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QSize_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QSize_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QSize_Rheight(void* ptr) +{ + return static_cast(ptr)->rheight(); +} + +int QSize_Rwidth(void* ptr) +{ + return static_cast(ptr)->rwidth(); +} + +void QSize_Scale(void* ptr, int width, int height, long long mode) +{ + static_cast(ptr)->scale(width, height, static_cast(mode)); +} + +void QSize_Scale2(void* ptr, void* size, long long mode) +{ + static_cast(ptr)->scale(*static_cast(size), static_cast(mode)); +} + +void* QSize_Scaled(void* ptr, int width, int height, long long mode) +{ + return ({ QSize tmpValue = static_cast(ptr)->scaled(width, height, static_cast(mode)); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +void* QSize_Scaled2(void* ptr, void* s, long long mode) +{ + return ({ QSize tmpValue = static_cast(ptr)->scaled(*static_cast(s), static_cast(mode)); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +void QSize_SetHeight(void* ptr, int height) +{ + static_cast(ptr)->setHeight(height); +} + +void QSize_SetWidth(void* ptr, int width) +{ + static_cast(ptr)->setWidth(width); +} + +void QSize_Transpose(void* ptr) +{ + static_cast(ptr)->transpose(); +} + +void* QSize_Transposed(void* ptr) +{ + return ({ QSize tmpValue = static_cast(ptr)->transposed(); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +int QSize_Width(void* ptr) +{ + return static_cast(ptr)->width(); +} + +Q_DECLARE_METATYPE(QSizeF) +Q_DECLARE_METATYPE(QSizeF*) +void* QSizeF_NewQSizeF() +{ + return new QSizeF(); +} + +void* QSizeF_NewQSizeF2(void* size) +{ + return new QSizeF(*static_cast(size)); +} + +void* QSizeF_NewQSizeF3(double width, double height) +{ + return new QSizeF(width, height); +} + +void* QSizeF_BoundedTo(void* ptr, void* otherSize) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->boundedTo(*static_cast(otherSize)); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +void* QSizeF_ExpandedTo(void* ptr, void* otherSize) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->expandedTo(*static_cast(otherSize)); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +double QSizeF_Height(void* ptr) +{ + return static_cast(ptr)->height(); +} + +char QSizeF_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QSizeF_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QSizeF_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +double QSizeF_Rheight(void* ptr) +{ + return static_cast(ptr)->rheight(); +} + +double QSizeF_Rwidth(void* ptr) +{ + return static_cast(ptr)->rwidth(); +} + +void QSizeF_Scale(void* ptr, double width, double height, long long mode) +{ + static_cast(ptr)->scale(width, height, static_cast(mode)); +} + +void QSizeF_Scale2(void* ptr, void* size, long long mode) +{ + static_cast(ptr)->scale(*static_cast(size), static_cast(mode)); +} + +void* QSizeF_Scaled(void* ptr, double width, double height, long long mode) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->scaled(width, height, static_cast(mode)); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +void* QSizeF_Scaled2(void* ptr, void* s, long long mode) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->scaled(*static_cast(s), static_cast(mode)); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +void QSizeF_SetHeight(void* ptr, double height) +{ + static_cast(ptr)->setHeight(height); +} + +void QSizeF_SetWidth(void* ptr, double width) +{ + static_cast(ptr)->setWidth(width); +} + +void* QSizeF_ToSize(void* ptr) +{ + return ({ QSize tmpValue = static_cast(ptr)->toSize(); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +void QSizeF_Transpose(void* ptr) +{ + static_cast(ptr)->transpose(); +} + +void* QSizeF_Transposed(void* ptr) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->transposed(); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +double QSizeF_Width(void* ptr) +{ + return static_cast(ptr)->width(); +} + +class MyQSocketNotifier: public QSocketNotifier +{ +public: + void Signal_Activated(int socket) { callbackQSocketNotifier_Activated(this, socket); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void setEnabled(bool enable) { callbackQSocketNotifier_SetEnabled(this, enable); }; + ~MyQSocketNotifier() { callbackQSocketNotifier_DestroyQSocketNotifier(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSocketNotifier*) +Q_DECLARE_METATYPE(MyQSocketNotifier*) + +int QSocketNotifier_QSocketNotifier_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void QSocketNotifier_ConnectActivated(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QSocketNotifier::activated, static_cast(ptr), static_cast(&MyQSocketNotifier::Signal_Activated), static_cast(t)); +} + +void QSocketNotifier_DisconnectActivated(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QSocketNotifier::activated, static_cast(ptr), static_cast(&MyQSocketNotifier::Signal_Activated)); +} + +char QSocketNotifier_IsEnabled(void* ptr) +{ + return static_cast(ptr)->isEnabled(); +} + +void QSocketNotifier_SetEnabled(void* ptr, char enable) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setEnabled", Q_ARG(bool, enable != 0)); +} + +void QSocketNotifier_SetEnabledDefault(void* ptr, char enable) +{ + static_cast(ptr)->QSocketNotifier::setEnabled(enable != 0); +} + +long long QSocketNotifier_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +void QSocketNotifier_DestroyQSocketNotifier(void* ptr) +{ + static_cast(ptr)->~QSocketNotifier(); +} + +void QSocketNotifier_DestroyQSocketNotifierDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQSortFilterProxyModel: public QSortFilterProxyModel +{ +public: + MyQSortFilterProxyModel(QObject *parent = Q_NULLPTR) : QSortFilterProxyModel(parent) {QSortFilterProxyModel_QSortFilterProxyModel_QRegisterMetaType();}; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQSortFilterProxyModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQAbstractProxyModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + bool filterAcceptsColumn(int source_column, const QModelIndex & source_parent) const { return callbackQSortFilterProxyModel_FilterAcceptsColumn(const_cast(static_cast(this)), source_column, const_cast(&source_parent)) != 0; }; + bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const { return callbackQSortFilterProxyModel_FilterAcceptsRow(const_cast(static_cast(this)), source_row, const_cast(&source_parent)) != 0; }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQSortFilterProxyModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + void invalidate() { callbackQSortFilterProxyModel_Invalidate(this); }; + bool lessThan(const QModelIndex & source_left, const QModelIndex & source_right) const { return callbackQSortFilterProxyModel_LessThan(const_cast(static_cast(this)), const_cast(&source_left), const_cast(&source_right)) != 0; }; + QModelIndex mapFromSource(const QModelIndex & sourceIndex) const { return *static_cast(callbackQSortFilterProxyModel_MapFromSource(const_cast(static_cast(this)), const_cast(&sourceIndex))); }; + QItemSelection mapSelectionFromSource(const QItemSelection & sourceSelection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionFromSource(const_cast(static_cast(this)), const_cast(&sourceSelection))); }; + QItemSelection mapSelectionToSource(const QItemSelection & proxySelection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionToSource(const_cast(static_cast(this)), const_cast(&proxySelection))); }; + QModelIndex mapToSource(const QModelIndex & proxyIndex) const { return *static_cast(callbackQSortFilterProxyModel_MapToSource(const_cast(static_cast(this)), const_cast(&proxyIndex))); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + QModelIndex parent(const QModelIndex & child) const { return *static_cast(callbackQSortFilterProxyModel_Parent(const_cast(static_cast(this)), const_cast(&child))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + int rowCount(const QModelIndex & parent) const { return callbackQSortFilterProxyModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + void setFilterFixedString(const QString & pattern) { QByteArray* t91cc2e = new QByteArray(pattern.toUtf8()); QtCore_PackedString patternPacked = { const_cast(t91cc2e->prepend("WHITESPACE").constData()+10), t91cc2e->size()-10, t91cc2e };callbackQSortFilterProxyModel_SetFilterFixedString(this, patternPacked); }; + void setFilterRegExp(const QRegExp & regExp) { callbackQSortFilterProxyModel_SetFilterRegExp(this, const_cast(®Exp)); }; + void setFilterRegExp(const QString & pattern) { QByteArray* t91cc2e = new QByteArray(pattern.toUtf8()); QtCore_PackedString patternPacked = { const_cast(t91cc2e->prepend("WHITESPACE").constData()+10), t91cc2e->size()-10, t91cc2e };callbackQSortFilterProxyModel_SetFilterRegExp2(this, patternPacked); }; + void setFilterRegularExpression(const QString & pattern) { QByteArray* t91cc2e = new QByteArray(pattern.toUtf8()); QtCore_PackedString patternPacked = { const_cast(t91cc2e->prepend("WHITESPACE").constData()+10), t91cc2e->size()-10, t91cc2e };callbackQSortFilterProxyModel_SetFilterRegularExpression(this, patternPacked); }; + void setFilterRegularExpression(const QRegularExpression & regularExpression) { callbackQSortFilterProxyModel_SetFilterRegularExpression2(this, const_cast(®ularExpression)); }; + void setFilterWildcard(const QString & pattern) { QByteArray* t91cc2e = new QByteArray(pattern.toUtf8()); QtCore_PackedString patternPacked = { const_cast(t91cc2e->prepend("WHITESPACE").constData()+10), t91cc2e->size()-10, t91cc2e };callbackQSortFilterProxyModel_SetFilterWildcard(this, patternPacked); }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + void setSourceModel(QAbstractItemModel * sourceModel) { callbackQAbstractProxyModel_SetSourceModel(this, sourceModel); }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + ~MyQSortFilterProxyModel() { callbackQSortFilterProxyModel_DestroyQSortFilterProxyModel(this); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & proxyIndex) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&proxyIndex))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractProxyModel_Revert(this); }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + void Signal_SourceModelChanged() { callbackQAbstractProxyModel_SourceModelChanged(this); }; + bool submit() { return callbackQAbstractProxyModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QSortFilterProxyModel*) +Q_DECLARE_METATYPE(MyQSortFilterProxyModel*) + +int QSortFilterProxyModel_QSortFilterProxyModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QSortFilterProxyModel_NewQSortFilterProxyModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQSortFilterProxyModel(static_cast(parent)); + } else { + return new MyQSortFilterProxyModel(static_cast(parent)); + } +} + +int QSortFilterProxyModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QSortFilterProxyModel_ColumnCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QSortFilterProxyModel::columnCount(*static_cast(parent)); +} + +char QSortFilterProxyModel_DynamicSortFilter(void* ptr) +{ + return static_cast(ptr)->dynamicSortFilter(); +} + +char QSortFilterProxyModel_FilterAcceptsColumn(void* ptr, int source_column, void* source_parent) +{ + return static_cast(ptr)->filterAcceptsColumn(source_column, *static_cast(source_parent)); +} + +char QSortFilterProxyModel_FilterAcceptsColumnDefault(void* ptr, int source_column, void* source_parent) +{ + return static_cast(ptr)->QSortFilterProxyModel::filterAcceptsColumn(source_column, *static_cast(source_parent)); +} + +char QSortFilterProxyModel_FilterAcceptsRow(void* ptr, int source_row, void* source_parent) +{ + return static_cast(ptr)->filterAcceptsRow(source_row, *static_cast(source_parent)); +} + +char QSortFilterProxyModel_FilterAcceptsRowDefault(void* ptr, int source_row, void* source_parent) +{ + return static_cast(ptr)->QSortFilterProxyModel::filterAcceptsRow(source_row, *static_cast(source_parent)); +} + +long long QSortFilterProxyModel_FilterCaseSensitivity(void* ptr) +{ + return static_cast(ptr)->filterCaseSensitivity(); +} + +int QSortFilterProxyModel_FilterKeyColumn(void* ptr) +{ + return static_cast(ptr)->filterKeyColumn(); +} + +void* QSortFilterProxyModel_FilterRegExp(void* ptr) +{ + return new QRegExp(static_cast(ptr)->filterRegExp()); +} + +void* QSortFilterProxyModel_FilterRegularExpression(void* ptr) +{ + return new QRegularExpression(static_cast(ptr)->filterRegularExpression()); +} + +int QSortFilterProxyModel_FilterRole(void* ptr) +{ + return static_cast(ptr)->filterRole(); +} + +void* QSortFilterProxyModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QSortFilterProxyModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::index(row, column, *static_cast(parent))); +} + +void QSortFilterProxyModel_Invalidate(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "invalidate"); +} + +void QSortFilterProxyModel_InvalidateDefault(void* ptr) +{ + static_cast(ptr)->QSortFilterProxyModel::invalidate(); +} + +void QSortFilterProxyModel_InvalidateFilter(void* ptr) +{ + static_cast(ptr)->invalidateFilter(); +} + +char QSortFilterProxyModel_IsRecursiveFilteringEnabled(void* ptr) +{ + return static_cast(ptr)->isRecursiveFilteringEnabled(); +} + +char QSortFilterProxyModel_IsSortLocaleAware(void* ptr) +{ + return static_cast(ptr)->isSortLocaleAware(); +} + +char QSortFilterProxyModel_LessThan(void* ptr, void* source_left, void* source_right) +{ + return static_cast(ptr)->lessThan(*static_cast(source_left), *static_cast(source_right)); +} + +char QSortFilterProxyModel_LessThanDefault(void* ptr, void* source_left, void* source_right) +{ + return static_cast(ptr)->QSortFilterProxyModel::lessThan(*static_cast(source_left), *static_cast(source_right)); +} + +void* QSortFilterProxyModel_MapFromSource(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->mapFromSource(*static_cast(sourceIndex))); +} + +void* QSortFilterProxyModel_MapFromSourceDefault(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::mapFromSource(*static_cast(sourceIndex))); +} + +void* QSortFilterProxyModel_MapToSource(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->mapToSource(*static_cast(proxyIndex))); +} + +void* QSortFilterProxyModel_MapToSourceDefault(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::mapToSource(*static_cast(proxyIndex))); +} + +void* QSortFilterProxyModel_Parent(void* ptr, void* child) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(child))); +} + +void* QSortFilterProxyModel_ParentDefault(void* ptr, void* child) +{ + return new QModelIndex(static_cast(ptr)->QSortFilterProxyModel::parent(*static_cast(child))); +} + +int QSortFilterProxyModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QSortFilterProxyModel_RowCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QSortFilterProxyModel::rowCount(*static_cast(parent)); +} + +void QSortFilterProxyModel_SetDynamicSortFilter(void* ptr, char enable) +{ + static_cast(ptr)->setDynamicSortFilter(enable != 0); +} + +void QSortFilterProxyModel_SetFilterCaseSensitivity(void* ptr, long long cs) +{ + static_cast(ptr)->setFilterCaseSensitivity(static_cast(cs)); +} + +void QSortFilterProxyModel_SetFilterFixedString(void* ptr, struct QtCore_PackedString pattern) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setFilterFixedString", Q_ARG(const QString, QString::fromUtf8(pattern.data, pattern.len))); +} + +void QSortFilterProxyModel_SetFilterFixedStringDefault(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->QSortFilterProxyModel::setFilterFixedString(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QSortFilterProxyModel_SetFilterKeyColumn(void* ptr, int column) +{ + static_cast(ptr)->setFilterKeyColumn(column); +} + +void QSortFilterProxyModel_SetFilterRegExp(void* ptr, void* regExp) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setFilterRegExp", Q_ARG(const QRegExp, *static_cast(regExp))); +} + +void QSortFilterProxyModel_SetFilterRegExpDefault(void* ptr, void* regExp) +{ + static_cast(ptr)->QSortFilterProxyModel::setFilterRegExp(*static_cast(regExp)); +} + +void QSortFilterProxyModel_SetFilterRegExp2(void* ptr, struct QtCore_PackedString pattern) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setFilterRegExp", Q_ARG(const QString, QString::fromUtf8(pattern.data, pattern.len))); +} + +void QSortFilterProxyModel_SetFilterRegExp2Default(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->QSortFilterProxyModel::setFilterRegExp(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QSortFilterProxyModel_SetFilterRegularExpression(void* ptr, struct QtCore_PackedString pattern) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setFilterRegularExpression", Q_ARG(const QString, QString::fromUtf8(pattern.data, pattern.len))); +} + +void QSortFilterProxyModel_SetFilterRegularExpressionDefault(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->QSortFilterProxyModel::setFilterRegularExpression(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QSortFilterProxyModel_SetFilterRegularExpression2(void* ptr, void* regularExpression) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setFilterRegularExpression", Q_ARG(const QRegularExpression, *static_cast(regularExpression))); +} + +void QSortFilterProxyModel_SetFilterRegularExpression2Default(void* ptr, void* regularExpression) +{ + static_cast(ptr)->QSortFilterProxyModel::setFilterRegularExpression(*static_cast(regularExpression)); +} + +void QSortFilterProxyModel_SetFilterRole(void* ptr, int role) +{ + static_cast(ptr)->setFilterRole(role); +} + +void QSortFilterProxyModel_SetFilterWildcard(void* ptr, struct QtCore_PackedString pattern) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setFilterWildcard", Q_ARG(const QString, QString::fromUtf8(pattern.data, pattern.len))); +} + +void QSortFilterProxyModel_SetFilterWildcardDefault(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->QSortFilterProxyModel::setFilterWildcard(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QSortFilterProxyModel_SetRecursiveFilteringEnabled(void* ptr, char recursive) +{ + static_cast(ptr)->setRecursiveFilteringEnabled(recursive != 0); +} + +void QSortFilterProxyModel_SetSortCaseSensitivity(void* ptr, long long cs) +{ + static_cast(ptr)->setSortCaseSensitivity(static_cast(cs)); +} + +void QSortFilterProxyModel_SetSortLocaleAware(void* ptr, char on) +{ + static_cast(ptr)->setSortLocaleAware(on != 0); +} + +void QSortFilterProxyModel_SetSortRole(void* ptr, int role) +{ + static_cast(ptr)->setSortRole(role); +} + +long long QSortFilterProxyModel_SortCaseSensitivity(void* ptr) +{ + return static_cast(ptr)->sortCaseSensitivity(); +} + +int QSortFilterProxyModel_SortColumn(void* ptr) +{ + return static_cast(ptr)->sortColumn(); +} + +long long QSortFilterProxyModel_SortOrder(void* ptr) +{ + return static_cast(ptr)->sortOrder(); +} + +int QSortFilterProxyModel_SortRole(void* ptr) +{ + return static_cast(ptr)->sortRole(); +} + +void QSortFilterProxyModel_DestroyQSortFilterProxyModel(void* ptr) +{ + static_cast(ptr)->~QSortFilterProxyModel(); +} + +void QSortFilterProxyModel_DestroyQSortFilterProxyModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +struct QtCore_PackedString QStandardPaths_QStandardPaths_DisplayName(long long ty) +{ + return ({ QByteArray* t0e52e2 = new QByteArray(QStandardPaths::displayName(static_cast(ty)).toUtf8()); QtCore_PackedString { const_cast(t0e52e2->prepend("WHITESPACE").constData()+10), t0e52e2->size()-10, t0e52e2 }; }); +} + +struct QtCore_PackedString QStandardPaths_QStandardPaths_FindExecutable(struct QtCore_PackedString executableName, struct QtCore_PackedString paths) +{ + return ({ QByteArray* t2ef25b = new QByteArray(QStandardPaths::findExecutable(QString::fromUtf8(executableName.data, executableName.len), QString::fromUtf8(paths.data, paths.len).split("¡¦!", QString::SkipEmptyParts)).toUtf8()); QtCore_PackedString { const_cast(t2ef25b->prepend("WHITESPACE").constData()+10), t2ef25b->size()-10, t2ef25b }; }); +} + +struct QtCore_PackedString QStandardPaths_QStandardPaths_Locate(long long ty, struct QtCore_PackedString fileName, long long options) +{ + return ({ QByteArray* t1c6d77 = new QByteArray(QStandardPaths::locate(static_cast(ty), QString::fromUtf8(fileName.data, fileName.len), static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t1c6d77->prepend("WHITESPACE").constData()+10), t1c6d77->size()-10, t1c6d77 }; }); +} + +struct QtCore_PackedString QStandardPaths_QStandardPaths_LocateAll(long long ty, struct QtCore_PackedString fileName, long long options) +{ + return ({ QByteArray* t84546e = new QByteArray(QStandardPaths::locateAll(static_cast(ty), QString::fromUtf8(fileName.data, fileName.len), static_cast(options)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t84546e->prepend("WHITESPACE").constData()+10), t84546e->size()-10, t84546e }; }); +} + +void QStandardPaths_QStandardPaths_SetTestModeEnabled(char testMode) +{ + QStandardPaths::setTestModeEnabled(testMode != 0); +} + +struct QtCore_PackedString QStandardPaths_QStandardPaths_StandardLocations(long long ty) +{ + return ({ QByteArray* t70622a = new QByteArray(QStandardPaths::standardLocations(static_cast(ty)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t70622a->prepend("WHITESPACE").constData()+10), t70622a->size()-10, t70622a }; }); +} + +struct QtCore_PackedString QStandardPaths_QStandardPaths_WritableLocation(long long ty) +{ + return ({ QByteArray* t06b5c0 = new QByteArray(QStandardPaths::writableLocation(static_cast(ty)).toUtf8()); QtCore_PackedString { const_cast(t06b5c0->prepend("WHITESPACE").constData()+10), t06b5c0->size()-10, t06b5c0 }; }); +} + +class MyQState: public QState +{ +public: + MyQState(QState *parent = Q_NULLPTR) : QState(parent) {QState_QState_QRegisterMetaType();}; + MyQState(QState::ChildMode childMode, QState *parent = Q_NULLPTR) : QState(childMode, parent) {QState_QState_QRegisterMetaType();}; + void Signal_ChildModeChanged() { callbackQState_ChildModeChanged(this); }; + void Signal_ErrorStateChanged() { callbackQState_ErrorStateChanged(this); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + void Signal_Finished() { callbackQState_Finished(this); }; + void Signal_InitialStateChanged() { callbackQState_InitialStateChanged(this); }; + void onEntry(QEvent * event) { callbackQState_OnEntry(this, event); }; + void onExit(QEvent * event) { callbackQState_OnExit(this, event); }; + void Signal_PropertiesAssigned() { callbackQState_PropertiesAssigned(this); }; + ~MyQState() { callbackQState_DestroyQState(this); }; + void Signal_ActiveChanged(bool active) { callbackQAbstractState_ActiveChanged(this, active); }; + void Signal_Entered() { callbackQAbstractState_Entered(this); }; + void Signal_Exited() { callbackQAbstractState_Exited(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QState*) +Q_DECLARE_METATYPE(MyQState*) + +int QState_QState_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QState_NewQState(void* parent) +{ + return new MyQState(static_cast(parent)); +} + +void* QState_NewQState2(long long childMode, void* parent) +{ + return new MyQState(static_cast(childMode), static_cast(parent)); +} + +void QState_AddTransition(void* ptr, void* transition) +{ + static_cast(ptr)->addTransition(static_cast(transition)); +} + +void* QState_AddTransition2(void* ptr, void* sender, char* sign, void* target) +{ + return static_cast(ptr)->addTransition(static_cast(sender), const_cast(sign), static_cast(target)); +} + +void* QState_AddTransition4(void* ptr, void* target) +{ + return static_cast(ptr)->addTransition(static_cast(target)); +} + +void QState_AssignProperty(void* ptr, void* object, char* name, void* value) +{ + static_cast(ptr)->assignProperty(static_cast(object), const_cast(name), *static_cast(value)); +} + +long long QState_ChildMode(void* ptr) +{ + return static_cast(ptr)->childMode(); +} + +void QState_ConnectChildModeChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QState::childModeChanged, static_cast(ptr), static_cast(&MyQState::Signal_ChildModeChanged), static_cast(t)); +} + +void QState_DisconnectChildModeChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QState::childModeChanged, static_cast(ptr), static_cast(&MyQState::Signal_ChildModeChanged)); +} + +void* QState_ErrorState(void* ptr) +{ + return static_cast(ptr)->errorState(); +} + +void QState_ConnectErrorStateChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QState::errorStateChanged, static_cast(ptr), static_cast(&MyQState::Signal_ErrorStateChanged), static_cast(t)); +} + +void QState_DisconnectErrorStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QState::errorStateChanged, static_cast(ptr), static_cast(&MyQState::Signal_ErrorStateChanged)); +} + +void QState_ConnectFinished(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QState::finished, static_cast(ptr), static_cast(&MyQState::Signal_Finished), static_cast(t)); +} + +void QState_DisconnectFinished(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QState::finished, static_cast(ptr), static_cast(&MyQState::Signal_Finished)); +} + +void* QState_InitialState(void* ptr) +{ + return static_cast(ptr)->initialState(); +} + +void QState_ConnectInitialStateChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QState::initialStateChanged, static_cast(ptr), static_cast(&MyQState::Signal_InitialStateChanged), static_cast(t)); +} + +void QState_DisconnectInitialStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QState::initialStateChanged, static_cast(ptr), static_cast(&MyQState::Signal_InitialStateChanged)); +} + +void QState_OnEntry(void* ptr, void* event) +{ + static_cast(ptr)->onEntry(static_cast(event)); +} + +void QState_OnEntryDefault(void* ptr, void* event) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::onEntry(static_cast(event)); + } else { + static_cast(ptr)->QState::onEntry(static_cast(event)); + } +} + +void QState_OnExit(void* ptr, void* event) +{ + static_cast(ptr)->onExit(static_cast(event)); +} + +void QState_OnExitDefault(void* ptr, void* event) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QStateMachine::onExit(static_cast(event)); + } else { + static_cast(ptr)->QState::onExit(static_cast(event)); + } +} + +void QState_ConnectPropertiesAssigned(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QState::propertiesAssigned, static_cast(ptr), static_cast(&MyQState::Signal_PropertiesAssigned), static_cast(t)); +} + +void QState_DisconnectPropertiesAssigned(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QState::propertiesAssigned, static_cast(ptr), static_cast(&MyQState::Signal_PropertiesAssigned)); +} + +void QState_RemoveTransition(void* ptr, void* transition) +{ + static_cast(ptr)->removeTransition(static_cast(transition)); +} + +void QState_SetChildMode(void* ptr, long long mode) +{ + static_cast(ptr)->setChildMode(static_cast(mode)); +} + +void QState_SetErrorState(void* ptr, void* state) +{ + static_cast(ptr)->setErrorState(static_cast(state)); +} + +void QState_SetInitialState(void* ptr, void* state) +{ + static_cast(ptr)->setInitialState(static_cast(state)); +} + +struct QtCore_PackedList QState_Transitions(void* ptr) +{ + return ({ QList* tmpValue720ea7 = new QList(static_cast(ptr)->transitions()); QtCore_PackedList { tmpValue720ea7, tmpValue720ea7->size() }; }); +} + +void QState_DestroyQState(void* ptr) +{ + static_cast(ptr)->~QState(); +} + +void QState_DestroyQStateDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QState___transitions_atList(void* ptr, int i) +{ + return ({QAbstractTransition * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QState___transitions_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QState___transitions_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQStateMachine: public QStateMachine +{ +public: + MyQStateMachine(QObject *parent = Q_NULLPTR) : QStateMachine(parent) {QStateMachine_QStateMachine_QRegisterMetaType();}; + MyQStateMachine(QState::ChildMode childMode, QObject *parent = Q_NULLPTR) : QStateMachine(childMode, parent) {QStateMachine_QStateMachine_QRegisterMetaType();}; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + void onEntry(QEvent * event) { callbackQState_OnEntry(this, event); }; + void onExit(QEvent * event) { callbackQState_OnExit(this, event); }; + void Signal_RunningChanged(bool running) { callbackQStateMachine_RunningChanged(this, running); }; + void setRunning(bool running) { callbackQStateMachine_SetRunning(this, running); }; + void start() { callbackQStateMachine_Start(this); }; + void Signal_Started() { callbackQStateMachine_Started(this); }; + void stop() { callbackQStateMachine_Stop(this); }; + void Signal_Stopped() { callbackQStateMachine_Stopped(this); }; + ~MyQStateMachine() { callbackQStateMachine_DestroyQStateMachine(this); }; + void Signal_ChildModeChanged() { callbackQState_ChildModeChanged(this); }; + void Signal_ErrorStateChanged() { callbackQState_ErrorStateChanged(this); }; + void Signal_Finished() { callbackQState_Finished(this); }; + void Signal_InitialStateChanged() { callbackQState_InitialStateChanged(this); }; + void Signal_PropertiesAssigned() { callbackQState_PropertiesAssigned(this); }; + void Signal_ActiveChanged(bool active) { callbackQAbstractState_ActiveChanged(this, active); }; + void Signal_Entered() { callbackQAbstractState_Entered(this); }; + void Signal_Exited() { callbackQAbstractState_Exited(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QStateMachine*) +Q_DECLARE_METATYPE(MyQStateMachine*) + +int QStateMachine_QStateMachine_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QStateMachine_NewQStateMachine(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(parent)); + } else { + return new MyQStateMachine(static_cast(parent)); + } +} + +void* QStateMachine_NewQStateMachine2(long long childMode, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } else { + return new MyQStateMachine(static_cast(childMode), static_cast(parent)); + } +} + +void QStateMachine_AddDefaultAnimation(void* ptr, void* animation) +{ + static_cast(ptr)->addDefaultAnimation(static_cast(animation)); +} + +void QStateMachine_AddState(void* ptr, void* state) +{ + static_cast(ptr)->addState(static_cast(state)); +} + +char QStateMachine_CancelDelayedEvent(void* ptr, int id) +{ + return static_cast(ptr)->cancelDelayedEvent(id); +} + +void QStateMachine_ClearError(void* ptr) +{ + static_cast(ptr)->clearError(); +} + +struct QtCore_PackedList QStateMachine_DefaultAnimations(void* ptr) +{ + return ({ QList* tmpValue99eefa = new QList(static_cast(ptr)->defaultAnimations()); QtCore_PackedList { tmpValue99eefa, tmpValue99eefa->size() }; }); +} + +long long QStateMachine_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +struct QtCore_PackedString QStateMachine_ErrorString(void* ptr) +{ + return ({ QByteArray* tb4aee6 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(tb4aee6->prepend("WHITESPACE").constData()+10), tb4aee6->size()-10, tb4aee6 }; }); +} + +long long QStateMachine_GlobalRestorePolicy(void* ptr) +{ + return static_cast(ptr)->globalRestorePolicy(); +} + +char QStateMachine_IsAnimated(void* ptr) +{ + return static_cast(ptr)->isAnimated(); +} + +char QStateMachine_IsRunning(void* ptr) +{ + return static_cast(ptr)->isRunning(); +} + +int QStateMachine_PostDelayedEvent(void* ptr, void* event, int delay) +{ + return static_cast(ptr)->postDelayedEvent(static_cast(event), delay); +} + +void QStateMachine_PostEvent(void* ptr, void* event, long long priority) +{ + static_cast(ptr)->postEvent(static_cast(event), static_cast(priority)); +} + +void QStateMachine_RemoveDefaultAnimation(void* ptr, void* animation) +{ + static_cast(ptr)->removeDefaultAnimation(static_cast(animation)); +} + +void QStateMachine_RemoveState(void* ptr, void* state) +{ + static_cast(ptr)->removeState(static_cast(state)); +} + +void QStateMachine_ConnectRunningChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QStateMachine::runningChanged), static_cast(ptr), static_cast(&MyQStateMachine::Signal_RunningChanged), static_cast(t)); +} + +void QStateMachine_DisconnectRunningChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QStateMachine::runningChanged), static_cast(ptr), static_cast(&MyQStateMachine::Signal_RunningChanged)); +} + +void QStateMachine_RunningChanged(void* ptr, char running) +{ + static_cast(ptr)->runningChanged(running != 0); +} + +void QStateMachine_SetAnimated(void* ptr, char enabled) +{ + static_cast(ptr)->setAnimated(enabled != 0); +} + +void QStateMachine_SetGlobalRestorePolicy(void* ptr, long long restorePolicy) +{ + static_cast(ptr)->setGlobalRestorePolicy(static_cast(restorePolicy)); +} + +void QStateMachine_SetRunning(void* ptr, char running) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setRunning", Q_ARG(bool, running != 0)); +} + +void QStateMachine_SetRunningDefault(void* ptr, char running) +{ + static_cast(ptr)->QStateMachine::setRunning(running != 0); +} + +void QStateMachine_Start(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "start"); +} + +void QStateMachine_StartDefault(void* ptr) +{ + static_cast(ptr)->QStateMachine::start(); +} + +void QStateMachine_ConnectStarted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QStateMachine::started, static_cast(ptr), static_cast(&MyQStateMachine::Signal_Started), static_cast(t)); +} + +void QStateMachine_DisconnectStarted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QStateMachine::started, static_cast(ptr), static_cast(&MyQStateMachine::Signal_Started)); +} + +void QStateMachine_Stop(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "stop"); +} + +void QStateMachine_StopDefault(void* ptr) +{ + static_cast(ptr)->QStateMachine::stop(); +} + +void QStateMachine_ConnectStopped(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QStateMachine::stopped, static_cast(ptr), static_cast(&MyQStateMachine::Signal_Stopped), static_cast(t)); +} + +void QStateMachine_DisconnectStopped(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QStateMachine::stopped, static_cast(ptr), static_cast(&MyQStateMachine::Signal_Stopped)); +} + +void QStateMachine_DestroyQStateMachine(void* ptr) +{ + static_cast(ptr)->~QStateMachine(); +} + +void QStateMachine_DestroyQStateMachineDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QStateMachine___defaultAnimations_atList(void* ptr, int i) +{ + return ({QAbstractAnimation * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QStateMachine___defaultAnimations_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(static_cast(i)); +} + +void* QStateMachine___defaultAnimations_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QStaticPlugin_Instance(void* ptr) +{ + return static_cast(ptr)->instance(); +} + +void* QStaticPlugin_MetaData(void* ptr) +{ + return new QJsonObject(static_cast(ptr)->metaData()); +} + +struct QtCore_PackedString QStaticPlugin_RawMetaData(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->rawMetaData()), -1, NULL }; +} + +Q_DECLARE_METATYPE(QStorageInfo*) +void* QStorageInfo_NewQStorageInfo() +{ + return new QStorageInfo(); +} + +void* QStorageInfo_NewQStorageInfo2(struct QtCore_PackedString path) +{ + return new QStorageInfo(QString::fromUtf8(path.data, path.len)); +} + +void* QStorageInfo_NewQStorageInfo3(void* dir) +{ + return new QStorageInfo(*static_cast(dir)); +} + +void* QStorageInfo_NewQStorageInfo4(void* other) +{ + return new QStorageInfo(*static_cast(other)); +} + +int QStorageInfo_BlockSize(void* ptr) +{ + return static_cast(ptr)->blockSize(); +} + +long long QStorageInfo_BytesAvailable(void* ptr) +{ + return static_cast(ptr)->bytesAvailable(); +} + +long long QStorageInfo_BytesFree(void* ptr) +{ + return static_cast(ptr)->bytesFree(); +} + +long long QStorageInfo_BytesTotal(void* ptr) +{ + return static_cast(ptr)->bytesTotal(); +} + +void* QStorageInfo_Device(void* ptr) +{ + return new QByteArray(static_cast(ptr)->device()); +} + +struct QtCore_PackedString QStorageInfo_DisplayName(void* ptr) +{ + return ({ QByteArray* t7b3b54 = new QByteArray(static_cast(ptr)->displayName().toUtf8()); QtCore_PackedString { const_cast(t7b3b54->prepend("WHITESPACE").constData()+10), t7b3b54->size()-10, t7b3b54 }; }); +} + +void* QStorageInfo_FileSystemType(void* ptr) +{ + return new QByteArray(static_cast(ptr)->fileSystemType()); +} + +char QStorageInfo_IsReadOnly(void* ptr) +{ + return static_cast(ptr)->isReadOnly(); +} + +char QStorageInfo_IsReady(void* ptr) +{ + return static_cast(ptr)->isReady(); +} + +char QStorageInfo_IsRoot(void* ptr) +{ + return static_cast(ptr)->isRoot(); +} + +char QStorageInfo_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +struct QtCore_PackedList QStorageInfo_QStorageInfo_MountedVolumes() +{ + return ({ QList* tmpValuec2da3c = new QList(QStorageInfo::mountedVolumes()); QtCore_PackedList { tmpValuec2da3c, tmpValuec2da3c->size() }; }); +} + +struct QtCore_PackedString QStorageInfo_Name(void* ptr) +{ + return ({ QByteArray* t4fa869 = new QByteArray(static_cast(ptr)->name().toUtf8()); QtCore_PackedString { const_cast(t4fa869->prepend("WHITESPACE").constData()+10), t4fa869->size()-10, t4fa869 }; }); +} + +void QStorageInfo_Refresh(void* ptr) +{ + static_cast(ptr)->refresh(); +} + +void* QStorageInfo_QStorageInfo_Root() +{ + return new QStorageInfo(QStorageInfo::root()); +} + +struct QtCore_PackedString QStorageInfo_RootPath(void* ptr) +{ + return ({ QByteArray* t0ec510 = new QByteArray(static_cast(ptr)->rootPath().toUtf8()); QtCore_PackedString { const_cast(t0ec510->prepend("WHITESPACE").constData()+10), t0ec510->size()-10, t0ec510 }; }); +} + +void QStorageInfo_SetPath(void* ptr, struct QtCore_PackedString path) +{ + static_cast(ptr)->setPath(QString::fromUtf8(path.data, path.len)); +} + +void* QStorageInfo_Subvolume(void* ptr) +{ + return new QByteArray(static_cast(ptr)->subvolume()); +} + +void QStorageInfo_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void QStorageInfo_DestroyQStorageInfo(void* ptr) +{ + static_cast(ptr)->~QStorageInfo(); +} + +void* QStorageInfo___mountedVolumes_atList(void* ptr, int i) +{ + return new QStorageInfo(({QStorageInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QStorageInfo___mountedVolumes_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QStorageInfo___mountedVolumes_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQStringListModel: public QStringListModel +{ +public: + MyQStringListModel(QObject *parent = Q_NULLPTR) : QStringListModel(parent) {QStringListModel_QStringListModel_QRegisterMetaType();}; + MyQStringListModel(const QStringList &strin, QObject *parent = Q_NULLPTR) : QStringListModel(strin, parent) {QStringListModel_QStringListModel_QRegisterMetaType();}; + QVariant data(const QModelIndex & index, int role) const { return *static_cast(callbackQStringListModel_Data(const_cast(static_cast(this)), const_cast(&index), role)); }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & index) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&index))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + int rowCount(const QModelIndex & parent) const { return callbackQStringListModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQAbstractListModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + int columnCount(const QModelIndex & parent) const { return callbackQAbstractListModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceColumn, count, const_cast(&destinationParent), destinationChild) != 0; }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQAbstractListModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractItemModel_Revert(this); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + bool submit() { return callbackQAbstractItemModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QStringListModel*) +Q_DECLARE_METATYPE(MyQStringListModel*) + +int QStringListModel_QStringListModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QStringListModel_NewQStringListModel(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(static_cast(parent)); + } else { + return new MyQStringListModel(static_cast(parent)); + } +} + +void* QStringListModel_NewQStringListModel2(struct QtCore_PackedString strin, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } else { + return new MyQStringListModel(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts), static_cast(parent)); + } +} + +void* QStringListModel_Data(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->data(*static_cast(index), role)); +} + +void* QStringListModel_DataDefault(void* ptr, void* index, int role) +{ + return new QVariant(static_cast(ptr)->QStringListModel::data(*static_cast(index), role)); +} + +int QStringListModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QStringListModel_RowCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QStringListModel::rowCount(*static_cast(parent)); +} + +void QStringListModel_SetStringList(void* ptr, struct QtCore_PackedString strin) +{ + static_cast(ptr)->setStringList(QString::fromUtf8(strin.data, strin.len).split("¡¦!", QString::SkipEmptyParts)); +} + +struct QtCore_PackedString QStringListModel_StringList(void* ptr) +{ + return ({ QByteArray* t02c9ed = new QByteArray(static_cast(ptr)->stringList().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t02c9ed->prepend("WHITESPACE").constData()+10), t02c9ed->size()-10, t02c9ed }; }); +} + +Q_DECLARE_METATYPE(QStringMatcher) +Q_DECLARE_METATYPE(QStringMatcher*) +void* QStringMatcher_NewQStringMatcher() +{ + return new QStringMatcher(); +} + +void* QStringMatcher_NewQStringMatcher2(struct QtCore_PackedString pattern, long long cs) +{ + return new QStringMatcher(QString::fromUtf8(pattern.data, pattern.len), static_cast(cs)); +} + +void* QStringMatcher_NewQStringMatcher3(void* uc, int length, long long cs) +{ + return new QStringMatcher(static_cast(uc), length, static_cast(cs)); +} + +void* QStringMatcher_NewQStringMatcher4(void* other) +{ + return new QStringMatcher(*static_cast(other)); +} + +long long QStringMatcher_CaseSensitivity(void* ptr) +{ + return static_cast(ptr)->caseSensitivity(); +} + +int QStringMatcher_IndexIn(void* ptr, struct QtCore_PackedString str, int from) +{ + return static_cast(ptr)->indexIn(QString::fromUtf8(str.data, str.len), from); +} + +int QStringMatcher_IndexIn2(void* ptr, void* str, int length, int from) +{ + return static_cast(ptr)->indexIn(static_cast(str), length, from); +} + +struct QtCore_PackedString QStringMatcher_Pattern(void* ptr) +{ + return ({ QByteArray* ta9f593 = new QByteArray(static_cast(ptr)->pattern().toUtf8()); QtCore_PackedString { const_cast(ta9f593->prepend("WHITESPACE").constData()+10), ta9f593->size()-10, ta9f593 }; }); +} + +void QStringMatcher_SetCaseSensitivity(void* ptr, long long cs) +{ + static_cast(ptr)->setCaseSensitivity(static_cast(cs)); +} + +void QStringMatcher_SetPattern(void* ptr, struct QtCore_PackedString pattern) +{ + static_cast(ptr)->setPattern(QString::fromUtf8(pattern.data, pattern.len)); +} + +void QStringMatcher_DestroyQStringMatcher(void* ptr) +{ + static_cast(ptr)->~QStringMatcher(); +} + +Q_DECLARE_METATYPE(QStringRef) +Q_DECLARE_METATYPE(QStringRef*) +void* QStringRef_NewQStringRef() +{ + return new QStringRef(); +} + +void* QStringRef_NewQStringRef2(struct QtCore_PackedString stri, int position, int length) +{ + return new QStringRef(new QString(QString::fromUtf8(stri.data, stri.len)), position, length); +} + +void* QStringRef_NewQStringRef3(struct QtCore_PackedString stri) +{ + return new QStringRef(new QString(QString::fromUtf8(stri.data, stri.len))); +} + +void* QStringRef_NewQStringRef4(void* other) +{ + return new QStringRef(*static_cast(other)); +} + +void* QStringRef_AppendTo(void* ptr, struct QtCore_PackedString stri) +{ + return new QStringRef(static_cast(ptr)->appendTo(new QString(QString::fromUtf8(stri.data, stri.len)))); +} + +void* QStringRef_At(void* ptr, int position) +{ + return new QChar(static_cast(ptr)->at(position)); +} + +void* QStringRef_Back(void* ptr) +{ + return new QChar(static_cast(ptr)->back()); +} + +void QStringRef_Chop(void* ptr, int n) +{ + static_cast(ptr)->chop(n); +} + +void* QStringRef_Chopped(void* ptr, int l) +{ + return new QStringRef(static_cast(ptr)->chopped(l)); +} + +void QStringRef_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +int QStringRef_QStringRef_Compare(void* s1, struct QtCore_PackedString s2, long long cs) +{ + return QStringRef::compare(*static_cast(s1), QString::fromUtf8(s2.data, s2.len), static_cast(cs)); +} + +int QStringRef_Compare2(void* ptr, struct QtCore_PackedString other, long long cs) +{ + return static_cast(ptr)->compare(QString::fromUtf8(other.data, other.len), static_cast(cs)); +} + +int QStringRef_Compare3(void* ptr, void* other, long long cs) +{ + return static_cast(ptr)->compare(*static_cast(other), static_cast(cs)); +} + +int QStringRef_Compare4(void* ptr, void* other, long long cs) +{ + return static_cast(ptr)->compare(*static_cast(other), static_cast(cs)); +} + +int QStringRef_Compare5(void* ptr, void* other, long long cs) +{ + return static_cast(ptr)->compare(*static_cast(other), static_cast(cs)); +} + +int QStringRef_QStringRef_Compare6(void* s1, void* s2, long long cs) +{ + return QStringRef::compare(*static_cast(s1), *static_cast(s2), static_cast(cs)); +} + +int QStringRef_QStringRef_Compare7(void* s1, void* s2, long long cs) +{ + return QStringRef::compare(*static_cast(s1), *static_cast(s2), static_cast(cs)); +} + +void* QStringRef_ConstData(void* ptr) +{ + return const_cast(static_cast(ptr)->constData()); +} + +char QStringRef_Contains(void* ptr, struct QtCore_PackedString str, long long cs) +{ + return static_cast(ptr)->contains(QString::fromUtf8(str.data, str.len), static_cast(cs)); +} + +char QStringRef_Contains2(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->contains(*static_cast(ch), static_cast(cs)); +} + +char QStringRef_Contains3(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->contains(*static_cast(str), static_cast(cs)); +} + +char QStringRef_Contains4(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->contains(*static_cast(str), static_cast(cs)); +} + +int QStringRef_Count(void* ptr) +{ + return static_cast(ptr)->count(); +} + +int QStringRef_Count2(void* ptr, struct QtCore_PackedString str, long long cs) +{ + return static_cast(ptr)->count(QString::fromUtf8(str.data, str.len), static_cast(cs)); +} + +int QStringRef_Count3(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->count(*static_cast(ch), static_cast(cs)); +} + +int QStringRef_Count4(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->count(*static_cast(str), static_cast(cs)); +} + +void* QStringRef_Data(void* ptr) +{ + return const_cast(static_cast(ptr)->data()); +} + +char QStringRef_EndsWith(void* ptr, struct QtCore_PackedString str, long long cs) +{ + return static_cast(ptr)->endsWith(QString::fromUtf8(str.data, str.len), static_cast(cs)); +} + +char QStringRef_EndsWith2(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(str), static_cast(cs)); +} + +char QStringRef_EndsWith3(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(str), static_cast(cs)); +} + +char QStringRef_EndsWith4(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(ch), static_cast(cs)); +} + +char QStringRef_EndsWith5(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(str), static_cast(cs)); +} + +void* QStringRef_Front(void* ptr) +{ + return new QChar(static_cast(ptr)->front()); +} + +int QStringRef_IndexOf(void* ptr, struct QtCore_PackedString str, int from, long long cs) +{ + return static_cast(ptr)->indexOf(QString::fromUtf8(str.data, str.len), from, static_cast(cs)); +} + +int QStringRef_IndexOf2(void* ptr, void* ch, int from, long long cs) +{ + return static_cast(ptr)->indexOf(*static_cast(ch), from, static_cast(cs)); +} + +int QStringRef_IndexOf3(void* ptr, void* str, int from, long long cs) +{ + return static_cast(ptr)->indexOf(*static_cast(str), from, static_cast(cs)); +} + +int QStringRef_IndexOf4(void* ptr, void* str, int from, long long cs) +{ + return static_cast(ptr)->indexOf(*static_cast(str), from, static_cast(cs)); +} + +char QStringRef_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QStringRef_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QStringRef_IsRightToLeft(void* ptr) +{ + return static_cast(ptr)->isRightToLeft(); +} + +int QStringRef_LastIndexOf(void* ptr, struct QtCore_PackedString str, int from, long long cs) +{ + return static_cast(ptr)->lastIndexOf(QString::fromUtf8(str.data, str.len), from, static_cast(cs)); +} + +int QStringRef_LastIndexOf2(void* ptr, void* ch, int from, long long cs) +{ + return static_cast(ptr)->lastIndexOf(*static_cast(ch), from, static_cast(cs)); +} + +int QStringRef_LastIndexOf3(void* ptr, void* str, int from, long long cs) +{ + return static_cast(ptr)->lastIndexOf(*static_cast(str), from, static_cast(cs)); +} + +int QStringRef_LastIndexOf4(void* ptr, void* str, int from, long long cs) +{ + return static_cast(ptr)->lastIndexOf(*static_cast(str), from, static_cast(cs)); +} + +void* QStringRef_Left(void* ptr, int n) +{ + return new QStringRef(static_cast(ptr)->left(n)); +} + +int QStringRef_Length(void* ptr) +{ + return static_cast(ptr)->length(); +} + +int QStringRef_QStringRef_LocaleAwareCompare(void* s1, struct QtCore_PackedString s2) +{ + return QStringRef::localeAwareCompare(*static_cast(s1), QString::fromUtf8(s2.data, s2.len)); +} + +int QStringRef_LocaleAwareCompare2(void* ptr, struct QtCore_PackedString other) +{ + return static_cast(ptr)->localeAwareCompare(QString::fromUtf8(other.data, other.len)); +} + +int QStringRef_LocaleAwareCompare3(void* ptr, void* other) +{ + return static_cast(ptr)->localeAwareCompare(*static_cast(other)); +} + +int QStringRef_QStringRef_LocaleAwareCompare4(void* s1, void* s2) +{ + return QStringRef::localeAwareCompare(*static_cast(s1), *static_cast(s2)); +} + +void* QStringRef_Mid(void* ptr, int position, int n) +{ + return new QStringRef(static_cast(ptr)->mid(position, n)); +} + +int QStringRef_Position(void* ptr) +{ + return static_cast(ptr)->position(); +} + +void* QStringRef_Right(void* ptr, int n) +{ + return new QStringRef(static_cast(ptr)->right(n)); +} + +int QStringRef_Size(void* ptr) +{ + return static_cast(ptr)->size(); +} + +struct QtCore_PackedList QStringRef_Split(void* ptr, struct QtCore_PackedString sep, long long behavior, long long cs) +{ + return ({ QVector* tmpValued1bf8d = new QVector(static_cast(ptr)->split(QString::fromUtf8(sep.data, sep.len), static_cast(behavior), static_cast(cs))); QtCore_PackedList { tmpValued1bf8d, tmpValued1bf8d->size() }; }); +} + +struct QtCore_PackedList QStringRef_Split2(void* ptr, void* sep, long long behavior, long long cs) +{ + return ({ QVector* tmpValue643751 = new QVector(static_cast(ptr)->split(*static_cast(sep), static_cast(behavior), static_cast(cs))); QtCore_PackedList { tmpValue643751, tmpValue643751->size() }; }); +} + +char QStringRef_StartsWith(void* ptr, struct QtCore_PackedString str, long long cs) +{ + return static_cast(ptr)->startsWith(QString::fromUtf8(str.data, str.len), static_cast(cs)); +} + +char QStringRef_StartsWith2(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(str), static_cast(cs)); +} + +char QStringRef_StartsWith3(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(str), static_cast(cs)); +} + +char QStringRef_StartsWith4(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(ch), static_cast(cs)); +} + +char QStringRef_StartsWith5(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(str), static_cast(cs)); +} + +struct QtCore_PackedString QStringRef_String(void* ptr) +{ + return ({ QByteArray* t75a779 = new QByteArray(static_cast(ptr)->string()->toUtf8()); QtCore_PackedString { const_cast(t75a779->prepend("WHITESPACE").constData()+10), t75a779->size()-10, t75a779 }; }); +} + +double QStringRef_ToDouble(void* ptr, char* ok) +{ + return static_cast(ptr)->toDouble(reinterpret_cast(ok)); +} + +float QStringRef_ToFloat(void* ptr, char* ok) +{ + return static_cast(ptr)->toFloat(reinterpret_cast(ok)); +} + +int QStringRef_ToInt(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toInt(reinterpret_cast(ok), base); +} + +void* QStringRef_ToLatin1(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toLatin1()); +} + +void* QStringRef_ToLocal8Bit(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toLocal8Bit()); +} + +long QStringRef_ToLong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toLong(reinterpret_cast(ok), base); +} + +long long QStringRef_ToLongLong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toLongLong(reinterpret_cast(ok), base); +} + +short QStringRef_ToShort(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toShort(reinterpret_cast(ok), base); +} + +struct QtCore_PackedString QStringRef_ToString(void* ptr) +{ + return ({ QByteArray* t336448 = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(t336448->prepend("WHITESPACE").constData()+10), t336448->size()-10, t336448 }; }); +} + +unsigned int QStringRef_ToUInt(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toUInt(reinterpret_cast(ok), base); +} + +unsigned long QStringRef_ToULong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toULong(reinterpret_cast(ok), base); +} + +unsigned long long QStringRef_ToULongLong(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toULongLong(reinterpret_cast(ok), base); +} + +unsigned short QStringRef_ToUShort(void* ptr, char* ok, int base) +{ + return static_cast(ptr)->toUShort(reinterpret_cast(ok), base); +} + +struct QtCore_PackedList QStringRef_ToUcs4(void* ptr) +{ + return ({ QVector* tmpValue6487a2 = new QVector(static_cast(ptr)->toUcs4()); QtCore_PackedList { tmpValue6487a2, tmpValue6487a2->size() }; }); +} + +void* QStringRef_ToUtf8(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toUtf8()); +} + +void* QStringRef_Trimmed(void* ptr) +{ + return new QStringRef(static_cast(ptr)->trimmed()); +} + +void QStringRef_Truncate(void* ptr, int position) +{ + static_cast(ptr)->truncate(position); +} + +void* QStringRef_Unicode(void* ptr) +{ + return const_cast(static_cast(ptr)->unicode()); +} + +void QStringRef_DestroyQStringRef(void* ptr) +{ + static_cast(ptr)->~QStringRef(); +} + +void* QStringRef___split_atList(void* ptr, int i) +{ + return new QStringRef(({QStringRef tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; })); +} + +void QStringRef___split_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QStringRef___split_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +void* QStringRef___split_atList2(void* ptr, int i) +{ + return new QStringRef(({QStringRef tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; })); +} + +void QStringRef___split_setList2(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QStringRef___split_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +unsigned int QStringRef___toUcs4_atList(void* ptr, int i) +{ + return ({uint tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QStringRef___toUcs4_setList(void* ptr, unsigned int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QStringRef___toUcs4_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +Q_DECLARE_METATYPE(QStringView) +Q_DECLARE_METATYPE(QStringView*) +void* QStringView_NewQStringView() +{ + return new QStringView(); +} + +void* QStringView_NewQStringView7(struct QtCore_PackedString str) +{ + return new QStringView(QString::fromUtf8(str.data, str.len)); +} + +void* QStringView_NewQStringView8(void* str) +{ + return new QStringView(*static_cast(str)); +} + +void* QStringView_Back(void* ptr) +{ + return new QChar(static_cast(ptr)->back()); +} + +int QStringView_Compare(void* ptr, void* other, long long cs) +{ + return static_cast(ptr)->compare(*static_cast(other), static_cast(cs)); +} + +char QStringView_Empty(void* ptr) +{ + return static_cast(ptr)->empty(); +} + +char QStringView_EndsWith(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(str), static_cast(cs)); +} + +char QStringView_EndsWith2(void* ptr, void* l1, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(l1), static_cast(cs)); +} + +char QStringView_EndsWith3(void* ptr, void* ch) +{ + return static_cast(ptr)->endsWith(*static_cast(ch)); +} + +char QStringView_EndsWith4(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->endsWith(*static_cast(ch), static_cast(cs)); +} + +void* QStringView_First(void* ptr) +{ + return new QChar(static_cast(ptr)->first()); +} + +void* QStringView_Front(void* ptr) +{ + return new QChar(static_cast(ptr)->front()); +} + +char QStringView_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QStringView_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QStringView_IsRightToLeft(void* ptr) +{ + return static_cast(ptr)->isRightToLeft(); +} + +void* QStringView_Last(void* ptr) +{ + return new QChar(static_cast(ptr)->last()); +} + +int QStringView_Length(void* ptr) +{ + return static_cast(ptr)->length(); +} + +char QStringView_StartsWith(void* ptr, void* str, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(str), static_cast(cs)); +} + +char QStringView_StartsWith2(void* ptr, void* l1, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(l1), static_cast(cs)); +} + +char QStringView_StartsWith3(void* ptr, void* ch) +{ + return static_cast(ptr)->startsWith(*static_cast(ch)); +} + +char QStringView_StartsWith4(void* ptr, void* ch, long long cs) +{ + return static_cast(ptr)->startsWith(*static_cast(ch), static_cast(cs)); +} + +void* QStringView_ToLatin1(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toLatin1()); +} + +void* QStringView_ToLocal8Bit(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toLocal8Bit()); +} + +struct QtCore_PackedString QStringView_ToString(void* ptr) +{ + return ({ QByteArray* t401ff3 = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(t401ff3->prepend("WHITESPACE").constData()+10), t401ff3->size()-10, t401ff3 }; }); +} + +struct QtCore_PackedList QStringView_ToUcs4(void* ptr) +{ + return ({ QVector* tmpValue713c7b = new QVector(static_cast(ptr)->toUcs4()); QtCore_PackedList { tmpValue713c7b, tmpValue713c7b->size() }; }); +} + +void* QStringView_ToUtf8(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toUtf8()); +} + +void* QStringView_Trimmed(void* ptr) +{ + return new QStringView(static_cast(ptr)->trimmed()); +} + +unsigned int QStringView___convertToUcs4_atList(void* ptr, int i) +{ + return ({uint tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QStringView___convertToUcs4_setList(void* ptr, unsigned int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QStringView___convertToUcs4_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +unsigned int QStringView___toUcs4_atList(void* ptr, int i) +{ + return ({uint tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QStringView___toUcs4_setList(void* ptr, unsigned int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QStringView___toUcs4_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +int QSysInfo_WordSize_Type() +{ + return QSysInfo::WordSize; +} + +void* QSysInfo_QSysInfo_BootUniqueId() +{ + return new QByteArray(QSysInfo::bootUniqueId()); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_BuildAbi() +{ + return ({ QByteArray* t231d28 = new QByteArray(QSysInfo::buildAbi().toUtf8()); QtCore_PackedString { const_cast(t231d28->prepend("WHITESPACE").constData()+10), t231d28->size()-10, t231d28 }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_BuildCpuArchitecture() +{ + return ({ QByteArray* t3eb43d = new QByteArray(QSysInfo::buildCpuArchitecture().toUtf8()); QtCore_PackedString { const_cast(t3eb43d->prepend("WHITESPACE").constData()+10), t3eb43d->size()-10, t3eb43d }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_CurrentCpuArchitecture() +{ + return ({ QByteArray* t58cec8 = new QByteArray(QSysInfo::currentCpuArchitecture().toUtf8()); QtCore_PackedString { const_cast(t58cec8->prepend("WHITESPACE").constData()+10), t58cec8->size()-10, t58cec8 }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_KernelType() +{ + return ({ QByteArray* t17bcdb = new QByteArray(QSysInfo::kernelType().toUtf8()); QtCore_PackedString { const_cast(t17bcdb->prepend("WHITESPACE").constData()+10), t17bcdb->size()-10, t17bcdb }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_KernelVersion() +{ + return ({ QByteArray* t25443e = new QByteArray(QSysInfo::kernelVersion().toUtf8()); QtCore_PackedString { const_cast(t25443e->prepend("WHITESPACE").constData()+10), t25443e->size()-10, t25443e }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_MachineHostName() +{ + return ({ QByteArray* t05046f = new QByteArray(QSysInfo::machineHostName().toUtf8()); QtCore_PackedString { const_cast(t05046f->prepend("WHITESPACE").constData()+10), t05046f->size()-10, t05046f }; }); +} + +void* QSysInfo_QSysInfo_MachineUniqueId() +{ + return new QByteArray(QSysInfo::machineUniqueId()); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_PrettyProductName() +{ + return ({ QByteArray* t377223 = new QByteArray(QSysInfo::prettyProductName().toUtf8()); QtCore_PackedString { const_cast(t377223->prepend("WHITESPACE").constData()+10), t377223->size()-10, t377223 }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_ProductType() +{ + return ({ QByteArray* t2dc849 = new QByteArray(QSysInfo::productType().toUtf8()); QtCore_PackedString { const_cast(t2dc849->prepend("WHITESPACE").constData()+10), t2dc849->size()-10, t2dc849 }; }); +} + +struct QtCore_PackedString QSysInfo_QSysInfo_ProductVersion() +{ + return ({ QByteArray* tf9eb38 = new QByteArray(QSysInfo::productVersion().toUtf8()); QtCore_PackedString { const_cast(tf9eb38->prepend("WHITESPACE").constData()+10), tf9eb38->size()-10, tf9eb38 }; }); +} + +Q_DECLARE_METATYPE(QSystemSemaphore*) +void* QSystemSemaphore_NewQSystemSemaphore(struct QtCore_PackedString key, int initialValue, long long mode) +{ + return new QSystemSemaphore(QString::fromUtf8(key.data, key.len), initialValue, static_cast(mode)); +} + +char QSystemSemaphore_Acquire(void* ptr) +{ + return static_cast(ptr)->acquire(); +} + +long long QSystemSemaphore_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +struct QtCore_PackedString QSystemSemaphore_ErrorString(void* ptr) +{ + return ({ QByteArray* te02386 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(te02386->prepend("WHITESPACE").constData()+10), te02386->size()-10, te02386 }; }); +} + +struct QtCore_PackedString QSystemSemaphore_Key(void* ptr) +{ + return ({ QByteArray* tdbcddf = new QByteArray(static_cast(ptr)->key().toUtf8()); QtCore_PackedString { const_cast(tdbcddf->prepend("WHITESPACE").constData()+10), tdbcddf->size()-10, tdbcddf }; }); +} + +char QSystemSemaphore_Release(void* ptr, int n) +{ + return static_cast(ptr)->release(n); +} + +void QSystemSemaphore_SetKey(void* ptr, struct QtCore_PackedString key, int initialValue, long long mode) +{ + static_cast(ptr)->setKey(QString::fromUtf8(key.data, key.len), initialValue, static_cast(mode)); +} + +void QSystemSemaphore_DestroyQSystemSemaphore(void* ptr) +{ + static_cast(ptr)->~QSystemSemaphore(); +} + +Q_DECLARE_METATYPE(QTemporaryDir*) +void* QTemporaryDir_NewQTemporaryDir() +{ + return new QTemporaryDir(); +} + +void* QTemporaryDir_NewQTemporaryDir2(struct QtCore_PackedString templatePath) +{ + return new QTemporaryDir(QString::fromUtf8(templatePath.data, templatePath.len)); +} + +char QTemporaryDir_AutoRemove(void* ptr) +{ + return static_cast(ptr)->autoRemove(); +} + +struct QtCore_PackedString QTemporaryDir_ErrorString(void* ptr) +{ + return ({ QByteArray* t501345 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t501345->prepend("WHITESPACE").constData()+10), t501345->size()-10, t501345 }; }); +} + +struct QtCore_PackedString QTemporaryDir_FilePath(void* ptr, struct QtCore_PackedString fileName) +{ + return ({ QByteArray* ted61dd = new QByteArray(static_cast(ptr)->filePath(QString::fromUtf8(fileName.data, fileName.len)).toUtf8()); QtCore_PackedString { const_cast(ted61dd->prepend("WHITESPACE").constData()+10), ted61dd->size()-10, ted61dd }; }); +} + +char QTemporaryDir_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +struct QtCore_PackedString QTemporaryDir_Path(void* ptr) +{ + return ({ QByteArray* tec09d2 = new QByteArray(static_cast(ptr)->path().toUtf8()); QtCore_PackedString { const_cast(tec09d2->prepend("WHITESPACE").constData()+10), tec09d2->size()-10, tec09d2 }; }); +} + +char QTemporaryDir_Remove(void* ptr) +{ + return static_cast(ptr)->remove(); +} + +void QTemporaryDir_SetAutoRemove(void* ptr, char b) +{ + static_cast(ptr)->setAutoRemove(b != 0); +} + +void QTemporaryDir_DestroyQTemporaryDir(void* ptr) +{ + static_cast(ptr)->~QTemporaryDir(); +} + +class MyQTemporaryFile: public QTemporaryFile +{ +public: + MyQTemporaryFile() : QTemporaryFile() {QTemporaryFile_QTemporaryFile_QRegisterMetaType();}; + MyQTemporaryFile(const QString &templateName) : QTemporaryFile(templateName) {QTemporaryFile_QTemporaryFile_QRegisterMetaType();}; + MyQTemporaryFile(QObject *parent) : QTemporaryFile(parent) {QTemporaryFile_QTemporaryFile_QRegisterMetaType();}; + MyQTemporaryFile(const QString &templateName, QObject *parent) : QTemporaryFile(templateName, parent) {QTemporaryFile_QTemporaryFile_QRegisterMetaType();}; + QString fileName() const { return ({ QtCore_PackedString tempVal = callbackQFileDevice_FileName(const_cast(static_cast(this))); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; + ~MyQTemporaryFile() { callbackQTemporaryFile_DestroyQTemporaryFile(this); }; + QFileDevice::Permissions permissions() const { return static_cast(callbackQFileDevice_Permissions(const_cast(static_cast(this)))); }; + bool resize(qint64 sz) { return callbackQFileDevice_Resize(this, sz) != 0; }; + bool setPermissions(QFileDevice::Permissions permissions) { return callbackQFileDevice_SetPermissions(this, permissions) != 0; }; + qint64 size() const { return callbackQIODevice_Size(const_cast(static_cast(this))); }; + bool atEnd() const { return callbackQIODevice_AtEnd(const_cast(static_cast(this))) != 0; }; + void close() { callbackQIODevice_Close(this); }; + bool isSequential() const { return callbackQIODevice_IsSequential(const_cast(static_cast(this))) != 0; }; + qint64 pos() const { return callbackQIODevice_Pos(const_cast(static_cast(this))); }; + qint64 readData(char * data, qint64 l) { QtCore_PackedString dataPacked = { data, l, NULL };return callbackQFileDevice_ReadData(this, dataPacked, l); }; + qint64 readLineData(char * data, qint64 maxlen) { QtCore_PackedString dataPacked = { data, maxlen, NULL };return callbackQIODevice_ReadLineData(this, dataPacked, maxlen); }; + bool seek(qint64 pos) { return callbackQIODevice_Seek(this, pos) != 0; }; + qint64 writeData(const char * data, qint64 l) { QtCore_PackedString dataPacked = { const_cast(data), l, NULL };return callbackQFileDevice_WriteData(this, dataPacked, l); }; + void Signal_AboutToClose() { callbackQIODevice_AboutToClose(this); }; + qint64 bytesAvailable() const { return callbackQIODevice_BytesAvailable(const_cast(static_cast(this))); }; + qint64 bytesToWrite() const { return callbackQIODevice_BytesToWrite(const_cast(static_cast(this))); }; + void Signal_BytesWritten(qint64 bytes) { callbackQIODevice_BytesWritten(this, bytes); }; + bool canReadLine() const { return callbackQIODevice_CanReadLine(const_cast(static_cast(this))) != 0; }; + void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQIODevice_ChannelBytesWritten(this, channel, bytes); }; + void Signal_ChannelReadyRead(int channel) { callbackQIODevice_ChannelReadyRead(this, channel); }; + void Signal_ReadChannelFinished() { callbackQIODevice_ReadChannelFinished(this); }; + void Signal_ReadyRead() { callbackQIODevice_ReadyRead(this); }; + bool reset() { return callbackQIODevice_Reset(this) != 0; }; + bool waitForBytesWritten(int msecs) { return callbackQIODevice_WaitForBytesWritten(this, msecs) != 0; }; + bool waitForReadyRead(int msecs) { return callbackQIODevice_WaitForReadyRead(this, msecs) != 0; }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QTemporaryFile*) +Q_DECLARE_METATYPE(MyQTemporaryFile*) + +int QTemporaryFile_QTemporaryFile_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTemporaryFile_NewQTemporaryFile() +{ + return new MyQTemporaryFile(); +} + +void* QTemporaryFile_NewQTemporaryFile2(struct QtCore_PackedString templateName) +{ + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len)); +} + +void* QTemporaryFile_NewQTemporaryFile3(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(static_cast(parent)); + } else { + return new MyQTemporaryFile(static_cast(parent)); + } +} + +void* QTemporaryFile_NewQTemporaryFile4(struct QtCore_PackedString templateName, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } else { + return new MyQTemporaryFile(QString::fromUtf8(templateName.data, templateName.len), static_cast(parent)); + } +} + +char QTemporaryFile_AutoRemove(void* ptr) +{ + return static_cast(ptr)->autoRemove(); +} + +void* QTemporaryFile_QTemporaryFile_CreateNativeFile(void* file) +{ + return QTemporaryFile::createNativeFile(*static_cast(file)); +} + +void* QTemporaryFile_QTemporaryFile_CreateNativeFile2(struct QtCore_PackedString fileName) +{ + return QTemporaryFile::createNativeFile(QString::fromUtf8(fileName.data, fileName.len)); +} + +struct QtCore_PackedString QTemporaryFile_FileTemplate(void* ptr) +{ + return ({ QByteArray* t23cbd0 = new QByteArray(static_cast(ptr)->fileTemplate().toUtf8()); QtCore_PackedString { const_cast(t23cbd0->prepend("WHITESPACE").constData()+10), t23cbd0->size()-10, t23cbd0 }; }); +} + +char QTemporaryFile_Open(void* ptr) +{ + return static_cast(ptr)->open(); +} + +void QTemporaryFile_SetAutoRemove(void* ptr, char b) +{ + static_cast(ptr)->setAutoRemove(b != 0); +} + +void QTemporaryFile_SetFileTemplate(void* ptr, struct QtCore_PackedString name) +{ + static_cast(ptr)->setFileTemplate(QString::fromUtf8(name.data, name.len)); +} + +void QTemporaryFile_DestroyQTemporaryFile(void* ptr) +{ + static_cast(ptr)->~QTemporaryFile(); +} + +void QTemporaryFile_DestroyQTemporaryFileDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QTextBoundaryFinder) +Q_DECLARE_METATYPE(QTextBoundaryFinder*) +void* QTextBoundaryFinder_NewQTextBoundaryFinder() +{ + return new QTextBoundaryFinder(); +} + +void* QTextBoundaryFinder_NewQTextBoundaryFinder2(void* other) +{ + return new QTextBoundaryFinder(*static_cast(other)); +} + +void* QTextBoundaryFinder_NewQTextBoundaryFinder3(long long ty, struct QtCore_PackedString stri) +{ + return new QTextBoundaryFinder(static_cast(ty), QString::fromUtf8(stri.data, stri.len)); +} + +long long QTextBoundaryFinder_BoundaryReasons(void* ptr) +{ + return static_cast(ptr)->boundaryReasons(); +} + +char QTextBoundaryFinder_IsAtBoundary(void* ptr) +{ + return static_cast(ptr)->isAtBoundary(); +} + +char QTextBoundaryFinder_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QTextBoundaryFinder_Position(void* ptr) +{ + return static_cast(ptr)->position(); +} + +void QTextBoundaryFinder_SetPosition(void* ptr, int position) +{ + static_cast(ptr)->setPosition(position); +} + +struct QtCore_PackedString QTextBoundaryFinder_String(void* ptr) +{ + return ({ QByteArray* t2d3858 = new QByteArray(static_cast(ptr)->string().toUtf8()); QtCore_PackedString { const_cast(t2d3858->prepend("WHITESPACE").constData()+10), t2d3858->size()-10, t2d3858 }; }); +} + +void QTextBoundaryFinder_ToEnd(void* ptr) +{ + static_cast(ptr)->toEnd(); +} + +int QTextBoundaryFinder_ToNextBoundary(void* ptr) +{ + return static_cast(ptr)->toNextBoundary(); +} + +int QTextBoundaryFinder_ToPreviousBoundary(void* ptr) +{ + return static_cast(ptr)->toPreviousBoundary(); +} + +void QTextBoundaryFinder_ToStart(void* ptr) +{ + static_cast(ptr)->toStart(); +} + +long long QTextBoundaryFinder_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +void QTextBoundaryFinder_DestroyQTextBoundaryFinder(void* ptr) +{ + static_cast(ptr)->~QTextBoundaryFinder(); +} + +class MyQTextCodec: public QTextCodec +{ +public: + QList aliases() const { return ({ QList* tmpP = static_cast*>(callbackQTextCodec_Aliases(const_cast(static_cast(this)))); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + int mibEnum() const { return callbackQTextCodec_MibEnum(const_cast(static_cast(this))); }; + QByteArray name() const { return *static_cast(callbackQTextCodec_Name(const_cast(static_cast(this)))); }; + ~MyQTextCodec() { callbackQTextCodec_DestroyQTextCodec(this); }; +}; + +Q_DECLARE_METATYPE(QTextCodec*) +Q_DECLARE_METATYPE(MyQTextCodec*) + +int QTextCodec_QTextCodec_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +struct QtCore_PackedList QTextCodec_Aliases(void* ptr) +{ + return ({ QList* tmpValueb6774e = new QList(static_cast(ptr)->aliases()); QtCore_PackedList { tmpValueb6774e, tmpValueb6774e->size() }; }); +} + +struct QtCore_PackedList QTextCodec_AliasesDefault(void* ptr) +{ + return ({ QList* tmpValuee659dd = new QList(static_cast(ptr)->QTextCodec::aliases()); QtCore_PackedList { tmpValuee659dd, tmpValuee659dd->size() }; }); +} + +struct QtCore_PackedList QTextCodec_QTextCodec_AvailableCodecs() +{ + return ({ QList* tmpValue6a90cd = new QList(QTextCodec::availableCodecs()); QtCore_PackedList { tmpValue6a90cd, tmpValue6a90cd->size() }; }); +} + +struct QtCore_PackedList QTextCodec_QTextCodec_AvailableMibs() +{ + return ({ QList* tmpValuef6e6be = new QList(QTextCodec::availableMibs()); QtCore_PackedList { tmpValuef6e6be, tmpValuef6e6be->size() }; }); +} + +char QTextCodec_CanEncode(void* ptr, void* ch) +{ + return static_cast(ptr)->canEncode(*static_cast(ch)); +} + +char QTextCodec_CanEncode2(void* ptr, struct QtCore_PackedString s) +{ + return static_cast(ptr)->canEncode(QString::fromUtf8(s.data, s.len)); +} + +char QTextCodec_CanEncode3(void* ptr, void* s) +{ + return static_cast(ptr)->canEncode(*static_cast(s)); +} + +void* QTextCodec_QTextCodec_CodecForHtml(void* ba, void* defaultCodec) +{ + return QTextCodec::codecForHtml(*static_cast(ba), static_cast(defaultCodec)); +} + +void* QTextCodec_QTextCodec_CodecForHtml2(void* ba) +{ + return QTextCodec::codecForHtml(*static_cast(ba)); +} + +void* QTextCodec_QTextCodec_CodecForLocale() +{ + return QTextCodec::codecForLocale(); +} + +void* QTextCodec_QTextCodec_CodecForMib(int mib) +{ + return QTextCodec::codecForMib(mib); +} + +void* QTextCodec_QTextCodec_CodecForName(void* name) +{ + return QTextCodec::codecForName(*static_cast(name)); +} + +void* QTextCodec_QTextCodec_CodecForName2(char* name) +{ + return QTextCodec::codecForName(const_cast(name)); +} + +void* QTextCodec_QTextCodec_CodecForUtfText(void* ba, void* defaultCodec) +{ + return QTextCodec::codecForUtfText(*static_cast(ba), static_cast(defaultCodec)); +} + +void* QTextCodec_QTextCodec_CodecForUtfText2(void* ba) +{ + return QTextCodec::codecForUtfText(*static_cast(ba)); +} + +void* QTextCodec_FromUnicode(void* ptr, struct QtCore_PackedString str) +{ + return new QByteArray(static_cast(ptr)->fromUnicode(QString::fromUtf8(str.data, str.len))); +} + +void* QTextCodec_FromUnicode2(void* ptr, void* str) +{ + return new QByteArray(static_cast(ptr)->fromUnicode(*static_cast(str))); +} + +void* QTextCodec_MakeDecoder(void* ptr, long long flags) +{ + return static_cast(ptr)->makeDecoder(static_cast(flags)); +} + +void* QTextCodec_MakeEncoder(void* ptr, long long flags) +{ + return static_cast(ptr)->makeEncoder(static_cast(flags)); +} + +int QTextCodec_MibEnum(void* ptr) +{ + return static_cast(ptr)->mibEnum(); +} + +void* QTextCodec_Name(void* ptr) +{ + return new QByteArray(static_cast(ptr)->name()); +} + +void QTextCodec_QTextCodec_SetCodecForLocale(void* c) +{ + QTextCodec::setCodecForLocale(static_cast(c)); +} + +struct QtCore_PackedString QTextCodec_ToUnicode(void* ptr, void* a) +{ + return ({ QByteArray* te3183b = new QByteArray(static_cast(ptr)->toUnicode(*static_cast(a)).toUtf8()); QtCore_PackedString { const_cast(te3183b->prepend("WHITESPACE").constData()+10), te3183b->size()-10, te3183b }; }); +} + +struct QtCore_PackedString QTextCodec_ToUnicode2(void* ptr, char* chars) +{ + return ({ QByteArray* t6b92b5 = new QByteArray(static_cast(ptr)->toUnicode(const_cast(chars)).toUtf8()); QtCore_PackedString { const_cast(t6b92b5->prepend("WHITESPACE").constData()+10), t6b92b5->size()-10, t6b92b5 }; }); +} + +void QTextCodec_DestroyQTextCodec(void* ptr) +{ + static_cast(ptr)->~QTextCodec(); +} + +void QTextCodec_DestroyQTextCodecDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +void* QTextCodec___aliases_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTextCodec___aliases_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTextCodec___aliases_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QTextCodec___availableCodecs_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTextCodec___availableCodecs_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTextCodec___availableCodecs_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +int QTextCodec___availableMibs_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); +} + +void QTextCodec___availableMibs_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QTextCodec___availableMibs_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QTextDecoder*) +void* QTextDecoder_NewQTextDecoder2(void* codec) +{ + return new QTextDecoder(static_cast(codec)); +} + +void* QTextDecoder_NewQTextDecoder3(void* codec, long long flags) +{ + return new QTextDecoder(static_cast(codec), static_cast(flags)); +} + +struct QtCore_PackedString QTextDecoder_ToUnicode(void* ptr, char* chars, int l) +{ + return ({ QByteArray* t9f8601 = new QByteArray(static_cast(ptr)->toUnicode(const_cast(chars), l).toUtf8()); QtCore_PackedString { const_cast(t9f8601->prepend("WHITESPACE").constData()+10), t9f8601->size()-10, t9f8601 }; }); +} + +struct QtCore_PackedString QTextDecoder_ToUnicode2(void* ptr, void* ba) +{ + return ({ QByteArray* t597c34 = new QByteArray(static_cast(ptr)->toUnicode(*static_cast(ba)).toUtf8()); QtCore_PackedString { const_cast(t597c34->prepend("WHITESPACE").constData()+10), t597c34->size()-10, t597c34 }; }); +} + +void QTextDecoder_ToUnicode3(void* ptr, struct QtCore_PackedString target, char* chars, int l) +{ + static_cast(ptr)->toUnicode(new QString(QString::fromUtf8(target.data, target.len)), const_cast(chars), l); +} + +void QTextDecoder_DestroyQTextDecoder(void* ptr) +{ + static_cast(ptr)->~QTextDecoder(); +} + +Q_DECLARE_METATYPE(QTextEncoder*) +void* QTextEncoder_NewQTextEncoder2(void* codec) +{ + return new QTextEncoder(static_cast(codec)); +} + +void* QTextEncoder_NewQTextEncoder3(void* codec, long long flags) +{ + return new QTextEncoder(static_cast(codec), static_cast(flags)); +} + +void* QTextEncoder_FromUnicode(void* ptr, struct QtCore_PackedString str) +{ + return new QByteArray(static_cast(ptr)->fromUnicode(QString::fromUtf8(str.data, str.len))); +} + +void* QTextEncoder_FromUnicode2(void* ptr, void* str) +{ + return new QByteArray(static_cast(ptr)->fromUnicode(*static_cast(str))); +} + +void* QTextEncoder_FromUnicode3(void* ptr, void* uc, int l) +{ + return new QByteArray(static_cast(ptr)->fromUnicode(static_cast(uc), l)); +} + +void QTextEncoder_DestroyQTextEncoder(void* ptr) +{ + static_cast(ptr)->~QTextEncoder(); +} + +class MyQTextStream: public QTextStream +{ +public: + MyQTextStream() : QTextStream() {QTextStream_QTextStream_QRegisterMetaType();}; + MyQTextStream(QIODevice *device) : QTextStream(device) {QTextStream_QTextStream_QRegisterMetaType();}; + MyQTextStream(QString *stri, QIODevice::OpenMode openMode = QIODevice::ReadWrite) : QTextStream(stri, openMode) {QTextStream_QTextStream_QRegisterMetaType();}; + MyQTextStream(QByteArray *array, QIODevice::OpenMode openMode = QIODevice::ReadWrite) : QTextStream(array, openMode) {QTextStream_QTextStream_QRegisterMetaType();}; + MyQTextStream(const QByteArray &array, QIODevice::OpenMode openMode = QIODevice::ReadOnly) : QTextStream(array, openMode) {QTextStream_QTextStream_QRegisterMetaType();}; + ~MyQTextStream() { callbackQTextStream_DestroyQTextStream(this); }; +}; + +Q_DECLARE_METATYPE(QTextStream*) +Q_DECLARE_METATYPE(MyQTextStream*) + +int QTextStream_QTextStream_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTextStream_NewQTextStream() +{ + return new MyQTextStream(); +} + +void* QTextStream_NewQTextStream2(void* device) +{ + return new MyQTextStream(static_cast(device)); +} + +void* QTextStream_NewQTextStream4(struct QtCore_PackedString stri, long long openMode) +{ + return new MyQTextStream(new QString(QString::fromUtf8(stri.data, stri.len)), static_cast(openMode)); +} + +void* QTextStream_NewQTextStream5(void* array, long long openMode) +{ + return new MyQTextStream(static_cast(array), static_cast(openMode)); +} + +void* QTextStream_NewQTextStream6(void* array, long long openMode) +{ + return new MyQTextStream(*static_cast(array), static_cast(openMode)); +} + +char QTextStream_AtEnd(void* ptr) +{ + return static_cast(ptr)->atEnd(); +} + +char QTextStream_AutoDetectUnicode(void* ptr) +{ + return static_cast(ptr)->autoDetectUnicode(); +} + +void* QTextStream_Codec(void* ptr) +{ + return static_cast(ptr)->codec(); +} + +void* QTextStream_Device(void* ptr) +{ + return static_cast(ptr)->device(); +} + +long long QTextStream_FieldAlignment(void* ptr) +{ + return static_cast(ptr)->fieldAlignment(); +} + +int QTextStream_FieldWidth(void* ptr) +{ + return static_cast(ptr)->fieldWidth(); +} + +void QTextStream_Flush(void* ptr) +{ + static_cast(ptr)->flush(); +} + +char QTextStream_GenerateByteOrderMark(void* ptr) +{ + return static_cast(ptr)->generateByteOrderMark(); +} + +int QTextStream_IntegerBase(void* ptr) +{ + return static_cast(ptr)->integerBase(); +} + +void* QTextStream_Locale(void* ptr) +{ + return new QLocale(static_cast(ptr)->locale()); +} + +long long QTextStream_NumberFlags(void* ptr) +{ + return static_cast(ptr)->numberFlags(); +} + +void* QTextStream_PadChar(void* ptr) +{ + return new QChar(static_cast(ptr)->padChar()); +} + +long long QTextStream_Pos(void* ptr) +{ + return static_cast(ptr)->pos(); +} + +struct QtCore_PackedString QTextStream_Read(void* ptr, long long maxlen) +{ + return ({ QByteArray* t1ba29b = new QByteArray(static_cast(ptr)->read(maxlen).toUtf8()); QtCore_PackedString { const_cast(t1ba29b->prepend("WHITESPACE").constData()+10), t1ba29b->size()-10, t1ba29b }; }); +} + +struct QtCore_PackedString QTextStream_ReadAll(void* ptr) +{ + return ({ QByteArray* t3976a4 = new QByteArray(static_cast(ptr)->readAll().toUtf8()); QtCore_PackedString { const_cast(t3976a4->prepend("WHITESPACE").constData()+10), t3976a4->size()-10, t3976a4 }; }); +} + +struct QtCore_PackedString QTextStream_ReadLine(void* ptr, long long maxlen) +{ + return ({ QByteArray* t7fab2e = new QByteArray(static_cast(ptr)->readLine(maxlen).toUtf8()); QtCore_PackedString { const_cast(t7fab2e->prepend("WHITESPACE").constData()+10), t7fab2e->size()-10, t7fab2e }; }); +} + +char QTextStream_ReadLineInto(void* ptr, struct QtCore_PackedString line, long long maxlen) +{ + return static_cast(ptr)->readLineInto(new QString(QString::fromUtf8(line.data, line.len)), maxlen); +} + +long long QTextStream_RealNumberNotation(void* ptr) +{ + return static_cast(ptr)->realNumberNotation(); +} + +int QTextStream_RealNumberPrecision(void* ptr) +{ + return static_cast(ptr)->realNumberPrecision(); +} + +void QTextStream_Reset(void* ptr) +{ + static_cast(ptr)->reset(); +} + +void QTextStream_ResetStatus(void* ptr) +{ + static_cast(ptr)->resetStatus(); +} + +char QTextStream_Seek(void* ptr, long long pos) +{ + return static_cast(ptr)->seek(pos); +} + +void QTextStream_SetAutoDetectUnicode(void* ptr, char enabled) +{ + static_cast(ptr)->setAutoDetectUnicode(enabled != 0); +} + +void QTextStream_SetCodec(void* ptr, void* codec) +{ + static_cast(ptr)->setCodec(static_cast(codec)); +} + +void QTextStream_SetCodec2(void* ptr, char* codecName) +{ + static_cast(ptr)->setCodec(const_cast(codecName)); +} + +void QTextStream_SetDevice(void* ptr, void* device) +{ + static_cast(ptr)->setDevice(static_cast(device)); +} + +void QTextStream_SetFieldAlignment(void* ptr, long long mode) +{ + static_cast(ptr)->setFieldAlignment(static_cast(mode)); +} + +void QTextStream_SetFieldWidth(void* ptr, int width) +{ + static_cast(ptr)->setFieldWidth(width); +} + +void QTextStream_SetGenerateByteOrderMark(void* ptr, char generate) +{ + static_cast(ptr)->setGenerateByteOrderMark(generate != 0); +} + +void QTextStream_SetIntegerBase(void* ptr, int base) +{ + static_cast(ptr)->setIntegerBase(base); +} + +void QTextStream_SetLocale(void* ptr, void* locale) +{ + static_cast(ptr)->setLocale(*static_cast(locale)); +} + +void QTextStream_SetNumberFlags(void* ptr, long long flags) +{ + static_cast(ptr)->setNumberFlags(static_cast(flags)); +} + +void QTextStream_SetPadChar(void* ptr, void* ch) +{ + static_cast(ptr)->setPadChar(*static_cast(ch)); +} + +void QTextStream_SetRealNumberNotation(void* ptr, long long notation) +{ + static_cast(ptr)->setRealNumberNotation(static_cast(notation)); +} + +void QTextStream_SetRealNumberPrecision(void* ptr, int precision) +{ + static_cast(ptr)->setRealNumberPrecision(precision); +} + +void QTextStream_SetStatus(void* ptr, long long status) +{ + static_cast(ptr)->setStatus(static_cast(status)); +} + +void QTextStream_SetString(void* ptr, struct QtCore_PackedString stri, long long openMode) +{ + static_cast(ptr)->setString(new QString(QString::fromUtf8(stri.data, stri.len)), static_cast(openMode)); +} + +void QTextStream_SkipWhiteSpace(void* ptr) +{ + static_cast(ptr)->skipWhiteSpace(); +} + +long long QTextStream_Status(void* ptr) +{ + return static_cast(ptr)->status(); +} + +struct QtCore_PackedString QTextStream_String(void* ptr) +{ + return ({ QByteArray* t586a42 = new QByteArray(static_cast(ptr)->string()->toUtf8()); QtCore_PackedString { const_cast(t586a42->prepend("WHITESPACE").constData()+10), t586a42->size()-10, t586a42 }; }); +} + +void QTextStream_DestroyQTextStream(void* ptr) +{ + static_cast(ptr)->~QTextStream(); +} + +void QTextStream_DestroyQTextStreamDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQThread: public QThread +{ +public: + MyQThread(QObject *parent = Q_NULLPTR) : QThread(parent) {QThread_QThread_QRegisterMetaType();}; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + void Signal_Finished() { callbackQThread_Finished(this); }; + void quit() { callbackQThread_Quit(this); }; + void run() { callbackQThread_Run(this); }; + void start() { callbackQThread_Start(this); }; + void Signal_Started() { callbackQThread_Started(this); }; + void terminate() { callbackQThread_Terminate(this); }; + ~MyQThread() { callbackQThread_DestroyQThread(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QThread*) +Q_DECLARE_METATYPE(MyQThread*) + +int QThread_QThread_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QThread_NewQThread(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThread(static_cast(parent)); + } else { + return new MyQThread(static_cast(parent)); + } +} + +void* QThread_QThread_CurrentThread() +{ + return QThread::currentThread(); +} + +void* QThread_EventDispatcher(void* ptr) +{ + return static_cast(ptr)->eventDispatcher(); +} + +int QThread_Exec(void* ptr) +{ + return static_cast(ptr)->exec(); +} + +void QThread_Exit(void* ptr, int returnCode) +{ + static_cast(ptr)->exit(returnCode); +} + +void QThread_ConnectFinished(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QThread::finished, static_cast(ptr), static_cast(&MyQThread::Signal_Finished), static_cast(t)); +} + +void QThread_DisconnectFinished(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QThread::finished, static_cast(ptr), static_cast(&MyQThread::Signal_Finished)); +} + +int QThread_QThread_IdealThreadCount() +{ + return QThread::idealThreadCount(); +} + +char QThread_IsFinished(void* ptr) +{ + return static_cast(ptr)->isFinished(); +} + +char QThread_IsInterruptionRequested(void* ptr) +{ + return static_cast(ptr)->isInterruptionRequested(); +} + +char QThread_IsRunning(void* ptr) +{ + return static_cast(ptr)->isRunning(); +} + +int QThread_LoopLevel(void* ptr) +{ + return static_cast(ptr)->loopLevel(); +} + +void QThread_QThread_Msleep(unsigned long msecs) +{ + QThread::msleep(msecs); +} + +long long QThread_Priority(void* ptr) +{ + return static_cast(ptr)->priority(); +} + +void QThread_Quit(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "quit"); +} + +void QThread_QuitDefault(void* ptr) +{ + static_cast(ptr)->QThread::quit(); +} + +void QThread_RequestInterruption(void* ptr) +{ + static_cast(ptr)->requestInterruption(); +} + +void QThread_Run(void* ptr) +{ + static_cast(ptr)->run(); +} + +void QThread_RunDefault(void* ptr) +{ + static_cast(ptr)->QThread::run(); +} + +void QThread_SetEventDispatcher(void* ptr, void* eventDispatcher) +{ + static_cast(ptr)->setEventDispatcher(static_cast(eventDispatcher)); +} + +void QThread_SetPriority(void* ptr, long long priority) +{ + static_cast(ptr)->setPriority(static_cast(priority)); +} + +void QThread_SetStackSize(void* ptr, unsigned int stackSize) +{ + static_cast(ptr)->setStackSize(stackSize); +} + +void QThread_QThread_SetTerminationEnabled(char enabled) +{ + QThread::setTerminationEnabled(enabled != 0); +} + +void QThread_QThread_Sleep(unsigned long secs) +{ + QThread::sleep(secs); +} + +unsigned int QThread_StackSize(void* ptr) +{ + return static_cast(ptr)->stackSize(); +} + +void QThread_Start(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "start"); +} + +void QThread_StartDefault(void* ptr) +{ + static_cast(ptr)->QThread::start(); +} + +void QThread_ConnectStarted(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QThread::started, static_cast(ptr), static_cast(&MyQThread::Signal_Started), static_cast(t)); +} + +void QThread_DisconnectStarted(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QThread::started, static_cast(ptr), static_cast(&MyQThread::Signal_Started)); +} + +void QThread_Terminate(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "terminate"); +} + +void QThread_TerminateDefault(void* ptr) +{ + static_cast(ptr)->QThread::terminate(); +} + +void QThread_QThread_Usleep(unsigned long usecs) +{ + QThread::usleep(usecs); +} + +char QThread_Wait(void* ptr, unsigned long ti) +{ + return static_cast(ptr)->wait(ti); +} + +void QThread_QThread_YieldCurrentThread() +{ + QThread::yieldCurrentThread(); +} + +void QThread_DestroyQThread(void* ptr) +{ + static_cast(ptr)->~QThread(); +} + +void QThread_DestroyQThreadDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQThreadPool: public QThreadPool +{ +public: + MyQThreadPool(QObject *parent = Q_NULLPTR) : QThreadPool(parent) {QThreadPool_QThreadPool_QRegisterMetaType();}; + ~MyQThreadPool() { callbackQThreadPool_DestroyQThreadPool(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QThreadPool*) +Q_DECLARE_METATYPE(MyQThreadPool*) + +int QThreadPool_QThreadPool_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QThreadPool_NewQThreadPool(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQThreadPool(static_cast(parent)); + } else { + return new MyQThreadPool(static_cast(parent)); + } +} + +int QThreadPool_ActiveThreadCount(void* ptr) +{ + return static_cast(ptr)->activeThreadCount(); +} + +void QThreadPool_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +int QThreadPool_ExpiryTimeout(void* ptr) +{ + return static_cast(ptr)->expiryTimeout(); +} + +void* QThreadPool_QThreadPool_GlobalInstance() +{ + return QThreadPool::globalInstance(); +} + +int QThreadPool_MaxThreadCount(void* ptr) +{ + return static_cast(ptr)->maxThreadCount(); +} + +void QThreadPool_ReleaseThread(void* ptr) +{ + static_cast(ptr)->releaseThread(); +} + +void QThreadPool_ReserveThread(void* ptr) +{ + static_cast(ptr)->reserveThread(); +} + +void QThreadPool_SetExpiryTimeout(void* ptr, int expiryTimeout) +{ + static_cast(ptr)->setExpiryTimeout(expiryTimeout); +} + +void QThreadPool_SetMaxThreadCount(void* ptr, int maxThreadCount) +{ + static_cast(ptr)->setMaxThreadCount(maxThreadCount); +} + +void QThreadPool_SetStackSize(void* ptr, unsigned int stackSize) +{ + static_cast(ptr)->setStackSize(stackSize); +} + +unsigned int QThreadPool_StackSize(void* ptr) +{ + return static_cast(ptr)->stackSize(); +} + +void QThreadPool_Start(void* ptr, void* runnable, int priority) +{ + static_cast(ptr)->start(static_cast(runnable), priority); +} + +char QThreadPool_TryStart(void* ptr, void* runnable) +{ + return static_cast(ptr)->tryStart(static_cast(runnable)); +} + +char QThreadPool_TryTake(void* ptr, void* runnable) +{ + return static_cast(ptr)->tryTake(static_cast(runnable)); +} + +char QThreadPool_WaitForDone(void* ptr, int msecs) +{ + return static_cast(ptr)->waitForDone(msecs); +} + +void QThreadPool_DestroyQThreadPool(void* ptr) +{ + static_cast(ptr)->~QThreadPool(); +} + +void QThreadPool_DestroyQThreadPoolDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QTime) +Q_DECLARE_METATYPE(QTime*) +void* QTime_NewQTime2() +{ + return new QTime(); +} + +void* QTime_NewQTime3(int h, int m, int s, int ms) +{ + return new QTime(h, m, s, ms); +} + +void* QTime_AddMSecs(void* ptr, int ms) +{ + return new QTime(static_cast(ptr)->addMSecs(ms)); +} + +void* QTime_AddSecs(void* ptr, int s) +{ + return new QTime(static_cast(ptr)->addSecs(s)); +} + +void* QTime_QTime_CurrentTime() +{ + return new QTime(QTime::currentTime()); +} + +int QTime_Elapsed(void* ptr) +{ + return static_cast(ptr)->elapsed(); +} + +void* QTime_QTime_FromMSecsSinceStartOfDay(int msecs) +{ + return new QTime(QTime::fromMSecsSinceStartOfDay(msecs)); +} + +void* QTime_QTime_FromString(struct QtCore_PackedString stri, long long format) +{ + return new QTime(QTime::fromString(QString::fromUtf8(stri.data, stri.len), static_cast(format))); +} + +void* QTime_QTime_FromString2(struct QtCore_PackedString stri, struct QtCore_PackedString format) +{ + return new QTime(QTime::fromString(QString::fromUtf8(stri.data, stri.len), QString::fromUtf8(format.data, format.len))); +} + +int QTime_Hour(void* ptr) +{ + return static_cast(ptr)->hour(); +} + +char QTime_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QTime_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +char QTime_QTime_IsValid2(int h, int m, int s, int ms) +{ + return QTime::isValid(h, m, s, ms); +} + +int QTime_Minute(void* ptr) +{ + return static_cast(ptr)->minute(); +} + +int QTime_Msec(void* ptr) +{ + return static_cast(ptr)->msec(); +} + +int QTime_MsecsSinceStartOfDay(void* ptr) +{ + return static_cast(ptr)->msecsSinceStartOfDay(); +} + +int QTime_MsecsTo(void* ptr, void* t) +{ + return static_cast(ptr)->msecsTo(*static_cast(t)); +} + +int QTime_Restart(void* ptr) +{ + return static_cast(ptr)->restart(); +} + +int QTime_Second(void* ptr) +{ + return static_cast(ptr)->second(); +} + +int QTime_SecsTo(void* ptr, void* t) +{ + return static_cast(ptr)->secsTo(*static_cast(t)); +} + +char QTime_SetHMS(void* ptr, int h, int m, int s, int ms) +{ + return static_cast(ptr)->setHMS(h, m, s, ms); +} + +void QTime_Start(void* ptr) +{ + static_cast(ptr)->start(); +} + +struct QtCore_PackedString QTime_ToString(void* ptr, struct QtCore_PackedString format) +{ + return ({ QByteArray* t864fb5 = new QByteArray(static_cast(ptr)->toString(QString::fromUtf8(format.data, format.len)).toUtf8()); QtCore_PackedString { const_cast(t864fb5->prepend("WHITESPACE").constData()+10), t864fb5->size()-10, t864fb5 }; }); +} + +struct QtCore_PackedString QTime_ToString2(void* ptr, long long format) +{ + return ({ QByteArray* tb222d7 = new QByteArray(static_cast(ptr)->toString(static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(tb222d7->prepend("WHITESPACE").constData()+10), tb222d7->size()-10, tb222d7 }; }); +} + +struct QtCore_PackedString QTime_ToString3(void* ptr, void* format) +{ + return ({ QByteArray* t3aabc8 = new QByteArray(static_cast(ptr)->toString(*static_cast(format)).toUtf8()); QtCore_PackedString { const_cast(t3aabc8->prepend("WHITESPACE").constData()+10), t3aabc8->size()-10, t3aabc8 }; }); +} + +class MyQTimeLine: public QTimeLine +{ +public: + MyQTimeLine(int duration = 1000, QObject *parent = Q_NULLPTR) : QTimeLine(duration, parent) {QTimeLine_QTimeLine_QRegisterMetaType();}; + void Signal_Finished() { callbackQTimeLine_Finished(this); }; + void Signal_FrameChanged(int frame) { callbackQTimeLine_FrameChanged(this, frame); }; + void resume() { callbackQTimeLine_Resume(this); }; + void setCurrentTime(int msec) { callbackQTimeLine_SetCurrentTime(this, msec); }; + void setPaused(bool paused) { callbackQTimeLine_SetPaused(this, paused); }; + void start() { callbackQTimeLine_Start(this); }; + void Signal_StateChanged(QTimeLine::State newState) { callbackQTimeLine_StateChanged(this, newState); }; + void stop() { callbackQTimeLine_Stop(this); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; + void toggleDirection() { callbackQTimeLine_ToggleDirection(this); }; + void Signal_ValueChanged(qreal value) { callbackQTimeLine_ValueChanged(this, value); }; + qreal valueForTime(int msec) const { return callbackQTimeLine_ValueForTime(const_cast(static_cast(this)), msec); }; + ~MyQTimeLine() { callbackQTimeLine_DestroyQTimeLine(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; +}; + +Q_DECLARE_METATYPE(QTimeLine*) +Q_DECLARE_METATYPE(MyQTimeLine*) + +int QTimeLine_QTimeLine_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTimeLine_NewQTimeLine(int duration, void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimeLine(duration, static_cast(parent)); + } else { + return new MyQTimeLine(duration, static_cast(parent)); + } +} + +int QTimeLine_CurrentFrame(void* ptr) +{ + return static_cast(ptr)->currentFrame(); +} + +int QTimeLine_CurrentTime(void* ptr) +{ + return static_cast(ptr)->currentTime(); +} + +double QTimeLine_CurrentValue(void* ptr) +{ + return static_cast(ptr)->currentValue(); +} + +long long QTimeLine_CurveShape(void* ptr) +{ + return static_cast(ptr)->curveShape(); +} + +long long QTimeLine_Direction(void* ptr) +{ + return static_cast(ptr)->direction(); +} + +int QTimeLine_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +void* QTimeLine_EasingCurve(void* ptr) +{ + return new QEasingCurve(static_cast(ptr)->easingCurve()); +} + +int QTimeLine_EndFrame(void* ptr) +{ + return static_cast(ptr)->endFrame(); +} + +void QTimeLine_ConnectFinished(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QTimeLine::finished, static_cast(ptr), static_cast(&MyQTimeLine::Signal_Finished), static_cast(t)); +} + +void QTimeLine_DisconnectFinished(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QTimeLine::finished, static_cast(ptr), static_cast(&MyQTimeLine::Signal_Finished)); +} + +void QTimeLine_ConnectFrameChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QTimeLine::frameChanged, static_cast(ptr), static_cast(&MyQTimeLine::Signal_FrameChanged), static_cast(t)); +} + +void QTimeLine_DisconnectFrameChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QTimeLine::frameChanged, static_cast(ptr), static_cast(&MyQTimeLine::Signal_FrameChanged)); +} + +int QTimeLine_FrameForTime(void* ptr, int msec) +{ + return static_cast(ptr)->frameForTime(msec); +} + +int QTimeLine_LoopCount(void* ptr) +{ + return static_cast(ptr)->loopCount(); +} + +void QTimeLine_Resume(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "resume"); +} + +void QTimeLine_ResumeDefault(void* ptr) +{ + static_cast(ptr)->QTimeLine::resume(); +} + +void QTimeLine_SetCurrentTime(void* ptr, int msec) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setCurrentTime", Q_ARG(int, msec)); +} + +void QTimeLine_SetCurrentTimeDefault(void* ptr, int msec) +{ + static_cast(ptr)->QTimeLine::setCurrentTime(msec); +} + +void QTimeLine_SetCurveShape(void* ptr, long long shape) +{ + static_cast(ptr)->setCurveShape(static_cast(shape)); +} + +void QTimeLine_SetDirection(void* ptr, long long direction) +{ + static_cast(ptr)->setDirection(static_cast(direction)); +} + +void QTimeLine_SetDuration(void* ptr, int duration) +{ + static_cast(ptr)->setDuration(duration); +} + +void QTimeLine_SetEasingCurve(void* ptr, void* curve) +{ + static_cast(ptr)->setEasingCurve(*static_cast(curve)); +} + +void QTimeLine_SetEndFrame(void* ptr, int frame) +{ + static_cast(ptr)->setEndFrame(frame); +} + +void QTimeLine_SetFrameRange(void* ptr, int startFrame, int endFrame) +{ + static_cast(ptr)->setFrameRange(startFrame, endFrame); +} + +void QTimeLine_SetLoopCount(void* ptr, int count) +{ + static_cast(ptr)->setLoopCount(count); +} + +void QTimeLine_SetPaused(void* ptr, char paused) +{ + QMetaObject::invokeMethod(static_cast(ptr), "setPaused", Q_ARG(bool, paused != 0)); +} + +void QTimeLine_SetPausedDefault(void* ptr, char paused) +{ + static_cast(ptr)->QTimeLine::setPaused(paused != 0); +} + +void QTimeLine_SetStartFrame(void* ptr, int frame) +{ + static_cast(ptr)->setStartFrame(frame); +} + +void QTimeLine_SetUpdateInterval(void* ptr, int interval) +{ + static_cast(ptr)->setUpdateInterval(interval); +} + +void QTimeLine_Start(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "start"); +} + +void QTimeLine_StartDefault(void* ptr) +{ + static_cast(ptr)->QTimeLine::start(); +} + +int QTimeLine_StartFrame(void* ptr) +{ + return static_cast(ptr)->startFrame(); +} + +long long QTimeLine_State(void* ptr) +{ + return static_cast(ptr)->state(); +} + +void QTimeLine_ConnectStateChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QTimeLine::stateChanged, static_cast(ptr), static_cast(&MyQTimeLine::Signal_StateChanged), static_cast(t)); +} + +void QTimeLine_DisconnectStateChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QTimeLine::stateChanged, static_cast(ptr), static_cast(&MyQTimeLine::Signal_StateChanged)); +} + +void QTimeLine_Stop(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "stop"); +} + +void QTimeLine_StopDefault(void* ptr) +{ + static_cast(ptr)->QTimeLine::stop(); +} + +void QTimeLine_ToggleDirection(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "toggleDirection"); +} + +void QTimeLine_ToggleDirectionDefault(void* ptr) +{ + static_cast(ptr)->QTimeLine::toggleDirection(); +} + +int QTimeLine_UpdateInterval(void* ptr) +{ + return static_cast(ptr)->updateInterval(); +} + +void QTimeLine_ConnectValueChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QTimeLine::valueChanged, static_cast(ptr), static_cast(&MyQTimeLine::Signal_ValueChanged), static_cast(t)); +} + +void QTimeLine_DisconnectValueChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QTimeLine::valueChanged, static_cast(ptr), static_cast(&MyQTimeLine::Signal_ValueChanged)); +} + +double QTimeLine_ValueForTime(void* ptr, int msec) +{ + return static_cast(ptr)->valueForTime(msec); +} + +double QTimeLine_ValueForTimeDefault(void* ptr, int msec) +{ + return static_cast(ptr)->QTimeLine::valueForTime(msec); +} + +void QTimeLine_DestroyQTimeLine(void* ptr) +{ + static_cast(ptr)->~QTimeLine(); +} + +void QTimeLine_DestroyQTimeLineDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QTimeZone) +Q_DECLARE_METATYPE(QTimeZone*) +void* QTimeZone_NewQTimeZone() +{ + return new QTimeZone(); +} + +void* QTimeZone_NewQTimeZone2(void* ianaId) +{ + return new QTimeZone(*static_cast(ianaId)); +} + +void* QTimeZone_NewQTimeZone3(int offsetSeconds) +{ + return new QTimeZone(offsetSeconds); +} + +void* QTimeZone_NewQTimeZone4(void* ianaId, int offsetSeconds, struct QtCore_PackedString name, struct QtCore_PackedString abbreviation, long long country, struct QtCore_PackedString comment) +{ + return new QTimeZone(*static_cast(ianaId), offsetSeconds, QString::fromUtf8(name.data, name.len), QString::fromUtf8(abbreviation.data, abbreviation.len), static_cast(country), QString::fromUtf8(comment.data, comment.len)); +} + +void* QTimeZone_NewQTimeZone5(void* other) +{ + return new QTimeZone(*static_cast(other)); +} + +struct QtCore_PackedString QTimeZone_Abbreviation(void* ptr, void* atDateTime) +{ + return ({ QByteArray* t82ae84 = new QByteArray(static_cast(ptr)->abbreviation(*static_cast(atDateTime)).toUtf8()); QtCore_PackedString { const_cast(t82ae84->prepend("WHITESPACE").constData()+10), t82ae84->size()-10, t82ae84 }; }); +} + +struct QtCore_PackedList QTimeZone_QTimeZone_AvailableTimeZoneIds() +{ + return ({ QList* tmpValue9dfc57 = new QList(QTimeZone::availableTimeZoneIds()); QtCore_PackedList { tmpValue9dfc57, tmpValue9dfc57->size() }; }); +} + +struct QtCore_PackedList QTimeZone_QTimeZone_AvailableTimeZoneIds2(long long country) +{ + return ({ QList* tmpValueb51557 = new QList(QTimeZone::availableTimeZoneIds(static_cast(country))); QtCore_PackedList { tmpValueb51557, tmpValueb51557->size() }; }); +} + +struct QtCore_PackedList QTimeZone_QTimeZone_AvailableTimeZoneIds3(int offsetSeconds) +{ + return ({ QList* tmpValue137a2a = new QList(QTimeZone::availableTimeZoneIds(offsetSeconds)); QtCore_PackedList { tmpValue137a2a, tmpValue137a2a->size() }; }); +} + +struct QtCore_PackedString QTimeZone_Comment(void* ptr) +{ + return ({ QByteArray* t2b73f6 = new QByteArray(static_cast(ptr)->comment().toUtf8()); QtCore_PackedString { const_cast(t2b73f6->prepend("WHITESPACE").constData()+10), t2b73f6->size()-10, t2b73f6 }; }); +} + +long long QTimeZone_Country(void* ptr) +{ + return static_cast(ptr)->country(); +} + +int QTimeZone_DaylightTimeOffset(void* ptr, void* atDateTime) +{ + return static_cast(ptr)->daylightTimeOffset(*static_cast(atDateTime)); +} + +struct QtCore_PackedString QTimeZone_DisplayName(void* ptr, void* atDateTime, long long nameType, void* locale) +{ + return ({ QByteArray* t168cd9 = new QByteArray(static_cast(ptr)->displayName(*static_cast(atDateTime), static_cast(nameType), *static_cast(locale)).toUtf8()); QtCore_PackedString { const_cast(t168cd9->prepend("WHITESPACE").constData()+10), t168cd9->size()-10, t168cd9 }; }); +} + +struct QtCore_PackedString QTimeZone_DisplayName2(void* ptr, long long timeType, long long nameType, void* locale) +{ + return ({ QByteArray* tc6cf47 = new QByteArray(static_cast(ptr)->displayName(static_cast(timeType), static_cast(nameType), *static_cast(locale)).toUtf8()); QtCore_PackedString { const_cast(tc6cf47->prepend("WHITESPACE").constData()+10), tc6cf47->size()-10, tc6cf47 }; }); +} + +char QTimeZone_HasDaylightTime(void* ptr) +{ + return static_cast(ptr)->hasDaylightTime(); +} + +char QTimeZone_HasTransitions(void* ptr) +{ + return static_cast(ptr)->hasTransitions(); +} + +void* QTimeZone_QTimeZone_IanaIdToWindowsId(void* ianaId) +{ + return new QByteArray(QTimeZone::ianaIdToWindowsId(*static_cast(ianaId))); +} + +void* QTimeZone_Id(void* ptr) +{ + return new QByteArray(static_cast(ptr)->id()); +} + +char QTimeZone_IsDaylightTime(void* ptr, void* atDateTime) +{ + return static_cast(ptr)->isDaylightTime(*static_cast(atDateTime)); +} + +char QTimeZone_QTimeZone_IsTimeZoneIdAvailable(void* ianaId) +{ + return QTimeZone::isTimeZoneIdAvailable(*static_cast(ianaId)); +} + +char QTimeZone_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +int QTimeZone_OffsetFromUtc(void* ptr, void* atDateTime) +{ + return static_cast(ptr)->offsetFromUtc(*static_cast(atDateTime)); +} + +int QTimeZone_StandardTimeOffset(void* ptr, void* atDateTime) +{ + return static_cast(ptr)->standardTimeOffset(*static_cast(atDateTime)); +} + +void QTimeZone_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QTimeZone_QTimeZone_SystemTimeZone() +{ + return new QTimeZone(QTimeZone::systemTimeZone()); +} + +void* QTimeZone_QTimeZone_SystemTimeZoneId() +{ + return new QByteArray(QTimeZone::systemTimeZoneId()); +} + +void* QTimeZone_QTimeZone_Utc() +{ + return new QTimeZone(QTimeZone::utc()); +} + +void* QTimeZone_QTimeZone_WindowsIdToDefaultIanaId(void* windowsId) +{ + return new QByteArray(QTimeZone::windowsIdToDefaultIanaId(*static_cast(windowsId))); +} + +void* QTimeZone_QTimeZone_WindowsIdToDefaultIanaId2(void* windowsId, long long country) +{ + return new QByteArray(QTimeZone::windowsIdToDefaultIanaId(*static_cast(windowsId), static_cast(country))); +} + +struct QtCore_PackedList QTimeZone_QTimeZone_WindowsIdToIanaIds(void* windowsId) +{ + return ({ QList* tmpValue7576fc = new QList(QTimeZone::windowsIdToIanaIds(*static_cast(windowsId))); QtCore_PackedList { tmpValue7576fc, tmpValue7576fc->size() }; }); +} + +struct QtCore_PackedList QTimeZone_QTimeZone_WindowsIdToIanaIds2(void* windowsId, long long country) +{ + return ({ QList* tmpValue5be00a = new QList(QTimeZone::windowsIdToIanaIds(*static_cast(windowsId), static_cast(country))); QtCore_PackedList { tmpValue5be00a, tmpValue5be00a->size() }; }); +} + +void QTimeZone_DestroyQTimeZone(void* ptr) +{ + static_cast(ptr)->~QTimeZone(); +} + +void* QTimeZone___availableTimeZoneIds_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTimeZone___availableTimeZoneIds_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTimeZone___availableTimeZoneIds_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QTimeZone___availableTimeZoneIds_atList2(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTimeZone___availableTimeZoneIds_setList2(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTimeZone___availableTimeZoneIds_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QTimeZone___availableTimeZoneIds_atList3(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTimeZone___availableTimeZoneIds_setList3(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTimeZone___availableTimeZoneIds_newList3(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QTimeZone___windowsIdToIanaIds_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTimeZone___windowsIdToIanaIds_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTimeZone___windowsIdToIanaIds_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QTimeZone___windowsIdToIanaIds_atList2(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QTimeZone___windowsIdToIanaIds_setList2(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QTimeZone___windowsIdToIanaIds_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQTimer: public QTimer +{ +public: + MyQTimer(QObject *parent = Q_NULLPTR) : QTimer(parent) {QTimer_QTimer_QRegisterMetaType();}; + void start(int msec) { callbackQTimer_Start(this, msec); }; + void start() { callbackQTimer_Start2(this); }; + void stop() { callbackQTimer_Stop(this); }; + void Signal_Timeout() { callbackQTimer_Timeout(this); }; + void timerEvent(QTimerEvent * e) { callbackQObject_TimerEvent(this, e); }; + ~MyQTimer() { callbackQTimer_DestroyQTimer(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; +}; + +Q_DECLARE_METATYPE(QTimer*) +Q_DECLARE_METATYPE(MyQTimer*) + +int QTimer_QTimer_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTimer_NewQTimer(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTimer(static_cast(parent)); + } else { + return new MyQTimer(static_cast(parent)); + } +} + +int QTimer_Interval(void* ptr) +{ + return static_cast(ptr)->interval(); +} + +char QTimer_IsActive(void* ptr) +{ + return static_cast(ptr)->isActive(); +} + +char QTimer_IsSingleShot(void* ptr) +{ + return static_cast(ptr)->isSingleShot(); +} + +int QTimer_RemainingTime(void* ptr) +{ + return static_cast(ptr)->remainingTime(); +} + +void QTimer_SetInterval(void* ptr, int msec) +{ + static_cast(ptr)->setInterval(msec); +} + +void QTimer_SetSingleShot(void* ptr, char singleShot) +{ + static_cast(ptr)->setSingleShot(singleShot != 0); +} + +void QTimer_SetTimerType(void* ptr, long long atype) +{ + static_cast(ptr)->setTimerType(static_cast(atype)); +} + +void QTimer_QTimer_SingleShot(int msec, void* receiver, char* member) +{ + QTimer::singleShot(msec, static_cast(receiver), const_cast(member)); +} + +void QTimer_QTimer_SingleShot2(int msec, long long timerType, void* receiver, char* member) +{ + QTimer::singleShot(msec, static_cast(timerType), static_cast(receiver), const_cast(member)); +} + +void QTimer_Start(void* ptr, int msec) +{ + QMetaObject::invokeMethod(static_cast(ptr), "start", Q_ARG(int, msec)); +} + +void QTimer_StartDefault(void* ptr, int msec) +{ + static_cast(ptr)->QTimer::start(msec); +} + +void QTimer_Start2(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "start"); +} + +void QTimer_Start2Default(void* ptr) +{ + static_cast(ptr)->QTimer::start(); +} + +void QTimer_Stop(void* ptr) +{ + QMetaObject::invokeMethod(static_cast(ptr), "stop"); +} + +void QTimer_StopDefault(void* ptr) +{ + static_cast(ptr)->QTimer::stop(); +} + +void QTimer_ConnectTimeout(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), &QTimer::timeout, static_cast(ptr), static_cast(&MyQTimer::Signal_Timeout), static_cast(t)); +} + +void QTimer_DisconnectTimeout(void* ptr) +{ + QObject::disconnect(static_cast(ptr), &QTimer::timeout, static_cast(ptr), static_cast(&MyQTimer::Signal_Timeout)); +} + +int QTimer_TimerId(void* ptr) +{ + return static_cast(ptr)->timerId(); +} + +long long QTimer_TimerType(void* ptr) +{ + return static_cast(ptr)->timerType(); +} + +void QTimer_DestroyQTimer(void* ptr) +{ + static_cast(ptr)->~QTimer(); +} + +void QTimer_DestroyQTimerDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQTimerEvent: public QTimerEvent +{ +public: + MyQTimerEvent(int timerId) : QTimerEvent(timerId) {QTimerEvent_QTimerEvent_QRegisterMetaType();}; +}; + +Q_DECLARE_METATYPE(QTimerEvent*) +Q_DECLARE_METATYPE(MyQTimerEvent*) + +int QTimerEvent_QTimerEvent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTimerEvent_NewQTimerEvent(int timerId) +{ + return new MyQTimerEvent(timerId); +} + +int QTimerEvent_TimerId(void* ptr) +{ + return static_cast(ptr)->timerId(); +} + +class MyQTranslator: public QTranslator +{ +public: + MyQTranslator(QObject *parent = Q_NULLPTR) : QTranslator(parent) {QTranslator_QTranslator_QRegisterMetaType();}; + bool isEmpty() const { return callbackQTranslator_IsEmpty(const_cast(static_cast(this))) != 0; }; + QString translate(const char * context, const char * sourceText, const char * disambiguation, int n) const { QtCore_PackedString contextPacked = { const_cast(context), n, NULL };QtCore_PackedString sourceTextPacked = { const_cast(sourceText), n, NULL };QtCore_PackedString disambiguationPacked = { const_cast(disambiguation), n, NULL };return ({ QtCore_PackedString tempVal = callbackQTranslator_Translate(const_cast(static_cast(this)), contextPacked, sourceTextPacked, disambiguationPacked, n); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; + ~MyQTranslator() { callbackQTranslator_DestroyQTranslator(this); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QTranslator*) +Q_DECLARE_METATYPE(MyQTranslator*) + +int QTranslator_QTranslator_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTranslator_NewQTranslator(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTranslator(static_cast(parent)); + } else { + return new MyQTranslator(static_cast(parent)); + } +} + +char QTranslator_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QTranslator_IsEmptyDefault(void* ptr) +{ + return static_cast(ptr)->QTranslator::isEmpty(); +} + +char QTranslator_Load(void* ptr, struct QtCore_PackedString filename, struct QtCore_PackedString directory, struct QtCore_PackedString search_delimiters, struct QtCore_PackedString suffix) +{ + return static_cast(ptr)->load(QString::fromUtf8(filename.data, filename.len), QString::fromUtf8(directory.data, directory.len), QString::fromUtf8(search_delimiters.data, search_delimiters.len), QString::fromUtf8(suffix.data, suffix.len)); +} + +char QTranslator_Load2(void* ptr, void* locale, struct QtCore_PackedString filename, struct QtCore_PackedString prefix, struct QtCore_PackedString directory, struct QtCore_PackedString suffix) +{ + return static_cast(ptr)->load(*static_cast(locale), QString::fromUtf8(filename.data, filename.len), QString::fromUtf8(prefix.data, prefix.len), QString::fromUtf8(directory.data, directory.len), QString::fromUtf8(suffix.data, suffix.len)); +} + +char QTranslator_Load3(void* ptr, char* data, int l, struct QtCore_PackedString directory) +{ + return static_cast(ptr)->load(const_cast(static_cast(static_cast(data))), l, QString::fromUtf8(directory.data, directory.len)); +} + +struct QtCore_PackedString QTranslator_Translate(void* ptr, char* context, char* sourceText, char* disambiguation, int n) +{ + return ({ QByteArray* tb6b80e = new QByteArray(static_cast(ptr)->translate(const_cast(context), const_cast(sourceText), const_cast(disambiguation), n).toUtf8()); QtCore_PackedString { const_cast(tb6b80e->prepend("WHITESPACE").constData()+10), tb6b80e->size()-10, tb6b80e }; }); +} + +struct QtCore_PackedString QTranslator_TranslateDefault(void* ptr, char* context, char* sourceText, char* disambiguation, int n) +{ + return ({ QByteArray* t5511a2 = new QByteArray(static_cast(ptr)->QTranslator::translate(const_cast(context), const_cast(sourceText), const_cast(disambiguation), n).toUtf8()); QtCore_PackedString { const_cast(t5511a2->prepend("WHITESPACE").constData()+10), t5511a2->size()-10, t5511a2 }; }); +} + +void QTranslator_DestroyQTranslator(void* ptr) +{ + static_cast(ptr)->~QTranslator(); +} + +void QTranslator_DestroyQTranslatorDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQTransposeProxyModel: public QTransposeProxyModel +{ +public: + MyQTransposeProxyModel(QObject *parent = Q_NULLPTR) : QTransposeProxyModel(parent) {QTransposeProxyModel_QTransposeProxyModel_QRegisterMetaType();}; + int columnCount(const QModelIndex & parent) const { return callbackQTransposeProxyModel_ColumnCount(const_cast(static_cast(this)), const_cast(&parent)); }; + QVariant headerData(int section, Qt::Orientation orientation, int role) const { return *static_cast(callbackQAbstractItemModel_HeaderData(const_cast(static_cast(this)), section, orientation, role)); }; + QModelIndex index(int row, int column, const QModelIndex & parent) const { return *static_cast(callbackQTransposeProxyModel_Index(const_cast(static_cast(this)), row, column, const_cast(&parent))); }; + bool insertColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertColumns(this, column, count, const_cast(&parent)) != 0; }; + bool insertRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_InsertRows(this, row, count, const_cast(&parent)) != 0; }; + QMap itemData(const QModelIndex & index) const { return ({ QMap* tmpP = static_cast*>(callbackQAbstractItemModel_ItemData(const_cast(static_cast(this)), const_cast(&index))); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; }); }; + QModelIndex mapFromSource(const QModelIndex & sourceIndex) const { return *static_cast(callbackQTransposeProxyModel_MapFromSource(const_cast(static_cast(this)), const_cast(&sourceIndex))); }; + QModelIndex mapToSource(const QModelIndex & proxyIndex) const { return *static_cast(callbackQTransposeProxyModel_MapToSource(const_cast(static_cast(this)), const_cast(&proxyIndex))); }; + bool moveColumns(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveColumns(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) { return callbackQAbstractItemModel_MoveRows(this, const_cast(&sourceParent), sourceRow, count, const_cast(&destinationParent), destinationChild) != 0; }; + QModelIndex parent(const QModelIndex & index) const { return *static_cast(callbackQTransposeProxyModel_Parent(const_cast(static_cast(this)), const_cast(&index))); }; + bool removeColumns(int column, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveColumns(this, column, count, const_cast(&parent)) != 0; }; + bool removeRows(int row, int count, const QModelIndex & parent) { return callbackQAbstractItemModel_RemoveRows(this, row, count, const_cast(&parent)) != 0; }; + int rowCount(const QModelIndex & parent) const { return callbackQTransposeProxyModel_RowCount(const_cast(static_cast(this)), const_cast(&parent)); }; + bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) { return callbackQAbstractItemModel_SetHeaderData(this, section, orientation, const_cast(&value), role) != 0; }; + bool setItemData(const QModelIndex & index, const QMap & roles) { return callbackQAbstractItemModel_SetItemData(this, const_cast(&index), ({ QMap* tmpValue037c88 = new QMap(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })) != 0; }; + void setSourceModel(QAbstractItemModel * newSourceModel) { callbackQAbstractProxyModel_SetSourceModel(this, newSourceModel); }; + void sort(int column, Qt::SortOrder order) { callbackQAbstractItemModel_Sort(this, column, order); }; + QSize span(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Span(const_cast(static_cast(this)), const_cast(&index))); }; + ~MyQTransposeProxyModel() { callbackQTransposeProxyModel_DestroyQTransposeProxyModel(this); }; + QModelIndex buddy(const QModelIndex & index) const { return *static_cast(callbackQAbstractItemModel_Buddy(const_cast(static_cast(this)), const_cast(&index))); }; + bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const { return callbackQAbstractItemModel_CanDropMimeData(const_cast(static_cast(this)), const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + bool canFetchMore(const QModelIndex & parent) const { return callbackQAbstractItemModel_CanFetchMore(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QVariant data(const QModelIndex & proxyIndex, int role) const { return *static_cast(callbackQAbstractProxyModel_Data(const_cast(static_cast(this)), const_cast(&proxyIndex), role)); }; + bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) { return callbackQAbstractItemModel_DropMimeData(this, const_cast(data), action, row, column, const_cast(&parent)) != 0; }; + void fetchMore(const QModelIndex & parent) { callbackQAbstractItemModel_FetchMore(this, const_cast(&parent)); }; + Qt::ItemFlags flags(const QModelIndex & index) const { return static_cast(callbackQAbstractItemModel_Flags(const_cast(static_cast(this)), const_cast(&index))); }; + bool hasChildren(const QModelIndex & parent) const { return callbackQAbstractItemModel_HasChildren(const_cast(static_cast(this)), const_cast(&parent)) != 0; }; + QItemSelection mapSelectionFromSource(const QItemSelection & sourceSelection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionFromSource(const_cast(static_cast(this)), const_cast(&sourceSelection))); }; + QItemSelection mapSelectionToSource(const QItemSelection & proxySelection) const { return *static_cast(callbackQAbstractProxyModel_MapSelectionToSource(const_cast(static_cast(this)), const_cast(&proxySelection))); }; + QMimeData * mimeData(const QModelIndexList & indexes) const { return static_cast(callbackQAbstractItemModel_MimeData(const_cast(static_cast(this)), ({ QList* tmpValuee0adf2 = new QList(indexes); QtCore_PackedList { tmpValuee0adf2, tmpValuee0adf2->size() }; }))); }; + QStringList mimeTypes() const { return ({ QtCore_PackedString tempVal = callbackQAbstractItemModel_MimeTypes(const_cast(static_cast(this))); QStringList ret = QString::fromUtf8(tempVal.data, tempVal.len).split("¡¦!", QString::SkipEmptyParts); free(tempVal.data); ret; }); }; + void resetInternalData() { callbackQAbstractItemModel_ResetInternalData(this); }; + void revert() { callbackQAbstractProxyModel_Revert(this); }; + bool setData(const QModelIndex & index, const QVariant & value, int role) { return callbackQAbstractItemModel_SetData(this, const_cast(&index), const_cast(&value), role) != 0; }; + QModelIndex sibling(int row, int column, const QModelIndex & idx) const { return *static_cast(callbackQAbstractItemModel_Sibling(const_cast(static_cast(this)), row, column, const_cast(&idx))); }; + void Signal_SourceModelChanged() { callbackQAbstractProxyModel_SourceModelChanged(this); }; + bool submit() { return callbackQAbstractProxyModel_Submit(this) != 0; }; + Qt::DropActions supportedDragActions() const { return static_cast(callbackQAbstractItemModel_SupportedDragActions(const_cast(static_cast(this)))); }; + Qt::DropActions supportedDropActions() const { return static_cast(callbackQAbstractItemModel_SupportedDropActions(const_cast(static_cast(this)))); }; + void Signal_ColumnsAboutToBeInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationColumn) { callbackQAbstractItemModel_ColumnsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationColumn); }; + void Signal_ColumnsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_ColumnsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsInserted(this, const_cast(&parent), first, last); }; + void Signal_ColumnsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int column) { callbackQAbstractItemModel_ColumnsMoved(this, const_cast(&parent), start, end, const_cast(&destination), column); }; + void Signal_ColumnsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_ColumnsRemoved(this, const_cast(&parent), first, last); }; + void Signal_DataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector & roles) { callbackQAbstractItemModel_DataChanged(this, const_cast(&topLeft), const_cast(&bottomRight), ({ QVector* tmpValue037c88 = new QVector(roles); QtCore_PackedList { tmpValue037c88, tmpValue037c88->size() }; })); }; + void Signal_HeaderDataChanged(Qt::Orientation orientation, int first, int last) { callbackQAbstractItemModel_HeaderDataChanged(this, orientation, first, last); }; + void Signal_LayoutAboutToBeChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutAboutToBeChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + void Signal_LayoutChanged(const QList & parents, QAbstractItemModel::LayoutChangeHint hint) { callbackQAbstractItemModel_LayoutChanged(this, ({ QList* tmpValuea664f1 = new QList(parents); QtCore_PackedList { tmpValuea664f1, tmpValuea664f1->size() }; }), hint); }; + QList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const { return ({ QList* tmpP = static_cast*>(callbackQAbstractItemModel_Match(const_cast(static_cast(this)), const_cast(&start), role, const_cast(&value), hits, flags)); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; }); }; + void Signal_ModelAboutToBeReset() { callbackQAbstractItemModel_ModelAboutToBeReset(this); }; + void Signal_ModelReset() { callbackQAbstractItemModel_ModelReset(this); }; + QHash roleNames() const { return ({ QHash* tmpP = static_cast*>(callbackQAbstractItemModel_RoleNames(const_cast(static_cast(this)))); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; }); }; + void Signal_RowsAboutToBeInserted(const QModelIndex & parent, int start, int end) { callbackQAbstractItemModel_RowsAboutToBeInserted(this, const_cast(&parent), start, end); }; + void Signal_RowsAboutToBeMoved(const QModelIndex & sourceParent, int sourceStart, int sourceEnd, const QModelIndex & destinationParent, int destinationRow) { callbackQAbstractItemModel_RowsAboutToBeMoved(this, const_cast(&sourceParent), sourceStart, sourceEnd, const_cast(&destinationParent), destinationRow); }; + void Signal_RowsAboutToBeRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsAboutToBeRemoved(this, const_cast(&parent), first, last); }; + void Signal_RowsInserted(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsInserted(this, const_cast(&parent), first, last); }; + void Signal_RowsMoved(const QModelIndex & parent, int start, int end, const QModelIndex & destination, int row) { callbackQAbstractItemModel_RowsMoved(this, const_cast(&parent), start, end, const_cast(&destination), row); }; + void Signal_RowsRemoved(const QModelIndex & parent, int first, int last) { callbackQAbstractItemModel_RowsRemoved(this, const_cast(&parent), first, last); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool event(QEvent * e) { return callbackQObject_Event(this, e) != 0; }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QTransposeProxyModel*) +Q_DECLARE_METATYPE(MyQTransposeProxyModel*) + +int QTransposeProxyModel_QTransposeProxyModel_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QTransposeProxyModel_NewQTransposeProxyModel2(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQTransposeProxyModel(static_cast(parent)); + } else { + return new MyQTransposeProxyModel(static_cast(parent)); + } +} + +int QTransposeProxyModel_ColumnCount(void* ptr, void* parent) +{ + return static_cast(ptr)->columnCount(*static_cast(parent)); +} + +int QTransposeProxyModel_ColumnCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QTransposeProxyModel::columnCount(*static_cast(parent)); +} + +void* QTransposeProxyModel_Index(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->index(row, column, *static_cast(parent))); +} + +void* QTransposeProxyModel_IndexDefault(void* ptr, int row, int column, void* parent) +{ + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::index(row, column, *static_cast(parent))); +} + +void* QTransposeProxyModel_MapFromSource(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->mapFromSource(*static_cast(sourceIndex))); +} + +void* QTransposeProxyModel_MapFromSourceDefault(void* ptr, void* sourceIndex) +{ + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::mapFromSource(*static_cast(sourceIndex))); +} + +void* QTransposeProxyModel_MapToSource(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->mapToSource(*static_cast(proxyIndex))); +} + +void* QTransposeProxyModel_MapToSourceDefault(void* ptr, void* proxyIndex) +{ + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::mapToSource(*static_cast(proxyIndex))); +} + +void* QTransposeProxyModel_Parent(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->parent(*static_cast(index))); +} + +void* QTransposeProxyModel_ParentDefault(void* ptr, void* index) +{ + return new QModelIndex(static_cast(ptr)->QTransposeProxyModel::parent(*static_cast(index))); +} + +int QTransposeProxyModel_RowCount(void* ptr, void* parent) +{ + return static_cast(ptr)->rowCount(*static_cast(parent)); +} + +int QTransposeProxyModel_RowCountDefault(void* ptr, void* parent) +{ + return static_cast(ptr)->QTransposeProxyModel::rowCount(*static_cast(parent)); +} + +void QTransposeProxyModel_DestroyQTransposeProxyModel(void* ptr) +{ + static_cast(ptr)->~QTransposeProxyModel(); +} + +void QTransposeProxyModel_DestroyQTransposeProxyModelDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +class MyQUnhandledException: public QUnhandledException +{ +public: +}; + +Q_DECLARE_METATYPE(QUnhandledException*) +Q_DECLARE_METATYPE(MyQUnhandledException*) + +int QUnhandledException_QUnhandledException_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +Q_DECLARE_METATYPE(QUrl) +Q_DECLARE_METATYPE(QUrl*) +void* QUrl_NewQUrl() +{ + return new QUrl(); +} + +void* QUrl_NewQUrl2(void* other) +{ + return new QUrl(*static_cast(other)); +} + +void* QUrl_NewQUrl3(struct QtCore_PackedString url, long long parsingMode) +{ + return new QUrl(QString::fromUtf8(url.data, url.len), static_cast(parsingMode)); +} + +void* QUrl_NewQUrl4(void* other) +{ + return new QUrl(*static_cast(other)); +} + +void* QUrl_Adjusted(void* ptr, long long options) +{ + return new QUrl(static_cast(ptr)->adjusted(static_cast(options))); +} + +struct QtCore_PackedString QUrl_Authority(void* ptr, long long options) +{ + return ({ QByteArray* t5a26fa = new QByteArray(static_cast(ptr)->authority(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t5a26fa->prepend("WHITESPACE").constData()+10), t5a26fa->size()-10, t5a26fa }; }); +} + +void QUrl_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +struct QtCore_PackedString QUrl_ErrorString(void* ptr) +{ + return ({ QByteArray* t35c6dc = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(t35c6dc->prepend("WHITESPACE").constData()+10), t35c6dc->size()-10, t35c6dc }; }); +} + +struct QtCore_PackedString QUrl_FileName(void* ptr, long long options) +{ + return ({ QByteArray* t4c468f = new QByteArray(static_cast(ptr)->fileName(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t4c468f->prepend("WHITESPACE").constData()+10), t4c468f->size()-10, t4c468f }; }); +} + +struct QtCore_PackedString QUrl_Fragment(void* ptr, long long options) +{ + return ({ QByteArray* t754185 = new QByteArray(static_cast(ptr)->fragment(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t754185->prepend("WHITESPACE").constData()+10), t754185->size()-10, t754185 }; }); +} + +struct QtCore_PackedString QUrl_QUrl_FromAce(void* domain) +{ + return ({ QByteArray* t0cf8b9 = new QByteArray(QUrl::fromAce(*static_cast(domain)).toUtf8()); QtCore_PackedString { const_cast(t0cf8b9->prepend("WHITESPACE").constData()+10), t0cf8b9->size()-10, t0cf8b9 }; }); +} + +void* QUrl_QUrl_FromEncoded(void* input, long long parsingMode) +{ + return new QUrl(QUrl::fromEncoded(*static_cast(input), static_cast(parsingMode))); +} + +void* QUrl_QUrl_FromLocalFile(struct QtCore_PackedString localFile) +{ + return new QUrl(QUrl::fromLocalFile(QString::fromUtf8(localFile.data, localFile.len))); +} + +struct QtCore_PackedString QUrl_QUrl_FromPercentEncoding(void* input) +{ + return ({ QByteArray* t95c42a = new QByteArray(QUrl::fromPercentEncoding(*static_cast(input)).toUtf8()); QtCore_PackedString { const_cast(t95c42a->prepend("WHITESPACE").constData()+10), t95c42a->size()-10, t95c42a }; }); +} + +struct QtCore_PackedList QUrl_QUrl_FromStringList(struct QtCore_PackedString urls, long long mode) +{ + return ({ QList* tmpValue5751dc = new QList(QUrl::fromStringList(QString::fromUtf8(urls.data, urls.len).split("¡¦!", QString::SkipEmptyParts), static_cast(mode))); QtCore_PackedList { tmpValue5751dc, tmpValue5751dc->size() }; }); +} + +void* QUrl_QUrl_FromUserInput(struct QtCore_PackedString userInput) +{ + return new QUrl(QUrl::fromUserInput(QString::fromUtf8(userInput.data, userInput.len))); +} + +void* QUrl_QUrl_FromUserInput2(struct QtCore_PackedString userInput, struct QtCore_PackedString workingDirectory, long long options) +{ + return new QUrl(QUrl::fromUserInput(QString::fromUtf8(userInput.data, userInput.len), QString::fromUtf8(workingDirectory.data, workingDirectory.len), static_cast(options))); +} + +char QUrl_HasFragment(void* ptr) +{ + return static_cast(ptr)->hasFragment(); +} + +char QUrl_HasQuery(void* ptr) +{ + return static_cast(ptr)->hasQuery(); +} + +struct QtCore_PackedString QUrl_Host(void* ptr, long long options) +{ + return ({ QByteArray* tf93546 = new QByteArray(static_cast(ptr)->host(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(tf93546->prepend("WHITESPACE").constData()+10), tf93546->size()-10, tf93546 }; }); +} + +struct QtCore_PackedString QUrl_QUrl_IdnWhitelist() +{ + return ({ QByteArray* t7d801d = new QByteArray(QUrl::idnWhitelist().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(t7d801d->prepend("WHITESPACE").constData()+10), t7d801d->size()-10, t7d801d }; }); +} + +char QUrl_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +char QUrl_IsLocalFile(void* ptr) +{ + return static_cast(ptr)->isLocalFile(); +} + +char QUrl_IsParentOf(void* ptr, void* childUrl) +{ + return static_cast(ptr)->isParentOf(*static_cast(childUrl)); +} + +char QUrl_IsRelative(void* ptr) +{ + return static_cast(ptr)->isRelative(); +} + +char QUrl_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +char QUrl_Matches(void* ptr, void* url, long long options) +{ + return static_cast(ptr)->matches(*static_cast(url), static_cast(options)); +} + +struct QtCore_PackedString QUrl_Password(void* ptr, long long options) +{ + return ({ QByteArray* t55f068 = new QByteArray(static_cast(ptr)->password(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t55f068->prepend("WHITESPACE").constData()+10), t55f068->size()-10, t55f068 }; }); +} + +struct QtCore_PackedString QUrl_Path(void* ptr, long long options) +{ + return ({ QByteArray* t70ef65 = new QByteArray(static_cast(ptr)->path(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t70ef65->prepend("WHITESPACE").constData()+10), t70ef65->size()-10, t70ef65 }; }); +} + +int QUrl_Port(void* ptr, int defaultPort) +{ + return static_cast(ptr)->port(defaultPort); +} + +struct QtCore_PackedString QUrl_Query(void* ptr, long long options) +{ + return ({ QByteArray* t911c73 = new QByteArray(static_cast(ptr)->query(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t911c73->prepend("WHITESPACE").constData()+10), t911c73->size()-10, t911c73 }; }); +} + +void* QUrl_Resolved(void* ptr, void* relative) +{ + return new QUrl(static_cast(ptr)->resolved(*static_cast(relative))); +} + +struct QtCore_PackedString QUrl_Scheme(void* ptr) +{ + return ({ QByteArray* t862954 = new QByteArray(static_cast(ptr)->scheme().toUtf8()); QtCore_PackedString { const_cast(t862954->prepend("WHITESPACE").constData()+10), t862954->size()-10, t862954 }; }); +} + +void QUrl_SetAuthority(void* ptr, struct QtCore_PackedString authority, long long mode) +{ + static_cast(ptr)->setAuthority(QString::fromUtf8(authority.data, authority.len), static_cast(mode)); +} + +void QUrl_SetFragment(void* ptr, struct QtCore_PackedString fragment, long long mode) +{ + static_cast(ptr)->setFragment(QString::fromUtf8(fragment.data, fragment.len), static_cast(mode)); +} + +void QUrl_SetHost(void* ptr, struct QtCore_PackedString host, long long mode) +{ + static_cast(ptr)->setHost(QString::fromUtf8(host.data, host.len), static_cast(mode)); +} + +void QUrl_QUrl_SetIdnWhitelist(struct QtCore_PackedString list) +{ + QUrl::setIdnWhitelist(QString::fromUtf8(list.data, list.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void QUrl_SetPassword(void* ptr, struct QtCore_PackedString password, long long mode) +{ + static_cast(ptr)->setPassword(QString::fromUtf8(password.data, password.len), static_cast(mode)); +} + +void QUrl_SetPath(void* ptr, struct QtCore_PackedString path, long long mode) +{ + static_cast(ptr)->setPath(QString::fromUtf8(path.data, path.len), static_cast(mode)); +} + +void QUrl_SetPort(void* ptr, int port) +{ + static_cast(ptr)->setPort(port); +} + +void QUrl_SetQuery(void* ptr, struct QtCore_PackedString query, long long mode) +{ + static_cast(ptr)->setQuery(QString::fromUtf8(query.data, query.len), static_cast(mode)); +} + +void QUrl_SetQuery2(void* ptr, void* query) +{ + static_cast(ptr)->setQuery(*static_cast(query)); +} + +void QUrl_SetScheme(void* ptr, struct QtCore_PackedString scheme) +{ + static_cast(ptr)->setScheme(QString::fromUtf8(scheme.data, scheme.len)); +} + +void QUrl_SetUrl(void* ptr, struct QtCore_PackedString url, long long parsingMode) +{ + static_cast(ptr)->setUrl(QString::fromUtf8(url.data, url.len), static_cast(parsingMode)); +} + +void QUrl_SetUserInfo(void* ptr, struct QtCore_PackedString userInfo, long long mode) +{ + static_cast(ptr)->setUserInfo(QString::fromUtf8(userInfo.data, userInfo.len), static_cast(mode)); +} + +void QUrl_SetUserName(void* ptr, struct QtCore_PackedString userName, long long mode) +{ + static_cast(ptr)->setUserName(QString::fromUtf8(userName.data, userName.len), static_cast(mode)); +} + +void QUrl_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QUrl_QUrl_ToAce(struct QtCore_PackedString domain) +{ + return new QByteArray(QUrl::toAce(QString::fromUtf8(domain.data, domain.len))); +} + +struct QtCore_PackedString QUrl_ToDisplayString(void* ptr, long long options) +{ + return ({ QByteArray* tb72fa5 = new QByteArray(static_cast(ptr)->toDisplayString(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(tb72fa5->prepend("WHITESPACE").constData()+10), tb72fa5->size()-10, tb72fa5 }; }); +} + +void* QUrl_ToEncoded(void* ptr, long long options) +{ + return new QByteArray(static_cast(ptr)->toEncoded(static_cast(options))); +} + +struct QtCore_PackedString QUrl_ToLocalFile(void* ptr) +{ + return ({ QByteArray* tdd5812 = new QByteArray(static_cast(ptr)->toLocalFile().toUtf8()); QtCore_PackedString { const_cast(tdd5812->prepend("WHITESPACE").constData()+10), tdd5812->size()-10, tdd5812 }; }); +} + +void* QUrl_QUrl_ToPercentEncoding(struct QtCore_PackedString input, void* exclude, void* include) +{ + return new QByteArray(QUrl::toPercentEncoding(QString::fromUtf8(input.data, input.len), *static_cast(exclude), *static_cast(include))); +} + +struct QtCore_PackedString QUrl_ToString(void* ptr, long long options) +{ + return ({ QByteArray* tc0d7b7 = new QByteArray(static_cast(ptr)->toString(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(tc0d7b7->prepend("WHITESPACE").constData()+10), tc0d7b7->size()-10, tc0d7b7 }; }); +} + +struct QtCore_PackedString QUrl_QUrl_ToStringList(void* urls, long long options) +{ + return ({ QByteArray* tc32440 = new QByteArray(QUrl::toStringList(*static_cast*>(urls), static_cast(options)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tc32440->prepend("WHITESPACE").constData()+10), tc32440->size()-10, tc32440 }; }); +} + +struct QtCore_PackedString QUrl_TopLevelDomain(void* ptr, long long options) +{ + return ({ QByteArray* t06da8f = new QByteArray(static_cast(ptr)->topLevelDomain(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t06da8f->prepend("WHITESPACE").constData()+10), t06da8f->size()-10, t06da8f }; }); +} + +struct QtCore_PackedString QUrl_Url(void* ptr, long long options) +{ + return ({ QByteArray* t2ea726 = new QByteArray(static_cast(ptr)->url(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(t2ea726->prepend("WHITESPACE").constData()+10), t2ea726->size()-10, t2ea726 }; }); +} + +struct QtCore_PackedString QUrl_UserInfo(void* ptr, long long options) +{ + return ({ QByteArray* tff62a1 = new QByteArray(static_cast(ptr)->userInfo(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(tff62a1->prepend("WHITESPACE").constData()+10), tff62a1->size()-10, tff62a1 }; }); +} + +struct QtCore_PackedString QUrl_UserName(void* ptr, long long options) +{ + return ({ QByteArray* tb9c277 = new QByteArray(static_cast(ptr)->userName(static_cast(options)).toUtf8()); QtCore_PackedString { const_cast(tb9c277->prepend("WHITESPACE").constData()+10), tb9c277->size()-10, tb9c277 }; }); +} + +void QUrl_DestroyQUrl(void* ptr) +{ + static_cast(ptr)->~QUrl(); +} + +void* QUrl___allEncodedQueryItemValues_atList(void* ptr, int i) +{ + return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QUrl___allEncodedQueryItemValues_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QUrl___allEncodedQueryItemValues_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QUrl___fromStringList_atList(void* ptr, int i) +{ + return new QUrl(({QUrl tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QUrl___fromStringList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QUrl___fromStringList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QUrl___toStringList_urls_atList(void* ptr, int i) +{ + return new QUrl(({QUrl tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QUrl___toStringList_urls_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QUrl___toStringList_urls_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +Q_DECLARE_METATYPE(QUrlQuery) +Q_DECLARE_METATYPE(QUrlQuery*) +void* QUrlQuery_NewQUrlQuery() +{ + return new QUrlQuery(); +} + +void* QUrlQuery_NewQUrlQuery2(void* url) +{ + return new QUrlQuery(*static_cast(url)); +} + +void* QUrlQuery_NewQUrlQuery3(struct QtCore_PackedString queryString) +{ + return new QUrlQuery(QString::fromUtf8(queryString.data, queryString.len)); +} + +void* QUrlQuery_NewQUrlQuery5(void* other) +{ + return new QUrlQuery(*static_cast(other)); +} + +void QUrlQuery_AddQueryItem(void* ptr, struct QtCore_PackedString key, struct QtCore_PackedString value) +{ + static_cast(ptr)->addQueryItem(QString::fromUtf8(key.data, key.len), QString::fromUtf8(value.data, value.len)); +} + +struct QtCore_PackedString QUrlQuery_AllQueryItemValues(void* ptr, struct QtCore_PackedString key, long long encoding) +{ + return ({ QByteArray* tad6e07 = new QByteArray(static_cast(ptr)->allQueryItemValues(QString::fromUtf8(key.data, key.len), static_cast(encoding)).join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tad6e07->prepend("WHITESPACE").constData()+10), tad6e07->size()-10, tad6e07 }; }); +} + +void QUrlQuery_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +void* QUrlQuery_QUrlQuery_DefaultQueryPairDelimiter() +{ + return new QChar(QUrlQuery::defaultQueryPairDelimiter()); +} + +void* QUrlQuery_QUrlQuery_DefaultQueryValueDelimiter() +{ + return new QChar(QUrlQuery::defaultQueryValueDelimiter()); +} + +char QUrlQuery_HasQueryItem(void* ptr, struct QtCore_PackedString key) +{ + return static_cast(ptr)->hasQueryItem(QString::fromUtf8(key.data, key.len)); +} + +char QUrlQuery_IsEmpty(void* ptr) +{ + return static_cast(ptr)->isEmpty(); +} + +struct QtCore_PackedString QUrlQuery_Query(void* ptr, long long encoding) +{ + return ({ QByteArray* tc70807 = new QByteArray(static_cast(ptr)->query(static_cast(encoding)).toUtf8()); QtCore_PackedString { const_cast(tc70807->prepend("WHITESPACE").constData()+10), tc70807->size()-10, tc70807 }; }); +} + +struct QtCore_PackedString QUrlQuery_QueryItemValue(void* ptr, struct QtCore_PackedString key, long long encoding) +{ + return ({ QByteArray* t5453a9 = new QByteArray(static_cast(ptr)->queryItemValue(QString::fromUtf8(key.data, key.len), static_cast(encoding)).toUtf8()); QtCore_PackedString { const_cast(t5453a9->prepend("WHITESPACE").constData()+10), t5453a9->size()-10, t5453a9 }; }); +} + +void* QUrlQuery_QueryPairDelimiter(void* ptr) +{ + return new QChar(static_cast(ptr)->queryPairDelimiter()); +} + +void* QUrlQuery_QueryValueDelimiter(void* ptr) +{ + return new QChar(static_cast(ptr)->queryValueDelimiter()); +} + +void QUrlQuery_RemoveAllQueryItems(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->removeAllQueryItems(QString::fromUtf8(key.data, key.len)); +} + +void QUrlQuery_RemoveQueryItem(void* ptr, struct QtCore_PackedString key) +{ + static_cast(ptr)->removeQueryItem(QString::fromUtf8(key.data, key.len)); +} + +void QUrlQuery_SetQuery(void* ptr, struct QtCore_PackedString queryString) +{ + static_cast(ptr)->setQuery(QString::fromUtf8(queryString.data, queryString.len)); +} + +void QUrlQuery_SetQueryDelimiters(void* ptr, void* valueDelimiter, void* pairDelimiter) +{ + static_cast(ptr)->setQueryDelimiters(*static_cast(valueDelimiter), *static_cast(pairDelimiter)); +} + +void QUrlQuery_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +struct QtCore_PackedString QUrlQuery_ToString(void* ptr, long long encoding) +{ + return ({ QByteArray* t13eb00 = new QByteArray(static_cast(ptr)->toString(static_cast(encoding)).toUtf8()); QtCore_PackedString { const_cast(t13eb00->prepend("WHITESPACE").constData()+10), t13eb00->size()-10, t13eb00 }; }); +} + +void QUrlQuery_DestroyQUrlQuery(void* ptr) +{ + static_cast(ptr)->~QUrlQuery(); +} + +Q_DECLARE_METATYPE(QUuid) +Q_DECLARE_METATYPE(QUuid*) +void* QUuid_NewQUuid2() +{ + return new QUuid(); +} + +void* QUuid_NewQUuid3(unsigned int l, unsigned short w1, unsigned short w2, char* b1, char* b2, char* b3, char* b4, char* b5, char* b6, char* b7, char* b8) +{ + return new QUuid(l, w1, w2, *static_cast(static_cast(b1)), *static_cast(static_cast(b2)), *static_cast(static_cast(b3)), *static_cast(static_cast(b4)), *static_cast(static_cast(b5)), *static_cast(static_cast(b6)), *static_cast(static_cast(b7)), *static_cast(static_cast(b8))); +} + +void* QUuid_NewQUuid4(struct QtCore_PackedString text) +{ + return new QUuid(QString::fromUtf8(text.data, text.len)); +} + +void* QUuid_NewQUuid(void* text) +{ + return new QUuid(*static_cast(text)); +} + +void* QUuid_QUuid_CreateUuid() +{ + return new QUuid(QUuid::createUuid()); +} + +void* QUuid_QUuid_CreateUuidV3(void* ns, void* baseData) +{ + return new QUuid(QUuid::createUuidV3(*static_cast(ns), *static_cast(baseData))); +} + +void* QUuid_QUuid_CreateUuidV32(void* ns, struct QtCore_PackedString baseData) +{ + return new QUuid(QUuid::createUuidV3(*static_cast(ns), QString::fromUtf8(baseData.data, baseData.len))); +} + +void* QUuid_QUuid_CreateUuidV5(void* ns, void* baseData) +{ + return new QUuid(QUuid::createUuidV5(*static_cast(ns), *static_cast(baseData))); +} + +void* QUuid_QUuid_CreateUuidV52(void* ns, struct QtCore_PackedString baseData) +{ + return new QUuid(QUuid::createUuidV5(*static_cast(ns), QString::fromUtf8(baseData.data, baseData.len))); +} + +void* QUuid_QUuid_FromRfc4122(void* bytes) +{ + return new QUuid(QUuid::fromRfc4122(*static_cast(bytes))); +} + +void* QUuid_QUuid_FromString(void* text) +{ + return new QUuid(QUuid::fromString(*static_cast(text))); +} + +void* QUuid_QUuid_FromString2(void* text) +{ + return new QUuid(QUuid::fromString(*static_cast(text))); +} + +char QUuid_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +void* QUuid_ToByteArray(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toByteArray()); +} + +void* QUuid_ToByteArray2(void* ptr, long long mode) +{ + return new QByteArray(static_cast(ptr)->toByteArray(static_cast(mode))); +} + +void* QUuid_ToRfc4122(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toRfc4122()); +} + +struct QtCore_PackedString QUuid_ToString(void* ptr) +{ + return ({ QByteArray* t6f28ec = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(t6f28ec->prepend("WHITESPACE").constData()+10), t6f28ec->size()-10, t6f28ec }; }); +} + +struct QtCore_PackedString QUuid_ToString2(void* ptr, long long mode) +{ + return ({ QByteArray* taf9869 = new QByteArray(static_cast(ptr)->toString(static_cast(mode)).toUtf8()); QtCore_PackedString { const_cast(taf9869->prepend("WHITESPACE").constData()+10), taf9869->size()-10, taf9869 }; }); +} + +long long QUuid_Variant(void* ptr) +{ + return static_cast(ptr)->variant(); +} + +long long QUuid_Version(void* ptr) +{ + return static_cast(ptr)->version(); +} + +Q_DECLARE_METATYPE(QVariant*) +void* QVariant_NewQVariant() +{ + return new QVariant(); +} + +void* QVariant_NewQVariant2(long long ty) +{ + return new QVariant(static_cast(ty)); +} + +void* QVariant_NewQVariant3(int typeId, void* copy) +{ + return new QVariant(typeId, copy); +} + +void* QVariant_NewQVariant4(void* s) +{ + return new QVariant(*static_cast(s)); +} + +void* QVariant_NewQVariant5(int val) +{ + return new QVariant(val); +} + +void* QVariant_NewQVariant6(unsigned int val) +{ + return new QVariant(val); +} + +void* QVariant_NewQVariant7(long long val) +{ + return new QVariant(val); +} + +void* QVariant_NewQVariant8(unsigned long long val) +{ + return new QVariant(val); +} + +void* QVariant_NewQVariant9(char val) +{ + return new QVariant(val != 0); +} + +void* QVariant_NewQVariant10(double val) +{ + return new QVariant(val); +} + +void* QVariant_NewQVariant11(float val) +{ + return new QVariant(val); +} + +void* QVariant_NewQVariant12(char* val) +{ + return new QVariant(const_cast(val)); +} + +void* QVariant_NewQVariant13(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant14(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant15(struct QtCore_PackedString val) +{ + return new QVariant(QString::fromUtf8(val.data, val.len)); +} + +void* QVariant_NewQVariant16(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant17(struct QtCore_PackedString val) +{ + return new QVariant(QString::fromUtf8(val.data, val.len).split("¡¦!", QString::SkipEmptyParts)); +} + +void* QVariant_NewQVariant18(void* c) +{ + return new QVariant(*static_cast(c)); +} + +void* QVariant_NewQVariant19(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant20(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant21(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant22(void* val) +{ + return new QVariant(({ QList* tmpP = static_cast*>(val); QList tmpV = *tmpP; tmpP->~QList(); free(tmpP); tmpV; })); +} + +void* QVariant_NewQVariant23(void* val) +{ + return new QVariant(({ QMap* tmpP = static_cast*>(val); QMap tmpV = *tmpP; tmpP->~QMap(); free(tmpP); tmpV; })); +} + +void* QVariant_NewQVariant24(void* val) +{ + return new QVariant(({ QHash* tmpP = static_cast*>(val); QHash tmpV = *tmpP; tmpP->~QHash(); free(tmpP); tmpV; })); +} + +void* QVariant_NewQVariant25(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant26(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant27(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant28(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant29(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant30(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant31(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant32(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant33(void* l) +{ + return new QVariant(*static_cast(l)); +} + +void* QVariant_NewQVariant34(void* regExp) +{ + return new QVariant(*static_cast(regExp)); +} + +void* QVariant_NewQVariant35(void* re) +{ + return new QVariant(*static_cast(re)); +} + +void* QVariant_NewQVariant36(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant37(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant38(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant39(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant40(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant41(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant42(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant43(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant44(void* val) +{ + return new QVariant(*static_cast(val)); +} + +void* QVariant_NewQVariant45(void* other) +{ + return new QVariant(*static_cast(other)); +} + +char QVariant_CanConvert(void* ptr, int targetTypeId) +{ + return static_cast(ptr)->canConvert(targetTypeId); +} + +void QVariant_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +char QVariant_Convert(void* ptr, int targetTypeId) +{ + return static_cast(ptr)->convert(targetTypeId); +} + +char QVariant_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QVariant_IsValid(void* ptr) +{ + return static_cast(ptr)->isValid(); +} + +long long QVariant_QVariant_NameToType(char* name) +{ + return QVariant::nameToType(const_cast(name)); +} + +void QVariant_Swap(void* ptr, void* other) +{ + static_cast(ptr)->swap(*static_cast(other)); +} + +void* QVariant_ToBitArray(void* ptr) +{ + return new QBitArray(static_cast(ptr)->toBitArray()); +} + +char QVariant_ToBool(void* ptr) +{ + return static_cast(ptr)->toBool(); +} + +void* QVariant_ToByteArray(void* ptr) +{ + return new QByteArray(static_cast(ptr)->toByteArray()); +} + +void* QVariant_ToChar(void* ptr) +{ + return new QChar(static_cast(ptr)->toChar()); +} + +void* QVariant_ToDate(void* ptr) +{ + return new QDate(static_cast(ptr)->toDate()); +} + +void* QVariant_ToDateTime(void* ptr) +{ + return new QDateTime(static_cast(ptr)->toDateTime()); +} + +double QVariant_ToDouble(void* ptr, char* ok) +{ + return static_cast(ptr)->toDouble(reinterpret_cast(ok)); +} + +void* QVariant_ToEasingCurve(void* ptr) +{ + return new QEasingCurve(static_cast(ptr)->toEasingCurve()); +} + +float QVariant_ToFloat(void* ptr, char* ok) +{ + return static_cast(ptr)->toFloat(reinterpret_cast(ok)); +} + +struct QtCore_PackedList QVariant_ToHash(void* ptr) +{ + return ({ QHash* tmpValue00701e = new QHash(static_cast(ptr)->toHash()); QtCore_PackedList { tmpValue00701e, tmpValue00701e->size() }; }); +} + +int QVariant_ToInt(void* ptr, char* ok) +{ + return static_cast(ptr)->toInt(reinterpret_cast(ok)); +} + +void* QVariant_ToJsonArray(void* ptr) +{ + return new QJsonArray(static_cast(ptr)->toJsonArray()); +} + +void* QVariant_ToJsonDocument(void* ptr) +{ + return new QJsonDocument(static_cast(ptr)->toJsonDocument()); +} + +void* QVariant_ToJsonObject(void* ptr) +{ + return new QJsonObject(static_cast(ptr)->toJsonObject()); +} + +void* QVariant_ToJsonValue(void* ptr) +{ + return new QJsonValue(static_cast(ptr)->toJsonValue()); +} + +void* QVariant_ToLine(void* ptr) +{ + return ({ QLine tmpValue = static_cast(ptr)->toLine(); new QLine(tmpValue.p1(), tmpValue.p2()); }); +} + +void* QVariant_ToLineF(void* ptr) +{ + return ({ QLineF tmpValue = static_cast(ptr)->toLineF(); new QLineF(tmpValue.p1(), tmpValue.p2()); }); +} + +struct QtCore_PackedList QVariant_ToList(void* ptr) +{ + return ({ QList* tmpValue8f6950 = new QList(static_cast(ptr)->toList()); QtCore_PackedList { tmpValue8f6950, tmpValue8f6950->size() }; }); +} + +void* QVariant_ToLocale(void* ptr) +{ + return new QLocale(static_cast(ptr)->toLocale()); +} + +long long QVariant_ToLongLong(void* ptr, char* ok) +{ + return static_cast(ptr)->toLongLong(reinterpret_cast(ok)); +} + +struct QtCore_PackedList QVariant_ToMap(void* ptr) +{ + return ({ QMap* tmpValue1e0d76 = new QMap(static_cast(ptr)->toMap()); QtCore_PackedList { tmpValue1e0d76, tmpValue1e0d76->size() }; }); +} + +void* QVariant_ToModelIndex(void* ptr) +{ + return new QModelIndex(static_cast(ptr)->toModelIndex()); +} + +void* QVariant_ToPersistentModelIndex(void* ptr) +{ + return new QPersistentModelIndex(static_cast(ptr)->toPersistentModelIndex()); +} + +void* QVariant_ToPoint(void* ptr) +{ + return ({ QPoint tmpValue = static_cast(ptr)->toPoint(); new QPoint(tmpValue.x(), tmpValue.y()); }); +} + +void* QVariant_ToPointF(void* ptr) +{ + return ({ QPointF tmpValue = static_cast(ptr)->toPointF(); new QPointF(tmpValue.x(), tmpValue.y()); }); +} + +double QVariant_ToReal(void* ptr, char* ok) +{ + return static_cast(ptr)->toReal(reinterpret_cast(ok)); +} + +void* QVariant_ToRect(void* ptr) +{ + return ({ QRect tmpValue = static_cast(ptr)->toRect(); new QRect(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QVariant_ToRectF(void* ptr) +{ + return ({ QRectF tmpValue = static_cast(ptr)->toRectF(); new QRectF(tmpValue.x(), tmpValue.y(), tmpValue.width(), tmpValue.height()); }); +} + +void* QVariant_ToRegExp(void* ptr) +{ + return new QRegExp(static_cast(ptr)->toRegExp()); +} + +void* QVariant_ToRegularExpression(void* ptr) +{ + return new QRegularExpression(static_cast(ptr)->toRegularExpression()); +} + +void* QVariant_ToSize(void* ptr) +{ + return ({ QSize tmpValue = static_cast(ptr)->toSize(); new QSize(tmpValue.width(), tmpValue.height()); }); +} + +void* QVariant_ToSizeF(void* ptr) +{ + return ({ QSizeF tmpValue = static_cast(ptr)->toSizeF(); new QSizeF(tmpValue.width(), tmpValue.height()); }); +} + +struct QtCore_PackedString QVariant_ToString(void* ptr) +{ + return ({ QByteArray* tf9e1e4 = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(tf9e1e4->prepend("WHITESPACE").constData()+10), tf9e1e4->size()-10, tf9e1e4 }; }); +} + +struct QtCore_PackedString QVariant_ToStringList(void* ptr) +{ + return ({ QByteArray* tf99cb6 = new QByteArray(static_cast(ptr)->toStringList().join("¡¦!").toUtf8()); QtCore_PackedString { const_cast(tf99cb6->prepend("WHITESPACE").constData()+10), tf99cb6->size()-10, tf99cb6 }; }); +} + +void* QVariant_ToTime(void* ptr) +{ + return new QTime(static_cast(ptr)->toTime()); +} + +unsigned int QVariant_ToUInt(void* ptr, char* ok) +{ + return static_cast(ptr)->toUInt(reinterpret_cast(ok)); +} + +unsigned long long QVariant_ToULongLong(void* ptr, char* ok) +{ + return static_cast(ptr)->toULongLong(reinterpret_cast(ok)); +} + +void* QVariant_ToUrl(void* ptr) +{ + return new QUrl(static_cast(ptr)->toUrl()); +} + +void* QVariant_ToUuid(void* ptr) +{ + return new QUuid(static_cast(ptr)->toUuid()); +} + +long long QVariant_Type(void* ptr) +{ + return static_cast(ptr)->type(); +} + +struct QtCore_PackedString QVariant_TypeName(void* ptr) +{ + return QtCore_PackedString { const_cast(static_cast(ptr)->typeName()), -1, NULL }; +} + +struct QtCore_PackedString QVariant_QVariant_TypeToName(int typeId) +{ + return QtCore_PackedString { const_cast(QVariant::typeToName(typeId)), typeId, NULL }; +} + +int QVariant_UserType(void* ptr) +{ + return static_cast(ptr)->userType(); +} + +void QVariant_DestroyQVariant(void* ptr) +{ + static_cast(ptr)->~QVariant(); +} + +void* QVariant_ToColor(void* ptr) +{ + return new QColor(qvariant_cast(*static_cast(ptr))); +} + +void* QVariant_ToFont(void* ptr) +{ + return new QFont(qvariant_cast(*static_cast(ptr))); +} + +void* QVariant_ToImage(void* ptr) +{ + return new QImage(qvariant_cast(*static_cast(ptr))); +} + +void* QVariant_ToObject(void* ptr) +{ + return qvariant_cast(*static_cast(ptr)); +} + +void* QVariant_ToIcon(void* ptr) +{ + return new QIcon(qvariant_cast(*static_cast(ptr))); +} + +void* QVariant_ToBrush(void* ptr) +{ + return new QBrush(qvariant_cast(*static_cast(ptr))); +} + +void* QVariant___QVariant_val_atList22(void* ptr, int i) +{ + return new QVariant(({QVariant tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QVariant___QVariant_val_setList22(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QVariant___QVariant_val_newList22(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QVariant___QVariant_val_atList23(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QVariant___QVariant_val_setList23(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QVariant___QVariant_val_newList23(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtCore_PackedList QVariant___QVariant_val_keyList23(void* ptr) +{ + return ({ QList* tmpValue1ab909 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue1ab909, tmpValue1ab909->size() }; }); +} + +void* QVariant___QVariant_val_atList24(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QVariant___QVariant_val_setList24(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QVariant___QVariant_val_newList24(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QVariant___QVariant_val_keyList24(void* ptr) +{ + return ({ QList* tmpValuef43bc5 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValuef43bc5, tmpValuef43bc5->size() }; }); +} + +void* QVariant___toHash_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QHash(); free(ptr); }; tmp; })); +} + +void QVariant___toHash_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QVariant___toHash_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QHash(); +} + +struct QtCore_PackedList QVariant___toHash_keyList(void* ptr) +{ + return ({ QList* tmpValuef43bc5 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValuef43bc5, tmpValuef43bc5->size() }; }); +} + +void* QVariant___toList_atList(void* ptr, int i) +{ + return new QVariant(({QVariant tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); +} + +void QVariant___toList_setList(void* ptr, void* i) +{ + static_cast*>(ptr)->append(*static_cast(i)); +} + +void* QVariant___toList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +void* QVariant___toMap_atList(void* ptr, struct QtCore_PackedString v, int i) +{ + return new QVariant(({ QVariant tmp = static_cast*>(ptr)->value(QString::fromUtf8(v.data, v.len)); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QMap(); free(ptr); }; tmp; })); +} + +void QVariant___toMap_setList(void* ptr, struct QtCore_PackedString key, void* i) +{ + static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); +} + +void* QVariant___toMap_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QMap(); +} + +struct QtCore_PackedList QVariant___toMap_keyList(void* ptr) +{ + return ({ QList* tmpValue1ab909 = new QList(static_cast*>(ptr)->keys()); QtCore_PackedList { tmpValue1ab909, tmpValue1ab909->size() }; }); +} + +struct QtCore_PackedString QVariant_____QVariant_val_keyList_atList23(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QVariant_____QVariant_val_keyList_setList23(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QVariant_____QVariant_val_keyList_newList23(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QVariant_____QVariant_val_keyList_atList24(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QVariant_____QVariant_val_keyList_setList24(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QVariant_____QVariant_val_keyList_newList24(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QVariant_____toHash_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QVariant_____toHash_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QVariant_____toHash_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +struct QtCore_PackedString QVariant_____toMap_keyList_atList(void* ptr, int i) +{ + return ({ QByteArray* t94aa5e = new QByteArray(({QString tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }).toUtf8()); QtCore_PackedString { const_cast(t94aa5e->prepend("WHITESPACE").constData()+10), t94aa5e->size()-10, t94aa5e }; }); +} + +void QVariant_____toMap_keyList_setList(void* ptr, struct QtCore_PackedString i) +{ + static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); +} + +void* QVariant_____toMap_keyList_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QList(); +} + +class MyQVariantAnimation: public QVariantAnimation +{ +public: + MyQVariantAnimation(QObject *parent = Q_NULLPTR) : QVariantAnimation(parent) {QVariantAnimation_QVariantAnimation_QRegisterMetaType();}; + int duration() const { return callbackQVariantAnimation_Duration(const_cast(static_cast(this))); }; + bool event(QEvent * event) { return callbackQObject_Event(this, event) != 0; }; + QVariant interpolated(const QVariant & from, const QVariant & to, qreal progress) const { return *static_cast(callbackQVariantAnimation_Interpolated(const_cast(static_cast(this)), const_cast(&from), const_cast(&to), progress)); }; + void updateCurrentTime(int vin) { callbackQVariantAnimation_UpdateCurrentTime(this, vin); }; + void updateCurrentValue(const QVariant & value) { callbackQVariantAnimation_UpdateCurrentValue(this, const_cast(&value)); }; + void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_UpdateState(this, newState, oldState); }; + void Signal_ValueChanged(const QVariant & value) { callbackQVariantAnimation_ValueChanged(this, const_cast(&value)); }; + ~MyQVariantAnimation() { callbackQVariantAnimation_DestroyQVariantAnimation(this); }; + void Signal_CurrentLoopChanged(int currentLoop) { callbackQAbstractAnimation_CurrentLoopChanged(this, currentLoop); }; + void Signal_DirectionChanged(QAbstractAnimation::Direction newDirection) { callbackQAbstractAnimation_DirectionChanged(this, newDirection); }; + void Signal_Finished() { callbackQAbstractAnimation_Finished(this); }; + void pause() { callbackQAbstractAnimation_Pause(this); }; + void resume() { callbackQAbstractAnimation_Resume(this); }; + void setCurrentTime(int msecs) { callbackQAbstractAnimation_SetCurrentTime(this, msecs); }; + void setPaused(bool paused) { callbackQAbstractAnimation_SetPaused(this, paused); }; + void start(QAbstractAnimation::DeletionPolicy policy) { callbackQAbstractAnimation_Start(this, policy); }; + void Signal_StateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { callbackQAbstractAnimation_StateChanged(this, newState, oldState); }; + void stop() { callbackQAbstractAnimation_Stop(this); }; + void updateDirection(QAbstractAnimation::Direction direction) { callbackQAbstractAnimation_UpdateDirection(this, direction); }; + void childEvent(QChildEvent * event) { callbackQObject_ChildEvent(this, event); }; + void connectNotify(const QMetaMethod & sign) { callbackQObject_ConnectNotify(this, const_cast(&sign)); }; + void customEvent(QEvent * event) { callbackQObject_CustomEvent(this, event); }; + void deleteLater() { callbackQObject_DeleteLater(this); }; + void Signal_Destroyed(QObject * obj) { callbackQObject_Destroyed(this, obj); }; + void disconnectNotify(const QMetaMethod & sign) { callbackQObject_DisconnectNotify(this, const_cast(&sign)); }; + bool eventFilter(QObject * watched, QEvent * event) { return callbackQObject_EventFilter(this, watched, event) != 0; }; + const QMetaObject * metaObject() const { return static_cast(callbackQObject_MetaObject(const_cast(static_cast(this)))); }; + void Signal_ObjectNameChanged(const QString & objectName) { QByteArray* taa2c4f = new QByteArray(objectName.toUtf8()); QtCore_PackedString objectNamePacked = { const_cast(taa2c4f->prepend("WHITESPACE").constData()+10), taa2c4f->size()-10, taa2c4f };callbackQObject_ObjectNameChanged(this, objectNamePacked); }; + void timerEvent(QTimerEvent * event) { callbackQObject_TimerEvent(this, event); }; +}; + +Q_DECLARE_METATYPE(QVariantAnimation*) +Q_DECLARE_METATYPE(MyQVariantAnimation*) + +int QVariantAnimation_QVariantAnimation_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +void* QVariantAnimation_NewQVariantAnimation(void* parent) +{ + if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else if (dynamic_cast(static_cast(parent))) { + return new MyQVariantAnimation(static_cast(parent)); + } else { + return new MyQVariantAnimation(static_cast(parent)); + } +} + +void* QVariantAnimation_CurrentValue(void* ptr) +{ + return new QVariant(static_cast(ptr)->currentValue()); +} + +int QVariantAnimation_Duration(void* ptr) +{ + return static_cast(ptr)->duration(); +} + +int QVariantAnimation_DurationDefault(void* ptr) +{ + if (dynamic_cast(static_cast(ptr))) { + return static_cast(ptr)->QPropertyAnimation::duration(); + } else { + return static_cast(ptr)->QVariantAnimation::duration(); + } +} + +void* QVariantAnimation_EasingCurve(void* ptr) +{ + return new QEasingCurve(static_cast(ptr)->easingCurve()); +} + +void* QVariantAnimation_EndValue(void* ptr) +{ + return new QVariant(static_cast(ptr)->endValue()); +} + +void* QVariantAnimation_Interpolated(void* ptr, void* from, void* to, double progress) +{ + return new QVariant(static_cast(ptr)->interpolated(*static_cast(from), *static_cast(to), progress)); +} + +void* QVariantAnimation_InterpolatedDefault(void* ptr, void* from, void* to, double progress) +{ + if (dynamic_cast(static_cast(ptr))) { + return new QVariant(static_cast(ptr)->QPropertyAnimation::interpolated(*static_cast(from), *static_cast(to), progress)); + } else { + return new QVariant(static_cast(ptr)->QVariantAnimation::interpolated(*static_cast(from), *static_cast(to), progress)); + } +} + +void* QVariantAnimation_KeyValueAt(void* ptr, double step) +{ + return new QVariant(static_cast(ptr)->keyValueAt(step)); +} + +void QVariantAnimation_SetDuration(void* ptr, int msecs) +{ + static_cast(ptr)->setDuration(msecs); +} + +void QVariantAnimation_SetEasingCurve(void* ptr, void* easing) +{ + static_cast(ptr)->setEasingCurve(*static_cast(easing)); +} + +void QVariantAnimation_SetEndValue(void* ptr, void* value) +{ + static_cast(ptr)->setEndValue(*static_cast(value)); +} + +void QVariantAnimation_SetKeyValueAt(void* ptr, double step, void* value) +{ + static_cast(ptr)->setKeyValueAt(step, *static_cast(value)); +} + +void QVariantAnimation_SetStartValue(void* ptr, void* value) +{ + static_cast(ptr)->setStartValue(*static_cast(value)); +} + +void* QVariantAnimation_StartValue(void* ptr) +{ + return new QVariant(static_cast(ptr)->startValue()); +} + +void QVariantAnimation_UpdateCurrentTime(void* ptr, int vin) +{ + static_cast(ptr)->updateCurrentTime(vin); +} + +void QVariantAnimation_UpdateCurrentTimeDefault(void* ptr, int vin) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::updateCurrentTime(vin); + } else { + static_cast(ptr)->QVariantAnimation::updateCurrentTime(vin); + } +} + +void QVariantAnimation_UpdateCurrentValue(void* ptr, void* value) +{ + static_cast(ptr)->updateCurrentValue(*static_cast(value)); +} + +void QVariantAnimation_UpdateCurrentValueDefault(void* ptr, void* value) +{ + if (dynamic_cast(static_cast(ptr))) { + static_cast(ptr)->QPropertyAnimation::updateCurrentValue(*static_cast(value)); + } else { + static_cast(ptr)->QVariantAnimation::updateCurrentValue(*static_cast(value)); + } +} + +void QVariantAnimation_ConnectValueChanged(void* ptr, long long t) +{ + QObject::connect(static_cast(ptr), static_cast(&QVariantAnimation::valueChanged), static_cast(ptr), static_cast(&MyQVariantAnimation::Signal_ValueChanged), static_cast(t)); +} + +void QVariantAnimation_DisconnectValueChanged(void* ptr) +{ + QObject::disconnect(static_cast(ptr), static_cast(&QVariantAnimation::valueChanged), static_cast(ptr), static_cast(&MyQVariantAnimation::Signal_ValueChanged)); +} + +void QVariantAnimation_ValueChanged(void* ptr, void* value) +{ + static_cast(ptr)->valueChanged(*static_cast(value)); +} + +void QVariantAnimation_DestroyQVariantAnimation(void* ptr) +{ + static_cast(ptr)->~QVariantAnimation(); +} + +void QVariantAnimation_DestroyQVariantAnimationDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QVersionNumber*) +void* QVersionNumber_NewQVersionNumber() +{ + return new QVersionNumber(); +} + +void* QVersionNumber_NewQVersionNumber2(void* seg) +{ + return new QVersionNumber(*static_cast*>(seg)); +} + +void* QVersionNumber_NewQVersionNumber3(void* seg) +{ + return new QVersionNumber(({ QVector* tmpP = static_cast*>(seg); QVector tmpV = *tmpP; tmpP->~QVector(); free(tmpP); tmpV; })); +} + +void* QVersionNumber_NewQVersionNumber5(int maj) +{ + return new QVersionNumber(maj); +} + +void* QVersionNumber_NewQVersionNumber6(int maj, int min) +{ + return new QVersionNumber(maj, min); +} + +void* QVersionNumber_NewQVersionNumber7(int maj, int min, int mic) +{ + return new QVersionNumber(maj, min, mic); +} + +void* QVersionNumber_QVersionNumber_CommonPrefix(void* v1, void* v2) +{ + return new QVersionNumber(QVersionNumber::commonPrefix(*static_cast(v1), *static_cast(v2))); +} + +int QVersionNumber_QVersionNumber_Compare(void* v1, void* v2) +{ + return QVersionNumber::compare(*static_cast(v1), *static_cast(v2)); +} + +void* QVersionNumber_QVersionNumber_FromString(struct QtCore_PackedString stri, int suffixIndex) +{ + return new QVersionNumber(QVersionNumber::fromString(QString::fromUtf8(stri.data, stri.len), &suffixIndex)); +} + +void* QVersionNumber_QVersionNumber_FromString2(void* stri, int suffixIndex) +{ + return new QVersionNumber(QVersionNumber::fromString(*static_cast(stri), &suffixIndex)); +} + +void* QVersionNumber_QVersionNumber_FromString3(void* stri, int suffixIndex) +{ + return new QVersionNumber(QVersionNumber::fromString(*static_cast(stri), &suffixIndex)); +} + +char QVersionNumber_IsNormalized(void* ptr) +{ + return static_cast(ptr)->isNormalized(); +} + +char QVersionNumber_IsNull(void* ptr) +{ + return static_cast(ptr)->isNull(); +} + +char QVersionNumber_IsPrefixOf(void* ptr, void* other) +{ + return static_cast(ptr)->isPrefixOf(*static_cast(other)); +} + +int QVersionNumber_MajorVersion(void* ptr) +{ + return static_cast(ptr)->majorVersion(); +} + +int QVersionNumber_MicroVersion(void* ptr) +{ + return static_cast(ptr)->microVersion(); +} + +int QVersionNumber_MinorVersion(void* ptr) +{ + return static_cast(ptr)->minorVersion(); +} + +void* QVersionNumber_Normalized(void* ptr) +{ + return new QVersionNumber(static_cast(ptr)->normalized()); +} + +int QVersionNumber_SegmentAt(void* ptr, int index) +{ + return static_cast(ptr)->segmentAt(index); +} + +int QVersionNumber_SegmentCount(void* ptr) +{ + return static_cast(ptr)->segmentCount(); +} + +struct QtCore_PackedList QVersionNumber_Segments(void* ptr) +{ + return ({ QVector* tmpValue14199b = new QVector(static_cast(ptr)->segments()); QtCore_PackedList { tmpValue14199b, tmpValue14199b->size() }; }); +} + +struct QtCore_PackedString QVersionNumber_ToString(void* ptr) +{ + return ({ QByteArray* t62e3a8 = new QByteArray(static_cast(ptr)->toString().toUtf8()); QtCore_PackedString { const_cast(t62e3a8->prepend("WHITESPACE").constData()+10), t62e3a8->size()-10, t62e3a8 }; }); +} + +int QVersionNumber___QVersionNumber_seg_atList2(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QVersionNumber___QVersionNumber_seg_setList2(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QVersionNumber___QVersionNumber_seg_newList2(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +int QVersionNumber___QVersionNumber_seg_atList3(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QVersionNumber___QVersionNumber_seg_setList3(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QVersionNumber___QVersionNumber_seg_newList3(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +int QVersionNumber___segments_atList(void* ptr, int i) +{ + return ({int tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); +} + +void QVersionNumber___segments_setList(void* ptr, int i) +{ + static_cast*>(ptr)->append(i); +} + +void* QVersionNumber___segments_newList(void* ptr) +{ + Q_UNUSED(ptr); + return new QVector(); +} + +Q_DECLARE_METATYPE(QWaitCondition*) +void* QWaitCondition_NewQWaitCondition() +{ + return new QWaitCondition(); +} + +void QWaitCondition_Notify_all(void* ptr) +{ + static_cast(ptr)->notify_all(); +} + +void QWaitCondition_Notify_one(void* ptr) +{ + static_cast(ptr)->notify_one(); +} + +char QWaitCondition_Wait(void* ptr, void* lockedMutex, unsigned long ti) +{ + return static_cast(ptr)->wait(static_cast(lockedMutex), ti); +} + +char QWaitCondition_Wait3(void* ptr, void* lockedReadWriteLock, unsigned long ti) +{ + return static_cast(ptr)->wait(static_cast(lockedReadWriteLock), ti); +} + +void QWaitCondition_WakeAll(void* ptr) +{ + static_cast(ptr)->wakeAll(); +} + +void QWaitCondition_WakeOne(void* ptr) +{ + static_cast(ptr)->wakeOne(); +} + +void QWaitCondition_DestroyQWaitCondition(void* ptr) +{ + static_cast(ptr)->~QWaitCondition(); +} + +Q_DECLARE_METATYPE(QWriteLocker*) +void* QWriteLocker_NewQWriteLocker(void* lock) +{ + return new QWriteLocker(static_cast(lock)); +} + +void* QWriteLocker_ReadWriteLock(void* ptr) +{ + return static_cast(ptr)->readWriteLock(); +} + +void QWriteLocker_Relock(void* ptr) +{ + static_cast(ptr)->relock(); +} + +void QWriteLocker_Unlock(void* ptr) +{ + static_cast(ptr)->unlock(); +} + +void QWriteLocker_DestroyQWriteLocker(void* ptr) +{ + static_cast(ptr)->~QWriteLocker(); +} + +Q_DECLARE_METATYPE(QXmlStreamAttribute) +Q_DECLARE_METATYPE(QXmlStreamAttribute*) +void* QXmlStreamAttribute_NewQXmlStreamAttribute() +{ + return new QXmlStreamAttribute(); +} + +void* QXmlStreamAttribute_NewQXmlStreamAttribute2(struct QtCore_PackedString qualifiedName, struct QtCore_PackedString value) +{ + return new QXmlStreamAttribute(QString::fromUtf8(qualifiedName.data, qualifiedName.len), QString::fromUtf8(value.data, value.len)); +} + +void* QXmlStreamAttribute_NewQXmlStreamAttribute3(struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name, struct QtCore_PackedString value) +{ + return new QXmlStreamAttribute(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len), QString::fromUtf8(value.data, value.len)); +} + +void* QXmlStreamAttribute_NewQXmlStreamAttribute4(void* other) +{ + return new QXmlStreamAttribute(*static_cast(other)); +} + +char QXmlStreamAttribute_IsDefault(void* ptr) +{ + return static_cast(ptr)->isDefault(); +} + +void* QXmlStreamAttribute_Name(void* ptr) +{ + return new QStringRef(static_cast(ptr)->name()); +} + +void* QXmlStreamAttribute_NamespaceUri(void* ptr) +{ + return new QStringRef(static_cast(ptr)->namespaceUri()); +} + +void* QXmlStreamAttribute_Prefix(void* ptr) +{ + return new QStringRef(static_cast(ptr)->prefix()); +} + +void* QXmlStreamAttribute_QualifiedName(void* ptr) +{ + return new QStringRef(static_cast(ptr)->qualifiedName()); +} + +void* QXmlStreamAttribute_Value(void* ptr) +{ + return new QStringRef(static_cast(ptr)->value()); +} + +void QXmlStreamAttribute_DestroyQXmlStreamAttribute(void* ptr) +{ + static_cast(ptr)->~QXmlStreamAttribute(); +} + +Q_DECLARE_METATYPE(QXmlStreamAttributes) +Q_DECLARE_METATYPE(QXmlStreamAttributes*) +void* QXmlStreamAttributes_NewQXmlStreamAttributes() +{ + return new QXmlStreamAttributes(); +} + +void QXmlStreamAttributes_Append(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name, struct QtCore_PackedString value) +{ + static_cast(ptr)->append(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len), QString::fromUtf8(value.data, value.len)); +} + +void QXmlStreamAttributes_Append2(void* ptr, struct QtCore_PackedString qualifiedName, struct QtCore_PackedString value) +{ + static_cast(ptr)->append(QString::fromUtf8(qualifiedName.data, qualifiedName.len), QString::fromUtf8(value.data, value.len)); +} + +char QXmlStreamAttributes_HasAttribute(void* ptr, struct QtCore_PackedString qualifiedName) +{ + return static_cast(ptr)->hasAttribute(QString::fromUtf8(qualifiedName.data, qualifiedName.len)); +} + +char QXmlStreamAttributes_HasAttribute2(void* ptr, void* qualifiedName) +{ + return static_cast(ptr)->hasAttribute(*static_cast(qualifiedName)); +} + +char QXmlStreamAttributes_HasAttribute3(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name) +{ + return static_cast(ptr)->hasAttribute(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len)); +} + +void* QXmlStreamAttributes_Value(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name) +{ + return new QStringRef(static_cast(ptr)->value(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len))); +} + +void* QXmlStreamAttributes_Value2(void* ptr, struct QtCore_PackedString namespaceUri, void* name) +{ + return new QStringRef(static_cast(ptr)->value(QString::fromUtf8(namespaceUri.data, namespaceUri.len), *static_cast(name))); +} + +void* QXmlStreamAttributes_Value3(void* ptr, void* namespaceUri, void* name) +{ + return new QStringRef(static_cast(ptr)->value(*static_cast(namespaceUri), *static_cast(name))); +} + +void* QXmlStreamAttributes_Value4(void* ptr, struct QtCore_PackedString qualifiedName) +{ + return new QStringRef(static_cast(ptr)->value(QString::fromUtf8(qualifiedName.data, qualifiedName.len))); +} + +void* QXmlStreamAttributes_Value5(void* ptr, void* qualifiedName) +{ + return new QStringRef(static_cast(ptr)->value(*static_cast(qualifiedName))); +} + +Q_DECLARE_METATYPE(QXmlStreamEntityDeclaration) +Q_DECLARE_METATYPE(QXmlStreamEntityDeclaration*) +void* QXmlStreamEntityDeclaration_NewQXmlStreamEntityDeclaration() +{ + return new QXmlStreamEntityDeclaration(); +} + +void* QXmlStreamEntityDeclaration_NewQXmlStreamEntityDeclaration2(void* other) +{ + return new QXmlStreamEntityDeclaration(*static_cast(other)); +} + +void* QXmlStreamEntityDeclaration_Name(void* ptr) +{ + return new QStringRef(static_cast(ptr)->name()); +} + +void* QXmlStreamEntityDeclaration_NotationName(void* ptr) +{ + return new QStringRef(static_cast(ptr)->notationName()); +} + +void* QXmlStreamEntityDeclaration_PublicId(void* ptr) +{ + return new QStringRef(static_cast(ptr)->publicId()); +} + +void* QXmlStreamEntityDeclaration_SystemId(void* ptr) +{ + return new QStringRef(static_cast(ptr)->systemId()); +} + +void* QXmlStreamEntityDeclaration_Value(void* ptr) +{ + return new QStringRef(static_cast(ptr)->value()); +} + +void QXmlStreamEntityDeclaration_DestroyQXmlStreamEntityDeclaration(void* ptr) +{ + static_cast(ptr)->~QXmlStreamEntityDeclaration(); +} + +class MyQXmlStreamEntityResolver: public QXmlStreamEntityResolver +{ +public: + QString resolveUndeclaredEntity(const QString & name) { QByteArray* t6ae999 = new QByteArray(name.toUtf8()); QtCore_PackedString namePacked = { const_cast(t6ae999->prepend("WHITESPACE").constData()+10), t6ae999->size()-10, t6ae999 };return ({ QtCore_PackedString tempVal = callbackQXmlStreamEntityResolver_ResolveUndeclaredEntity(this, namePacked); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; + ~MyQXmlStreamEntityResolver() { callbackQXmlStreamEntityResolver_DestroyQXmlStreamEntityResolver(this); }; +}; + +Q_DECLARE_METATYPE(QXmlStreamEntityResolver*) +Q_DECLARE_METATYPE(MyQXmlStreamEntityResolver*) + +int QXmlStreamEntityResolver_QXmlStreamEntityResolver_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} + +struct QtCore_PackedString QXmlStreamEntityResolver_ResolveUndeclaredEntity(void* ptr, struct QtCore_PackedString name) +{ + return ({ QByteArray* t961153 = new QByteArray(static_cast(ptr)->resolveUndeclaredEntity(QString::fromUtf8(name.data, name.len)).toUtf8()); QtCore_PackedString { const_cast(t961153->prepend("WHITESPACE").constData()+10), t961153->size()-10, t961153 }; }); +} + +struct QtCore_PackedString QXmlStreamEntityResolver_ResolveUndeclaredEntityDefault(void* ptr, struct QtCore_PackedString name) +{ + return ({ QByteArray* t7ca7f1 = new QByteArray(static_cast(ptr)->QXmlStreamEntityResolver::resolveUndeclaredEntity(QString::fromUtf8(name.data, name.len)).toUtf8()); QtCore_PackedString { const_cast(t7ca7f1->prepend("WHITESPACE").constData()+10), t7ca7f1->size()-10, t7ca7f1 }; }); +} + +void QXmlStreamEntityResolver_DestroyQXmlStreamEntityResolver(void* ptr) +{ + static_cast(ptr)->~QXmlStreamEntityResolver(); +} + +void QXmlStreamEntityResolver_DestroyQXmlStreamEntityResolverDefault(void* ptr) +{ + Q_UNUSED(ptr); + +} + +Q_DECLARE_METATYPE(QXmlStreamNamespaceDeclaration) +Q_DECLARE_METATYPE(QXmlStreamNamespaceDeclaration*) +void* QXmlStreamNamespaceDeclaration_NewQXmlStreamNamespaceDeclaration() +{ + return new QXmlStreamNamespaceDeclaration(); +} + +void* QXmlStreamNamespaceDeclaration_NewQXmlStreamNamespaceDeclaration2(void* other) +{ + return new QXmlStreamNamespaceDeclaration(*static_cast(other)); +} + +void* QXmlStreamNamespaceDeclaration_NewQXmlStreamNamespaceDeclaration4(struct QtCore_PackedString prefix, struct QtCore_PackedString namespaceUri) +{ + return new QXmlStreamNamespaceDeclaration(QString::fromUtf8(prefix.data, prefix.len), QString::fromUtf8(namespaceUri.data, namespaceUri.len)); +} + +void* QXmlStreamNamespaceDeclaration_NamespaceUri(void* ptr) +{ + return new QStringRef(static_cast(ptr)->namespaceUri()); +} + +void* QXmlStreamNamespaceDeclaration_Prefix(void* ptr) +{ + return new QStringRef(static_cast(ptr)->prefix()); +} + +void QXmlStreamNamespaceDeclaration_DestroyQXmlStreamNamespaceDeclaration(void* ptr) +{ + static_cast(ptr)->~QXmlStreamNamespaceDeclaration(); +} + +Q_DECLARE_METATYPE(QXmlStreamNotationDeclaration) +Q_DECLARE_METATYPE(QXmlStreamNotationDeclaration*) +void* QXmlStreamNotationDeclaration_NewQXmlStreamNotationDeclaration() +{ + return new QXmlStreamNotationDeclaration(); +} + +void* QXmlStreamNotationDeclaration_NewQXmlStreamNotationDeclaration2(void* other) +{ + return new QXmlStreamNotationDeclaration(*static_cast(other)); +} + +void* QXmlStreamNotationDeclaration_Name(void* ptr) +{ + return new QStringRef(static_cast(ptr)->name()); +} + +void* QXmlStreamNotationDeclaration_PublicId(void* ptr) +{ + return new QStringRef(static_cast(ptr)->publicId()); +} + +void* QXmlStreamNotationDeclaration_SystemId(void* ptr) +{ + return new QStringRef(static_cast(ptr)->systemId()); +} + +void QXmlStreamNotationDeclaration_DestroyQXmlStreamNotationDeclaration(void* ptr) +{ + static_cast(ptr)->~QXmlStreamNotationDeclaration(); +} + +Q_DECLARE_METATYPE(QXmlStreamReader*) +void* QXmlStreamReader_NewQXmlStreamReader() +{ + return new QXmlStreamReader(); +} + +void* QXmlStreamReader_NewQXmlStreamReader2(void* device) +{ + return new QXmlStreamReader(static_cast(device)); +} + +void* QXmlStreamReader_NewQXmlStreamReader3(void* data) +{ + return new QXmlStreamReader(*static_cast(data)); +} + +void* QXmlStreamReader_NewQXmlStreamReader4(struct QtCore_PackedString data) +{ + return new QXmlStreamReader(QString::fromUtf8(data.data, data.len)); +} + +void* QXmlStreamReader_NewQXmlStreamReader5(char* data) +{ + return new QXmlStreamReader(const_cast(data)); +} + +void QXmlStreamReader_AddData(void* ptr, void* data) +{ + static_cast(ptr)->addData(*static_cast(data)); +} + +void QXmlStreamReader_AddData2(void* ptr, struct QtCore_PackedString data) +{ + static_cast(ptr)->addData(QString::fromUtf8(data.data, data.len)); +} + +void QXmlStreamReader_AddData3(void* ptr, char* data) +{ + static_cast(ptr)->addData(const_cast(data)); +} + +void QXmlStreamReader_AddExtraNamespaceDeclaration(void* ptr, void* extraNamespaceDeclaration) +{ + static_cast(ptr)->addExtraNamespaceDeclaration(*static_cast(extraNamespaceDeclaration)); +} + +char QXmlStreamReader_AtEnd(void* ptr) +{ + return static_cast(ptr)->atEnd(); +} + +long long QXmlStreamReader_CharacterOffset(void* ptr) +{ + return static_cast(ptr)->characterOffset(); +} + +void QXmlStreamReader_Clear(void* ptr) +{ + static_cast(ptr)->clear(); +} + +long long QXmlStreamReader_ColumnNumber(void* ptr) +{ + return static_cast(ptr)->columnNumber(); +} + +void* QXmlStreamReader_Device(void* ptr) +{ + return static_cast(ptr)->device(); +} + +void* QXmlStreamReader_DocumentEncoding(void* ptr) +{ + return new QStringRef(static_cast(ptr)->documentEncoding()); +} + +void* QXmlStreamReader_DocumentVersion(void* ptr) +{ + return new QStringRef(static_cast(ptr)->documentVersion()); +} + +void* QXmlStreamReader_DtdName(void* ptr) +{ + return new QStringRef(static_cast(ptr)->dtdName()); +} + +void* QXmlStreamReader_DtdPublicId(void* ptr) +{ + return new QStringRef(static_cast(ptr)->dtdPublicId()); +} + +void* QXmlStreamReader_DtdSystemId(void* ptr) +{ + return new QStringRef(static_cast(ptr)->dtdSystemId()); +} + +void* QXmlStreamReader_EntityResolver(void* ptr) +{ + return static_cast(ptr)->entityResolver(); +} + +long long QXmlStreamReader_Error(void* ptr) +{ + return static_cast(ptr)->error(); +} + +struct QtCore_PackedString QXmlStreamReader_ErrorString(void* ptr) +{ + return ({ QByteArray* td9cec5 = new QByteArray(static_cast(ptr)->errorString().toUtf8()); QtCore_PackedString { const_cast(td9cec5->prepend("WHITESPACE").constData()+10), td9cec5->size()-10, td9cec5 }; }); +} + +char QXmlStreamReader_HasError(void* ptr) +{ + return static_cast(ptr)->hasError(); +} + +char QXmlStreamReader_IsCDATA(void* ptr) +{ + return static_cast(ptr)->isCDATA(); +} + +char QXmlStreamReader_IsCharacters(void* ptr) +{ + return static_cast(ptr)->isCharacters(); +} + +char QXmlStreamReader_IsComment(void* ptr) +{ + return static_cast(ptr)->isComment(); +} + +char QXmlStreamReader_IsDTD(void* ptr) +{ + return static_cast(ptr)->isDTD(); +} + +char QXmlStreamReader_IsEndDocument(void* ptr) +{ + return static_cast(ptr)->isEndDocument(); +} + +char QXmlStreamReader_IsEndElement(void* ptr) +{ + return static_cast(ptr)->isEndElement(); +} + +char QXmlStreamReader_IsEntityReference(void* ptr) +{ + return static_cast(ptr)->isEntityReference(); +} + +char QXmlStreamReader_IsProcessingInstruction(void* ptr) +{ + return static_cast(ptr)->isProcessingInstruction(); +} + +char QXmlStreamReader_IsStandaloneDocument(void* ptr) +{ + return static_cast(ptr)->isStandaloneDocument(); +} + +char QXmlStreamReader_IsStartDocument(void* ptr) +{ + return static_cast(ptr)->isStartDocument(); +} + +char QXmlStreamReader_IsStartElement(void* ptr) +{ + return static_cast(ptr)->isStartElement(); +} + +char QXmlStreamReader_IsWhitespace(void* ptr) +{ + return static_cast(ptr)->isWhitespace(); +} + +long long QXmlStreamReader_LineNumber(void* ptr) +{ + return static_cast(ptr)->lineNumber(); +} + +void* QXmlStreamReader_Name(void* ptr) +{ + return new QStringRef(static_cast(ptr)->name()); +} + +char QXmlStreamReader_NamespaceProcessing(void* ptr) +{ + return static_cast(ptr)->namespaceProcessing(); +} + +void* QXmlStreamReader_NamespaceUri(void* ptr) +{ + return new QStringRef(static_cast(ptr)->namespaceUri()); +} + +void* QXmlStreamReader_Prefix(void* ptr) +{ + return new QStringRef(static_cast(ptr)->prefix()); +} + +void* QXmlStreamReader_ProcessingInstructionData(void* ptr) +{ + return new QStringRef(static_cast(ptr)->processingInstructionData()); +} + +void* QXmlStreamReader_ProcessingInstructionTarget(void* ptr) +{ + return new QStringRef(static_cast(ptr)->processingInstructionTarget()); +} + +void* QXmlStreamReader_QualifiedName(void* ptr) +{ + return new QStringRef(static_cast(ptr)->qualifiedName()); +} + +void QXmlStreamReader_RaiseError(void* ptr, struct QtCore_PackedString message) +{ + static_cast(ptr)->raiseError(QString::fromUtf8(message.data, message.len)); +} + +struct QtCore_PackedString QXmlStreamReader_ReadElementText(void* ptr, long long behaviour) +{ + return ({ QByteArray* tbe9d44 = new QByteArray(static_cast(ptr)->readElementText(static_cast(behaviour)).toUtf8()); QtCore_PackedString { const_cast(tbe9d44->prepend("WHITESPACE").constData()+10), tbe9d44->size()-10, tbe9d44 }; }); +} + +long long QXmlStreamReader_ReadNext(void* ptr) +{ + return static_cast(ptr)->readNext(); +} + +char QXmlStreamReader_ReadNextStartElement(void* ptr) +{ + return static_cast(ptr)->readNextStartElement(); +} + +void QXmlStreamReader_SetDevice(void* ptr, void* device) +{ + static_cast(ptr)->setDevice(static_cast(device)); +} + +void QXmlStreamReader_SetEntityResolver(void* ptr, void* resolver) +{ + static_cast(ptr)->setEntityResolver(static_cast(resolver)); +} + +void QXmlStreamReader_SetNamespaceProcessing(void* ptr, char vbo) +{ + static_cast(ptr)->setNamespaceProcessing(vbo != 0); +} + +void QXmlStreamReader_SkipCurrentElement(void* ptr) +{ + static_cast(ptr)->skipCurrentElement(); +} + +void* QXmlStreamReader_Text(void* ptr) +{ + return new QStringRef(static_cast(ptr)->text()); +} + +struct QtCore_PackedString QXmlStreamReader_TokenString(void* ptr) +{ + return ({ QByteArray* t5e8d05 = new QByteArray(static_cast(ptr)->tokenString().toUtf8()); QtCore_PackedString { const_cast(t5e8d05->prepend("WHITESPACE").constData()+10), t5e8d05->size()-10, t5e8d05 }; }); +} + +long long QXmlStreamReader_TokenType(void* ptr) +{ + return static_cast(ptr)->tokenType(); +} + +void QXmlStreamReader_DestroyQXmlStreamReader(void* ptr) +{ + static_cast(ptr)->~QXmlStreamReader(); +} + +Q_DECLARE_METATYPE(QXmlStreamWriter*) +void* QXmlStreamWriter_NewQXmlStreamWriter() +{ + return new QXmlStreamWriter(); +} + +void* QXmlStreamWriter_NewQXmlStreamWriter2(void* device) +{ + return new QXmlStreamWriter(static_cast(device)); +} + +void* QXmlStreamWriter_NewQXmlStreamWriter3(void* array) +{ + return new QXmlStreamWriter(static_cast(array)); +} + +void* QXmlStreamWriter_NewQXmlStreamWriter4(struct QtCore_PackedString stri) +{ + return new QXmlStreamWriter(new QString(QString::fromUtf8(stri.data, stri.len))); +} + +char QXmlStreamWriter_AutoFormatting(void* ptr) +{ + return static_cast(ptr)->autoFormatting(); +} + +int QXmlStreamWriter_AutoFormattingIndent(void* ptr) +{ + return static_cast(ptr)->autoFormattingIndent(); +} + +void* QXmlStreamWriter_Codec(void* ptr) +{ + return static_cast(ptr)->codec(); +} + +void* QXmlStreamWriter_Device(void* ptr) +{ + return static_cast(ptr)->device(); +} + +char QXmlStreamWriter_HasError(void* ptr) +{ + return static_cast(ptr)->hasError(); +} + +void QXmlStreamWriter_SetAutoFormatting(void* ptr, char enable) +{ + static_cast(ptr)->setAutoFormatting(enable != 0); +} + +void QXmlStreamWriter_SetAutoFormattingIndent(void* ptr, int spacesOrTabs) +{ + static_cast(ptr)->setAutoFormattingIndent(spacesOrTabs); +} + +void QXmlStreamWriter_SetCodec(void* ptr, void* codec) +{ + static_cast(ptr)->setCodec(static_cast(codec)); +} + +void QXmlStreamWriter_SetCodec2(void* ptr, char* codecName) +{ + static_cast(ptr)->setCodec(const_cast(codecName)); +} + +void QXmlStreamWriter_SetDevice(void* ptr, void* device) +{ + static_cast(ptr)->setDevice(static_cast(device)); +} + +void QXmlStreamWriter_WriteAttribute(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name, struct QtCore_PackedString value) +{ + static_cast(ptr)->writeAttribute(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len), QString::fromUtf8(value.data, value.len)); +} + +void QXmlStreamWriter_WriteAttribute2(void* ptr, struct QtCore_PackedString qualifiedName, struct QtCore_PackedString value) +{ + static_cast(ptr)->writeAttribute(QString::fromUtf8(qualifiedName.data, qualifiedName.len), QString::fromUtf8(value.data, value.len)); +} + +void QXmlStreamWriter_WriteAttribute3(void* ptr, void* attribute) +{ + static_cast(ptr)->writeAttribute(*static_cast(attribute)); +} + +void QXmlStreamWriter_WriteAttributes(void* ptr, void* attributes) +{ + static_cast(ptr)->writeAttributes(*static_cast(attributes)); +} + +void QXmlStreamWriter_WriteCDATA(void* ptr, struct QtCore_PackedString text) +{ + static_cast(ptr)->writeCDATA(QString::fromUtf8(text.data, text.len)); +} + +void QXmlStreamWriter_WriteCharacters(void* ptr, struct QtCore_PackedString text) +{ + static_cast(ptr)->writeCharacters(QString::fromUtf8(text.data, text.len)); +} + +void QXmlStreamWriter_WriteComment(void* ptr, struct QtCore_PackedString text) +{ + static_cast(ptr)->writeComment(QString::fromUtf8(text.data, text.len)); +} + +void QXmlStreamWriter_WriteCurrentToken(void* ptr, void* reader) +{ + static_cast(ptr)->writeCurrentToken(*static_cast(reader)); +} + +void QXmlStreamWriter_WriteDTD(void* ptr, struct QtCore_PackedString dtd) +{ + static_cast(ptr)->writeDTD(QString::fromUtf8(dtd.data, dtd.len)); +} + +void QXmlStreamWriter_WriteDefaultNamespace(void* ptr, struct QtCore_PackedString namespaceUri) +{ + static_cast(ptr)->writeDefaultNamespace(QString::fromUtf8(namespaceUri.data, namespaceUri.len)); +} + +void QXmlStreamWriter_WriteEmptyElement(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name) +{ + static_cast(ptr)->writeEmptyElement(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len)); +} + +void QXmlStreamWriter_WriteEmptyElement2(void* ptr, struct QtCore_PackedString qualifiedName) +{ + static_cast(ptr)->writeEmptyElement(QString::fromUtf8(qualifiedName.data, qualifiedName.len)); +} + +void QXmlStreamWriter_WriteEndDocument(void* ptr) +{ + static_cast(ptr)->writeEndDocument(); +} + +void QXmlStreamWriter_WriteEndElement(void* ptr) +{ + static_cast(ptr)->writeEndElement(); +} + +void QXmlStreamWriter_WriteEntityReference(void* ptr, struct QtCore_PackedString name) +{ + static_cast(ptr)->writeEntityReference(QString::fromUtf8(name.data, name.len)); +} + +void QXmlStreamWriter_WriteNamespace(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString prefix) +{ + static_cast(ptr)->writeNamespace(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(prefix.data, prefix.len)); +} + +void QXmlStreamWriter_WriteProcessingInstruction(void* ptr, struct QtCore_PackedString target, struct QtCore_PackedString data) +{ + static_cast(ptr)->writeProcessingInstruction(QString::fromUtf8(target.data, target.len), QString::fromUtf8(data.data, data.len)); +} + +void QXmlStreamWriter_WriteStartDocument(void* ptr, struct QtCore_PackedString version) +{ + static_cast(ptr)->writeStartDocument(QString::fromUtf8(version.data, version.len)); +} + +void QXmlStreamWriter_WriteStartDocument2(void* ptr) +{ + static_cast(ptr)->writeStartDocument(); +} + +void QXmlStreamWriter_WriteStartDocument3(void* ptr, struct QtCore_PackedString version, char standalone) +{ + static_cast(ptr)->writeStartDocument(QString::fromUtf8(version.data, version.len), standalone != 0); +} + +void QXmlStreamWriter_WriteStartElement(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name) +{ + static_cast(ptr)->writeStartElement(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len)); +} + +void QXmlStreamWriter_WriteStartElement2(void* ptr, struct QtCore_PackedString qualifiedName) +{ + static_cast(ptr)->writeStartElement(QString::fromUtf8(qualifiedName.data, qualifiedName.len)); +} + +void QXmlStreamWriter_WriteTextElement(void* ptr, struct QtCore_PackedString namespaceUri, struct QtCore_PackedString name, struct QtCore_PackedString text) +{ + static_cast(ptr)->writeTextElement(QString::fromUtf8(namespaceUri.data, namespaceUri.len), QString::fromUtf8(name.data, name.len), QString::fromUtf8(text.data, text.len)); +} + +void QXmlStreamWriter_WriteTextElement2(void* ptr, struct QtCore_PackedString qualifiedName, struct QtCore_PackedString text) +{ + static_cast(ptr)->writeTextElement(QString::fromUtf8(qualifiedName.data, qualifiedName.len), QString::fromUtf8(text.data, text.len)); +} + +void QXmlStreamWriter_DestroyQXmlStreamWriter(void* ptr) +{ + static_cast(ptr)->~QXmlStreamWriter(); +} + +int Qt_LastGestureType_Type() +{ + return Qt::LastGestureType; +} + +struct QtCore_PackedString Qt_Qt_ConvertFromPlainText(struct QtCore_PackedString plain, long long mode) +{ + return ({ QByteArray* t896db1 = new QByteArray(Qt::convertFromPlainText(QString::fromUtf8(plain.data, plain.len), static_cast(mode)).toUtf8()); QtCore_PackedString { const_cast(t896db1->prepend("WHITESPACE").constData()+10), t896db1->size()-10, t896db1 }; }); +} + +char Qt_Qt_MightBeRichText(struct QtCore_PackedString text) +{ + return Qt::mightBeRichText(QString::fromUtf8(text.data, text.len)); +} + +struct QtCore_PackedString QtGlobal_QtGlobal_qEnvironmentVariable(char* varName) +{ + return ({ QByteArray* t239d80 = new QByteArray(qEnvironmentVariable(const_cast(varName)).toUtf8()); QtCore_PackedString { const_cast(t239d80->prepend("WHITESPACE").constData()+10), t239d80->size()-10, t239d80 }; }); +} + +struct QtCore_PackedString QtGlobal_QtGlobal_qEnvironmentVariable2(char* varName, struct QtCore_PackedString defaultValue) +{ + return ({ QByteArray* t422112 = new QByteArray(qEnvironmentVariable(const_cast(varName), QString::fromUtf8(defaultValue.data, defaultValue.len)).toUtf8()); QtCore_PackedString { const_cast(t422112->prepend("WHITESPACE").constData()+10), t422112->size()-10, t422112 }; }); +} + +int QtGlobal_QtGlobal_qEnvironmentVariableIntValue(char* varName, char* ok) +{ + return qEnvironmentVariableIntValue(const_cast(varName), reinterpret_cast(ok)); +} + +char QtGlobal_QtGlobal_qEnvironmentVariableIsEmpty(char* varName) +{ + return qEnvironmentVariableIsEmpty(const_cast(varName)); +} + +char QtGlobal_QtGlobal_qEnvironmentVariableIsSet(char* varName) +{ + return qEnvironmentVariableIsSet(const_cast(varName)); +} + +struct QtCore_PackedString QtGlobal_QtGlobal_qVersion() +{ + return QtCore_PackedString { const_cast(qVersion()), -1, NULL }; +} + +void* QtGlobal_QtGlobal_qgetenv(char* varName) +{ + return new QByteArray(qgetenv(const_cast(varName))); +} + +char QtGlobal_QtGlobal_qputenv(char* varName, void* value) +{ + return qputenv(const_cast(varName), *static_cast(value)); +} + +char QtGlobal_QtGlobal_qunsetenv(char* varName) +{ + return qunsetenv(const_cast(varName)); +} + diff --git a/core/core.go b/core/core.go index c3612eb09..f3c720cc3 100644 --- a/core/core.go +++ b/core/core.go @@ -3,9 +3,7 @@ package core import ( - "github.com/therecipe/qt" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/interop/gow" + "github.com/bluszcz/cutego" "math" "reflect" "runtime" diff --git a/datavisualization/datavisualization.go b/datavisualization/datavisualization.go index 4e03d39d8..5c44d4be5 100644 --- a/datavisualization/datavisualization.go +++ b/datavisualization/datavisualization.go @@ -3,9 +3,10 @@ package datavisualization import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "strings" "unsafe" ) diff --git a/dbus/dbus.go b/dbus/dbus.go index 4a58c650d..7bead1e09 100644 --- a/dbus/dbus.go +++ b/dbus/dbus.go @@ -3,8 +3,9 @@ package dbus import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/designer/designer.go b/designer/designer.go index e439c3817..dba188597 100644 --- a/designer/designer.go +++ b/designer/designer.go @@ -3,10 +3,11 @@ package designer import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/felgo/felgo.go b/felgo/felgo.go index fc0fa08e0..53cd15f22 100644 --- a/felgo/felgo.go +++ b/felgo/felgo.go @@ -8,9 +8,9 @@ package felgo //#include "felgo.h" import "C" import ( - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" "runtime" "strings" "unsafe" diff --git a/flutter/embedder.go b/flutter/embedder.go index 632c7f442..afd08c0ad 100644 --- a/flutter/embedder.go +++ b/flutter/embedder.go @@ -48,7 +48,7 @@ import ( "time" "unsafe" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) func FlutterEngineRun() { diff --git a/flutter/widget.go b/flutter/widget.go index cba051444..818e27f4f 100644 --- a/flutter/widget.go +++ b/flutter/widget.go @@ -11,12 +11,12 @@ import ( "time" "unsafe" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" - "github.com/therecipe/qt/interop" - _ "github.com/therecipe/qt/interop/dart" + "github.com/bluszcz/cutego/interop" + _ "github.com/bluszcz/cutego/interop/dart" ) var ( diff --git a/gamepad/gamepad.go b/gamepad/gamepad.go index 44dfdcbcc..42de34c4b 100644 --- a/gamepad/gamepad.go +++ b/gamepad/gamepad.go @@ -3,8 +3,9 @@ package gamepad import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/go.mod b/go.mod index fa25889fd..483cc2512 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/therecipe/qt +module github.com/bluszcz/cutego require ( github.com/gopherjs/gopherjs v0.0.0-20190411002643-bd77b112433e diff --git a/gui/gui.go b/gui/gui.go index 34bb43fbd..6b141f258 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -3,9 +3,10 @@ package gui import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/interop/gow" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + _ "github.com/bluszcz/cutego/internal/binding/runtime" + "strings" "unsafe" ) diff --git a/help/help.go b/help/help.go index 3d0a80a56..d23e463a5 100644 --- a/help/help.go +++ b/help/help.go @@ -3,10 +3,11 @@ package help import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/internal/binding/converter/body_input_cpp.go b/internal/binding/converter/body_input_cpp.go index 825ce2198..6349314ae 100644 --- a/internal/binding/converter/body_input_cpp.go +++ b/internal/binding/converter/body_input_cpp.go @@ -6,8 +6,8 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func CppInputParameters(function *parser.Function) string { diff --git a/internal/binding/converter/body_input_go.go b/internal/binding/converter/body_input_go.go index 8aa9c5978..d41f2e270 100644 --- a/internal/binding/converter/body_input_go.go +++ b/internal/binding/converter/body_input_go.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func GoInputParametersForC(function *parser.Function) string { diff --git a/internal/binding/converter/body_output_cpp.go b/internal/binding/converter/body_output_cpp.go index 633b8da5c..89cb0df38 100644 --- a/internal/binding/converter/body_output_cpp.go +++ b/internal/binding/converter/body_output_cpp.go @@ -3,7 +3,7 @@ package converter import ( "fmt" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func CppOutputParameters(function *parser.Function, name string) string { diff --git a/internal/binding/converter/body_output_go.go b/internal/binding/converter/body_output_go.go index 6c5164702..9aac4c08d 100644 --- a/internal/binding/converter/body_output_go.go +++ b/internal/binding/converter/body_output_go.go @@ -1,6 +1,6 @@ package converter -import "github.com/therecipe/qt/internal/binding/parser" +import "github.com/bluszcz/cutego/internal/binding/parser" func GoOutputParametersFromC(function *parser.Function, name string) string { if function.Meta == parser.CONSTRUCTOR { diff --git a/internal/binding/converter/enum.go b/internal/binding/converter/enum.go index 2ac06ec39..48fdfd83d 100644 --- a/internal/binding/converter/enum.go +++ b/internal/binding/converter/enum.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func EnumNeedsCppGlue(value string) bool { diff --git a/internal/binding/converter/header.go b/internal/binding/converter/header.go index ce286a369..0fd5d8b40 100644 --- a/internal/binding/converter/header.go +++ b/internal/binding/converter/header.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func GoHeaderName(f *parser.Function) string { diff --git a/internal/binding/converter/helper.go b/internal/binding/converter/helper.go index 6f4806646..ba24312ba 100644 --- a/internal/binding/converter/helper.go +++ b/internal/binding/converter/helper.go @@ -9,8 +9,8 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func module(input interface{}) string { diff --git a/internal/binding/converter/input.go b/internal/binding/converter/input.go index 153a3b944..7365ae1b3 100644 --- a/internal/binding/converter/input.go +++ b/internal/binding/converter/input.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func GoInput(name, value string, f *parser.Function, p string) string { diff --git a/internal/binding/converter/output.go b/internal/binding/converter/output.go index 22824a70d..3e2aff8bd 100644 --- a/internal/binding/converter/output.go +++ b/internal/binding/converter/output.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func GoOutput(name, value string, f *parser.Function, p string) string { diff --git a/internal/binding/converter/type.go b/internal/binding/converter/type.go index 6ddbf3701..91a56cc52 100644 --- a/internal/binding/converter/type.go +++ b/internal/binding/converter/type.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func GoType(f *parser.Function, value string, p string) string { return goType(f, value, p) } diff --git a/internal/binding/files/docs/5.10.0/go.mod b/internal/binding/files/docs/5.10.0/go.mod index ddd22893d..35b90e128 100644 --- a/internal/binding/files/docs/5.10.0/go.mod +++ b/internal/binding/files/docs/5.10.0/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.10.0 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.10.0 diff --git a/internal/binding/files/docs/5.11.1/go.mod b/internal/binding/files/docs/5.11.1/go.mod index 4a332fbc1..f7bcd7a8a 100644 --- a/internal/binding/files/docs/5.11.1/go.mod +++ b/internal/binding/files/docs/5.11.1/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.11.1 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.11.1 diff --git a/internal/binding/files/docs/5.12.0/go.mod b/internal/binding/files/docs/5.12.0/go.mod index 4e29ba227..4caa2b112 100644 --- a/internal/binding/files/docs/5.12.0/go.mod +++ b/internal/binding/files/docs/5.12.0/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.12.0 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.12.0 diff --git a/internal/binding/files/docs/5.13.0/go.mod b/internal/binding/files/docs/5.13.0/go.mod index 77ec476ee..c390fc22e 100644 --- a/internal/binding/files/docs/5.13.0/go.mod +++ b/internal/binding/files/docs/5.13.0/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.13.0 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.13.0 diff --git a/internal/binding/files/docs/5.6.3/go.mod b/internal/binding/files/docs/5.6.3/go.mod index e50d6a5f6..151a48c55 100644 --- a/internal/binding/files/docs/5.6.3/go.mod +++ b/internal/binding/files/docs/5.6.3/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.6.3 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.6.3 diff --git a/internal/binding/files/docs/5.7.0/go.mod b/internal/binding/files/docs/5.7.0/go.mod index 24e4e897e..66fe47005 100644 --- a/internal/binding/files/docs/5.7.0/go.mod +++ b/internal/binding/files/docs/5.7.0/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.7.0 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.7.0 diff --git a/internal/binding/files/docs/5.7.1/go.mod b/internal/binding/files/docs/5.7.1/go.mod index 9c6876192..9b71f37dc 100644 --- a/internal/binding/files/docs/5.7.1/go.mod +++ b/internal/binding/files/docs/5.7.1/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.7.1 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.7.1 diff --git a/internal/binding/files/docs/5.8.0/go.mod b/internal/binding/files/docs/5.8.0/go.mod index 71eb7483c..ff8f99aae 100644 --- a/internal/binding/files/docs/5.8.0/go.mod +++ b/internal/binding/files/docs/5.8.0/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.8.0 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.8.0 diff --git a/internal/binding/files/docs/5.9.0/go.mod b/internal/binding/files/docs/5.9.0/go.mod index 6677c5aa6..02e1aa03c 100644 --- a/internal/binding/files/docs/5.9.0/go.mod +++ b/internal/binding/files/docs/5.9.0/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/binding/files/docs/5.9.0 +module github.com/StarAurryon/qt/internal/binding/files/docs/5.9.0 diff --git a/internal/binding/files/docs/mod.go b/internal/binding/files/docs/mod.go index e974c449a..8bdf0fbbf 100644 --- a/internal/binding/files/docs/mod.go +++ b/internal/binding/files/docs/mod.go @@ -1,6 +1,6 @@ package docs import ( - _ "github.com/therecipe/qt/internal/binding/files/docs/5.12.0" - _ "github.com/therecipe/qt/internal/binding/files/docs/5.13.0" + _ "github.com/bluszcz/cutego/internal/binding/files/docs/5.12.0" + _ "github.com/bluszcz/cutego/internal/binding/files/docs/5.13.0" ) diff --git a/internal/binding/files/utils-androidextras_android.go b/internal/binding/files/utils-androidextras_android.go index e47deb3d3..349644aa9 100644 --- a/internal/binding/files/utils-androidextras_android.go +++ b/internal/binding/files/utils-androidextras_android.go @@ -5,7 +5,7 @@ import ( "strings" "unsafe" - "github.com/therecipe/qt" + "github.com/bluszcz/cutego" ) func assertion(key int, input ...interface{}) (unsafe.Pointer, func()) { diff --git a/internal/binding/files/utils-qml.go b/internal/binding/files/utils-qml.go index a8b269c5d..f453d676c 100644 --- a/internal/binding/files/utils-qml.go +++ b/internal/binding/files/utils-qml.go @@ -10,8 +10,8 @@ import ( "sync" "unsafe" - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" ) var ( diff --git a/internal/binding/files/utils-runtime.go b/internal/binding/files/utils-runtime.go index b86667fe9..17eca507a 100644 --- a/internal/binding/files/utils-runtime.go +++ b/internal/binding/files/utils-runtime.go @@ -1,8 +1,8 @@ package runtime import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" ) func init() { diff --git a/internal/binding/parser/class.go b/internal/binding/parser/class.go index ded90d8fe..d9195e51f 100644 --- a/internal/binding/parser/class.go +++ b/internal/binding/parser/class.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) type Class struct { diff --git a/internal/binding/parser/class_add.go b/internal/binding/parser/class_add.go index de34ad93d..25ad194b0 100644 --- a/internal/binding/parser/class_add.go +++ b/internal/binding/parser/class_add.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func (c *Class) add() { diff --git a/internal/binding/parser/class_fix.go b/internal/binding/parser/class_fix.go index ba32539c5..d165922af 100644 --- a/internal/binding/parser/class_fix.go +++ b/internal/binding/parser/class_fix.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func (c *Class) fix() { diff --git a/internal/binding/parser/function.go b/internal/binding/parser/function.go index cb5a086d8..43dd343b0 100644 --- a/internal/binding/parser/function.go +++ b/internal/binding/parser/function.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) type Function struct { diff --git a/internal/binding/parser/function_fix.go b/internal/binding/parser/function_fix.go index bc9ac37f7..ee89a6db0 100644 --- a/internal/binding/parser/function_fix.go +++ b/internal/binding/parser/function_fix.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func (f *Function) fix() { diff --git a/internal/binding/parser/helper.go b/internal/binding/parser/helper.go index 288ff2339..f9321c8d4 100644 --- a/internal/binding/parser/helper.go +++ b/internal/binding/parser/helper.go @@ -9,8 +9,8 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) const ( diff --git a/internal/binding/parser/module.go b/internal/binding/parser/module.go index 166e3e6bb..8e1b4f65f 100644 --- a/internal/binding/parser/module.go +++ b/internal/binding/parser/module.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) type Module struct { diff --git a/internal/binding/parser/parser.go b/internal/binding/parser/parser.go index 91d0f2e81..38d457661 100644 --- a/internal/binding/parser/parser.go +++ b/internal/binding/parser/parser.go @@ -9,7 +9,7 @@ import ( "github.com/sirupsen/logrus" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) var State = &struct { @@ -106,10 +106,10 @@ func LoadModule(m string) *Module { var err error switch { case utils.QT_WEBKIT() && m == "WebKit": - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/5.8.0", "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/5.8.0", "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) case utils.QT_FELGO() && m == "Felgo": - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/5.12.0", "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/5.12.0", "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) case utils.QT_MXE(), utils.QT_HOMEBREW(), @@ -118,22 +118,22 @@ func LoadModule(m string) *Module { utils.QT_UBPORTS_VERSION() == "xenial", utils.QT_SAILFISH(), utils.QT_RPI(): - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) case utils.QT_PKG_CONFIG(): if utils.QT_API("") != "" { - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) } else { err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(utils.QT_DOC_DIR(), fmt.Sprintf("qt%v", strings.ToLower(m)), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) if err != nil { utils.Log.WithFields(logFields).Debug("falling back to bundled *.index files") - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API("5.13.0"), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API("5.13.0"), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) } } default: if utils.QT_API("") != "" { - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) } else { path := filepath.Join(utils.QT_DIR(), "Docs", fmt.Sprintf("Qt-%v", utils.QT_VERSION_MAJOR()), fmt.Sprintf("qt%v", strings.ToLower(m)), fmt.Sprintf("qt%v.index", strings.ToLower(m))) if !utils.ExistsDir(filepath.Join(utils.QT_DIR(), "Docs", fmt.Sprintf("Qt-%v", utils.QT_VERSION_MAJOR()))) { @@ -142,7 +142,7 @@ func LoadModule(m string) *Module { err = xml.Unmarshal([]byte(utils.LoadOptional(path)), &module) if err != nil { utils.Log.WithFields(logFields).Debug("falling back to bundled *.index files") - err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) + err = xml.Unmarshal([]byte(utils.LoadOptional(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION()), "-find", "get doc dir")), fmt.Sprintf("qt%v.index", strings.ToLower(m))))), &module) } } } diff --git a/internal/binding/runtime/utils-runtime.go b/internal/binding/runtime/utils-runtime.go index b86667fe9..17eca507a 100644 --- a/internal/binding/runtime/utils-runtime.go +++ b/internal/binding/runtime/utils-runtime.go @@ -1,8 +1,8 @@ package runtime import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" ) func init() { diff --git a/internal/binding/templater/enum_cpp.go b/internal/binding/templater/enum_cpp.go index b69f9191d..3be90503f 100644 --- a/internal/binding/templater/enum_cpp.go +++ b/internal/binding/templater/enum_cpp.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func cppEnum(e *parser.Enum, v *parser.Value) string { diff --git a/internal/binding/templater/enum_go.go b/internal/binding/templater/enum_go.go index 5b6cd4be1..3794a62f8 100644 --- a/internal/binding/templater/enum_go.go +++ b/internal/binding/templater/enum_go.go @@ -5,9 +5,10 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" + ) func goEnum(e *parser.Enum, _ *parser.Value) string { diff --git a/internal/binding/templater/function_cpp.go b/internal/binding/templater/function_cpp.go index fe59d2023..e56df6ebe 100644 --- a/internal/binding/templater/function_cpp.go +++ b/internal/binding/templater/function_cpp.go @@ -7,9 +7,9 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func cppFunctionCallback(function *parser.Function) string { diff --git a/internal/binding/templater/function_go.go b/internal/binding/templater/function_go.go index 5e3e382d6..0a8da628e 100644 --- a/internal/binding/templater/function_go.go +++ b/internal/binding/templater/function_go.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func goFunction(function *parser.Function) string { @@ -389,17 +389,27 @@ func goFunctionBody(function *parser.Function) string { } fmt.Fprint(bb, func() string { if function.IsMocFunction && function.SignalMode == "" { - for i, p := range function.Parameters { + for _, p := range function.Parameters { if p.PureGoType != "" && !(p.Value == "QMap" || p.Value == "QList") && !parser.IsBlackListedPureGoType(p.PureGoType) { - if !parser.UseWasm() { - if parser.UseJs() { //TODO: this is potentially broken (mono time), does js still need this ? - fmt.Fprintf(bb, "%vTID := (time.Now().UnixNano()-((time.Now().UnixNano()/1e10)*1e10))+(time.Now().UnixNano()/1e10)+(%v*1e5)\n", parser.CleanName(p.Name, p.Value), i) - } else { - fmt.Fprintf(bb, "%[1]vTID := time.Now().UnixNano()+int64(uintptr(unsafe.Pointer(&%[1]v)))\n", parser.CleanName(p.Name, p.Value)) - } - fmt.Fprintf(bb, "qt.RegisterTemp(unsafe.Pointer(uintptr(%[1]vTID)), unsafe.Pointer(&%[1]v))\n", parser.CleanName(p.Name, p.Value)) - } else { //TODO: does wasm need "unsafe" pointer arithmetic ? - fmt.Fprintf(bb, "qt.RegisterTemp(unsafe.Pointer(&%[1]v), unsafe.Pointer(&%[1]v))\n", parser.CleanName(p.Name, p.Value)) + if !parser.UseWasm() { //TODO: does wasm need "unsafe" pointer arithmetic ? + fmt.Fprintf(bb, "%vTID := rand.New(rand.NewSource(time.Now().UnixNano())).Int63()\n", parser.CleanName(p.Name, p.Value)) + fmt.Fprintf(bb, "qt.RegisterTemp(unsafe.Pointer(uintptr(%[2]vTID)), unsafe.Pointer(%[1]v%[2]v))\n", + func() string { + if !strings.HasPrefix(p.PureGoType, "*") { + return "&" + } + return "" + }(), + parser.CleanName(p.Name, p.Value)) + } else { + fmt.Fprintf(bb, "qt.RegisterTemp(unsafe.Pointer(%[1]v%[2]v), unsafe.Pointer(%[1]v%[2]v))\n", + func() string { + if !strings.HasPrefix(p.PureGoType, "*") { + return "&" + } + return "" + }(), + parser.CleanName(p.Name, p.Value)) } } } @@ -586,7 +596,11 @@ func goFunctionBody(function *parser.Function) string { if !strings.HasSuffix(function.Name, "Changed") { //TODO: check if property instead fmt.Fprintf(bb, "qt.UnregisterTemp(unsafe.Pointer(uintptr(%v)))\n", parser.CleanName(p.Name, p.Value)) } - fmt.Fprintf(bb, "%[1]vD = (*(*%v)(%[1]vI))\n", parser.CleanName(p.Name, p.Value), p.PureGoType) + if strings.HasPrefix(p.PureGoType, "*") { + fmt.Fprintf(bb, "%[1]vD = (%v)(%[1]vI)\n", parser.CleanName(p.Name, p.Value), p.PureGoType) + } else { + fmt.Fprintf(bb, "%[1]vD = (*(*%v)(%[1]vI))\n", parser.CleanName(p.Name, p.Value), p.PureGoType) + } fmt.Fprint(bb, "}\n") } } @@ -640,13 +654,15 @@ func goFunctionBody(function *parser.Function) string { } else { if function.IsMocFunction && function.PureGoOutput != "" && !(function.Output == "QMap" || function.Output == "QList") && !parser.IsBlackListedPureGoType(function.PureGoOutput) { fmt.Fprintf(bb, "oP := %v\n", fmt.Sprintf("(*(*%v)(signal))(%v)", converter.GoHeaderInputSignalFunction(function), converter.GoInputParametersForCallback(function))) - if !parser.UseWasm() { - if parser.UseJs() { //TODO: this is potentially broken (mono time), does js still need this ? - fmt.Fprint(bb, "rTID := (time.Now().UnixNano()-((time.Now().UnixNano()/1e10)*1e10))+((time.Now().UnixNano()/1e10))\n") - } else { - fmt.Fprint(bb, "rTID := time.Now().UnixNano()+int64(uintptr(unsafe.Pointer(&oP)))\n") - } - fmt.Fprint(bb, "qt.RegisterTemp(unsafe.Pointer(uintptr(rTID)), unsafe.Pointer(&oP))\n") + if !parser.UseWasm() { //TODO: does wasm need "unsafe" pointer arithmetic ? + fmt.Fprintf(bb, "rTID := rand.New(rand.NewSource(time.Now().UnixNano())).Int63()\n") + fmt.Fprintf(bb, "qt.RegisterTemp(unsafe.Pointer(uintptr(rTID)), unsafe.Pointer(%voP))\n", + func() string { + if !strings.HasPrefix(function.PureGoOutput, "*") { + return "&" + } + return "" + }()) fmt.Fprintf(bb, "return %v", converter.GoInput("rTID", function.Output, function, function.PureGoOutput)) } else { //TODO: does wasm need "unsafe" pointer arithmetic ? fmt.Fprint(bb, "qt.RegisterTemp(unsafe.Pointer(&oP), unsafe.Pointer(&oP))\n") @@ -714,13 +730,15 @@ func goFunctionBody(function *parser.Function) string { } else { fmt.Fprintf(bb, "oP := %v\n", fmt.Sprintf("New%vFromPointer(ptr).%v%vDefault(%v)", strings.Title(class.Name), strings.TrimSuffix(strings.Replace(strings.Title(function.Name), parser.TILDE, "Destroy", -1), "z__"), function.OverloadNumber, converter.GoInputParametersForCallback(function))) } - if !parser.UseWasm() { - if parser.UseJs() { //TODO: this is potentially broken (mono time), does js still need this ? - fmt.Fprint(bb, "rTID := (time.Now().UnixNano()-((time.Now().UnixNano()/1e10)*1e10))+((time.Now().UnixNano()/1e10))\n") - } else { - fmt.Fprint(bb, "rTID := time.Now().UnixNano()+int64(uintptr(unsafe.Pointer(&oP)))\n") - } - fmt.Fprint(bb, "qt.RegisterTemp(unsafe.Pointer(uintptr(rTID)), unsafe.Pointer(&oP))\n") + if !parser.UseWasm() { //TODO: does wasm need "unsafe" pointer arithmetic ? + fmt.Fprintf(bb, "rTID := rand.New(rand.NewSource(time.Now().UnixNano())).Int63()\n") + fmt.Fprintf(bb, "qt.RegisterTemp(unsafe.Pointer(uintptr(rTID)), unsafe.Pointer(%voP))\n", + func() string { + if !strings.HasPrefix(function.PureGoOutput, "*") { + return "&" + } + return "" + }()) fmt.Fprintf(bb, "return %v", converter.GoInput("rTID", function.Output, function, function.PureGoOutput)) } else { //TODO: does wasm need "unsafe" pointer arithmetic ? fmt.Fprint(bb, "qt.RegisterTemp(unsafe.Pointer(&oP), unsafe.Pointer(&oP))\n") diff --git a/internal/binding/templater/helper.go b/internal/binding/templater/helper.go index 614305ebe..11c1a3bf0 100644 --- a/internal/binding/templater/helper.go +++ b/internal/binding/templater/helper.go @@ -3,8 +3,8 @@ package templater import ( "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func hasUnimplementedPureVirtualFunctions(className string) bool { diff --git a/internal/binding/templater/template_c.go b/internal/binding/templater/template_c.go index c33a4da3d..f964e1fbc 100644 --- a/internal/binding/templater/template_c.go +++ b/internal/binding/templater/template_c.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" ) func cTemplate(bb *bytes.Buffer, c *parser.Class, ef func(*parser.Enum, *parser.Value) string, ff func(*parser.Function) string, del string, isGo bool) { diff --git a/internal/binding/templater/template_cgo.go b/internal/binding/templater/template_cgo.go index fac2d2249..d57139f03 100644 --- a/internal/binding/templater/template_cgo.go +++ b/internal/binding/templater/template_cgo.go @@ -7,8 +7,8 @@ import ( "path/filepath" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func cleanLibs(module string, mode int) []string { diff --git a/internal/binding/templater/template_cgo_qmake.go b/internal/binding/templater/template_cgo_qmake.go index 14e09fb36..ae759a8ce 100644 --- a/internal/binding/templater/template_cgo_qmake.go +++ b/internal/binding/templater/template_cgo_qmake.go @@ -10,9 +10,9 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) const ( diff --git a/internal/binding/templater/template_cpp.go b/internal/binding/templater/template_cpp.go index 637831498..f2c294ebc 100644 --- a/internal/binding/templater/template_cpp.go +++ b/internal/binding/templater/template_cpp.go @@ -12,9 +12,9 @@ import ( "strings" "time" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) var exportedFunctions []string @@ -661,7 +661,7 @@ extern "C" int32_t __isPlatformVersionAtLeast(int32_t Platform, int32_t Major, i #ifndef QT_CORE_LIB #error ------------------------------------------------------------------ #error please run: '$(go env GOPATH)/bin/qtsetup' - #error more info here: https://github.com/therecipe/qt/wiki/Installation + #error more info here: https://github.com/bluszcz/cutego/wiki/Installation #error ------------------------------------------------------------------ #endif` } diff --git a/internal/binding/templater/template_dart.go b/internal/binding/templater/template_dart.go index 3f707a815..d9e53d829 100644 --- a/internal/binding/templater/template_dart.go +++ b/internal/binding/templater/template_dart.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func convertToDart(className string, l string, convertClassMethods bool) string { diff --git a/internal/binding/templater/template_go.go b/internal/binding/templater/template_go.go index cee18fddc..feb2bedf5 100644 --- a/internal/binding/templater/template_go.go +++ b/internal/binding/templater/template_go.go @@ -7,18 +7,18 @@ import ( "path/filepath" "strings" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) func GoTemplate(module string, stub bool, mode int, pkg, target, tags string) []byte { - if !utils.QT_GEN_GO_WRAPPER() && module == "AndroidExtras" { - utils.Save(utils.GoQtPkgPath(strings.ToLower(module), "utils-androidextras_android.go"), utils.Load(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal", "-find", "get files dir")), "/binding/files/utils-androidextras_android.go"))) + if module == "AndroidExtras" { + utils.Save(utils.GoQtPkgPath(strings.ToLower(module), "utils-androidextras_android.go"), utils.Load(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal", "-find", "get files dir")), "/binding/files/utils-androidextras_android.go"))) } else if module == "Qml" { - cont := utils.Load(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal", "-find", "get files dir")), "/binding/files/utils-qml.go")) + cont := utils.Load(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal", "-find", "get files dir")), "/binding/files/utils-qml.go")) if utils.QT_API_NUM(utils.QT_VERSION()) < 5060 { cont = strings.Replace(cont, "Property2(", "Property3(", -1) } @@ -1499,13 +1499,13 @@ import "C" fmt.Fprintln(bb, "\"encoding/hex\"") case "qt": - fmt.Fprintln(bb, "\"github.com/therecipe/qt\"") + fmt.Fprintln(bb, "\"github.com/bluszcz/cutego\"") case "internal": - fmt.Fprintln(bb, "\"github.com/therecipe/qt/internal\"") + fmt.Fprintln(bb, "\"github.com/bluszcz/cutego/internal\"") case "gow": - fmt.Fprintln(bb, "\"github.com/therecipe/qt/interop/gow\"") + fmt.Fprintln(bb, "\"github.com/bluszcz/cutego/interop/gow\"") case "js": if parser.UseWasm() { @@ -1516,9 +1516,9 @@ import "C" default: if mode == MOC { - fmt.Fprintf(bb, "std_%[1]v \"github.com/therecipe/qt/%[1]v\"\n", mlow) + fmt.Fprintf(bb, "std_%[1]v \"github.com/bluszcz/cutego/%[1]v\"\n", mlow) } else { - fmt.Fprintf(bb, "\"github.com/therecipe/qt/%v\"\n", mlow) + fmt.Fprintf(bb, "\"github.com/bluszcz/cutego/%v\"\n", mlow) } if utils.QT_GEN_TSD() { @@ -1589,9 +1589,9 @@ import "C" if module == "gui" && utils.QT_API_NUM(utils.QT_VERSION()) >= 5050 && !utils.QT_GEN_GO_WRAPPER() { if mode == NONE { - fmt.Fprintln(bb, "_ \"github.com/therecipe/qt/internal/binding/runtime\"") + fmt.Fprintln(bb, "_ \"github.com/bluszcz/cutego/internal/binding/runtime\"") } else if mode == MINIMAL && (cmd.ImportsQmlOrQuick() || cmd.ImportsInterop()) { - fmt.Fprintln(bb, "_ \"github.com/therecipe/qt/internal/binding/runtime\"") + fmt.Fprintln(bb, "_ \"github.com/bluszcz/cutego/internal/binding/runtime\"") } } } diff --git a/internal/binding/templater/template_h.go b/internal/binding/templater/template_h.go index c9c26b764..9d8f09880 100644 --- a/internal/binding/templater/template_h.go +++ b/internal/binding/templater/template_h.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func HTemplate(m string, mode int, tags string) []byte { diff --git a/internal/binding/templater/template_haxe.go b/internal/binding/templater/template_haxe.go index 1f5003be7..59a8f257c 100644 --- a/internal/binding/templater/template_haxe.go +++ b/internal/binding/templater/template_haxe.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func convertToHaxe(className string, l string, convertClassMethods bool) string { diff --git a/internal/binding/templater/template_swift.go b/internal/binding/templater/template_swift.go index 7679bbafa..a8f4ce393 100644 --- a/internal/binding/templater/template_swift.go +++ b/internal/binding/templater/template_swift.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" ) func convertToSwift(className string, l string, convertClassMethods bool) string { diff --git a/internal/binding/templater/templater.go b/internal/binding/templater/templater.go index 65e365be3..0090b7f8e 100644 --- a/internal/binding/templater/templater.go +++ b/internal/binding/templater/templater.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/utils" ) func GenModule(m, target string, mode int) { diff --git a/internal/ci/darwin.sh b/internal/ci/darwin.sh index 15cce6a65..a82b12f30 100755 --- a/internal/ci/darwin.sh +++ b/internal/ci/darwin.sh @@ -23,9 +23,9 @@ else QT=qt-unified-mac-x64-3.0.5-online if [ "$IOS" == "true" ] || [ "$IOS_SIMULATOR" == "true" ] then - /Volumes/$QT/$QT.app/Contents/MacOS/$QT -v --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs IOS=true + /Volumes/$QT/$QT.app/Contents/MacOS/$QT -v --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs IOS=true else - /Volumes/$QT/$QT.app/Contents/MacOS/$QT -v --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs DARWIN=true + /Volumes/$QT/$QT.app/Contents/MacOS/$QT -v --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs DARWIN=true fi diskutil unmountDisk disk1 rm -f /tmp/$QT.dmg diff --git a/internal/ci/linux.sh b/internal/ci/linux.sh index 064113c52..1f0729cf9 100755 --- a/internal/ci/linux.sh +++ b/internal/ci/linux.sh @@ -24,7 +24,7 @@ else QT=qt-unified-linux-x64-online.run curl -sL --retry 10 --retry-delay 10 -o /tmp/$QT https://download.qt.io/official_releases/online_installers/$QT chmod +x /tmp/$QT - /tmp/$QT -v --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs LINUX=true + /tmp/$QT -v --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs LINUX=true rm -f /tmp/$QT fi diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index 0ac4b2870..8db2b0fcf 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -14,7 +14,7 @@ import ( "github.com/sirupsen/logrus" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) var buildVersion = "no build version" @@ -51,13 +51,13 @@ func ParseFlags() bool { _, err := exec.LookPath("go") if api := utils.QT_API(""); api != "" && err == nil && !utils.QT_DOCKER() && !forDocker { - if utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+api, "-find", "get doc dir") == "" { + if utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+api, "-find", "get doc dir") == "" { utils.Log.Errorf("invalid api version provided: '%v'", api) fmt.Println("valid api versions are:") //TODO: if only one api version is available, use it if !utils.UseGOMOD("") { - if o := utils.GoListOptional("{{join .Imports \"|\"}}", "github.com/therecipe/qt/internal/binding/files/docs", "get doc dir"); o != "" { + if o := utils.GoListOptional("{{join .Imports \"|\"}}", "github.com/bluszcz/cutego/internal/binding/files/docs", "get doc dir"); o != "" { for _, v := range strings.Split(o, "|") { - fmt.Println(strings.TrimPrefix(strings.TrimSpace(strings.Replace(v, "'", "", -1)), "github.com/therecipe/qt/internal/binding/files/docs/")) + fmt.Println(strings.TrimPrefix(strings.TrimSpace(strings.Replace(v, "'", "", -1)), "github.com/bluszcz/cutego/internal/binding/files/docs/")) } } } else { @@ -67,7 +67,7 @@ func ParseFlags() bool { wg.Add(1) go func(mid, min int) { v := fmt.Sprintf("5.%v.%v", mid, min) - if utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/binding/files/docs/"+v, "-find", "get doc dir") != "" { + if utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/binding/files/docs/"+v, "-find", "get doc dir") != "" { fmt.Println(v) } wg.Done() @@ -271,7 +271,7 @@ func Vagrant(arg []string, target, path string, writeCacheToHost bool, system st } func virtual(arg []string, target, path string, writeCacheToHost bool, docker bool, system string) { - dUser := "therecipe/qt" + dUser := "bluszcz/cutego" if strings.Contains(target, ":") { dUser = strings.Split(target, ":")[0] target = strings.Split(target, ":")[1] @@ -390,7 +390,7 @@ func virtual(arg []string, target, path string, writeCacheToHost bool, docker bo gpath += pathseperator + gpfs args = append(args, []string{"-e", "QT_STUB=true"}...) //TODO: won't work with wine images atm } else { - if strings.Contains(path, "github.com/therecipe/qt/internal/examples") && !strings.Contains(path, "github.com/therecipe/qt/internal/examples/androidextras") { + if strings.Contains(path, "github.com/bluszcz/cutego/internal/examples") && !strings.Contains(path, "github.com/bluszcz/cutego/internal/examples/androidextras") { gpath += pathseperator + gpfs } else { gpath = gpfs + pathseperator + gpath diff --git a/internal/cmd/deploy/assets.go b/internal/cmd/deploy/assets.go index 02e77e26b..15db53584 100644 --- a/internal/cmd/deploy/assets.go +++ b/internal/cmd/deploy/assets.go @@ -10,8 +10,8 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/cmd/rcc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd/rcc" + "github.com/bluszcz/cutego/internal/utils" ) //linux diff --git a/internal/cmd/deploy/assets_not_sailfish.go b/internal/cmd/deploy/assets_not_sailfish.go index fb4f73ae9..b3bc322ec 100644 --- a/internal/cmd/deploy/assets_not_sailfish.go +++ b/internal/cmd/deploy/assets_not_sailfish.go @@ -5,5 +5,5 @@ package deploy import "errors" func sailfish_ssh(port, login string, cmd ...string) error { - return errors.New("please run \"go install -v -tags=sailfish github.com/therecipe/qt/cmd/...\" to enable sailfish deployments") + return errors.New("please run \"go install -v -tags=sailfish github.com/bluszcz/cutego/cmd/...\" to enable sailfish deployments") } diff --git a/internal/cmd/deploy/assets_sailfish.go b/internal/cmd/deploy/assets_sailfish.go index 10a0963de..114374199 100644 --- a/internal/cmd/deploy/assets_sailfish.go +++ b/internal/cmd/deploy/assets_sailfish.go @@ -10,7 +10,7 @@ import ( "golang.org/x/crypto/ssh" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func sailfish_ssh(port, login string, cmd ...string) error { diff --git a/internal/cmd/deploy/build.go b/internal/cmd/deploy/build.go index 67f1b1d3a..c8e7de85c 100644 --- a/internal/cmd/deploy/build.go +++ b/internal/cmd/deploy/build.go @@ -13,8 +13,8 @@ import ( "github.com/sirupsen/logrus" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) func build(mode, target, path, ldFlagsCustom, tagsCustom, name, depPath string, fast, comply bool) { diff --git a/internal/cmd/deploy/build_escape.go b/internal/cmd/deploy/build_escape.go index 39aee32cd..a32d37d6f 100644 --- a/internal/cmd/deploy/build_escape.go +++ b/internal/cmd/deploy/build_escape.go @@ -31,8 +31,9 @@ func escapeFlags(ldFlags []string, ldFlagsCustom string) string { ldFlags = append(ldFlags, strings.Split(ldFlagsCustom, " ")...) } - if out := strings.Replace(strings.Join(ldFlags, "\" \""), "_DONT_ESCAPE_", " ", -1); len(out) > 0 { - return fmt.Sprintf("\"%v\"", out) + if out := strings.Replace(strings.Join(ldFlags, " "), "_DONT_ESCAPE_", " ", -1); len(out) > 0 { + return fmt.Sprintf("%q", out) } + return "" } diff --git a/internal/cmd/deploy/build_test.go b/internal/cmd/deploy/build_test.go index 9f7b1f6bd..4295f3365 100644 --- a/internal/cmd/deploy/build_test.go +++ b/internal/cmd/deploy/build_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func Test_escapeFlags(t *testing.T) { diff --git a/internal/cmd/deploy/bundle.go b/internal/cmd/deploy/bundle.go index c13b84ec1..2d1270891 100644 --- a/internal/cmd/deploy/bundle.go +++ b/internal/cmd/deploy/bundle.go @@ -11,13 +11,13 @@ import ( "strings" "time" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/moc" - "github.com/therecipe/qt/internal/cmd/rcc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/moc" + "github.com/bluszcz/cutego/internal/cmd/rcc" + "github.com/bluszcz/cutego/internal/utils" ) func bundle(mode, target, path, name, depPath string, tagsCustom string, fast bool) { @@ -943,7 +943,7 @@ func bundle(mode, target, path, name, depPath string, tagsCustom string, fast bo } for _, l := range strings.Split(strings.TrimSpace(utils.RunCmd(lcmd, "go list deps")), "|") { for _, ml := range parser.GetLibs() { - if strings.HasSuffix(strings.ToLower(l), "github.com/therecipe/qt/"+strings.ToLower(ml)) { + if strings.HasSuffix(strings.ToLower(l), "github.com/bluszcz/cutego/"+strings.ToLower(ml)) { cmd.Args = append(cmd.Args, utils.GoQtPkgPath(strings.ToLower(ml), strings.ToLower(ml)+"-minimal.cpp")) break } diff --git a/internal/cmd/deploy/deploy.go b/internal/cmd/deploy/deploy.go index d99fb2da2..3fd9561e9 100644 --- a/internal/cmd/deploy/deploy.go +++ b/internal/cmd/deploy/deploy.go @@ -7,14 +7,14 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/parser" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/minimal" - "github.com/therecipe/qt/internal/cmd/moc" - "github.com/therecipe/qt/internal/cmd/rcc" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/minimal" + "github.com/bluszcz/cutego/internal/cmd/moc" + "github.com/bluszcz/cutego/internal/cmd/rcc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func Deploy(mode, target, path string, docker bool, ldFlags, tags string, fast bool, device string, vagrant bool, vagrantsystem string, comply bool, useuic bool, quickcompiler bool) { @@ -51,7 +51,7 @@ func Deploy(mode, target, path string, docker bool, ldFlags, tags string, fast b utils.RunCmd(cmd, "go mod vendor") } if utils.QT_DOCKER() { - cmd := exec.Command("go", "get", "-v", "-d", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT + cmd := exec.Command("go", "get", "-v", "-d", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT cmd.Dir = path if !utils.QT_PKG_CONFIG() { utils.RunCmdOptional(cmd, "go get docs") //TODO: this can fail if QT_PKG_CONFIG diff --git a/internal/cmd/deploy/flutter.go b/internal/cmd/deploy/flutter.go index cde5f3b2a..d75625d9e 100644 --- a/internal/cmd/deploy/flutter.go +++ b/internal/cmd/deploy/flutter.go @@ -13,7 +13,7 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func flutter(target string, path string) { diff --git a/internal/cmd/deploy/run.go b/internal/cmd/deploy/run.go index 91dda40fc..5f8787a20 100644 --- a/internal/cmd/deploy/run.go +++ b/internal/cmd/deploy/run.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func run(target, name, depPath, device string) { diff --git a/internal/cmd/minimal/minimal.go b/internal/cmd/minimal/minimal.go index 257822c3e..34163832c 100644 --- a/internal/cmd/minimal/minimal.go +++ b/internal/cmd/minimal/minimal.go @@ -10,14 +10,14 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/binding/converter" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/converter" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/moc" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/moc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func Minimal(path, target, tags string, skipSetup bool) { @@ -50,7 +50,7 @@ func Minimal(path, target, tags string, skipSetup bool) { utils.RunCmd(cmd, "go mod vendor") } if utils.QT_DOCKER() { - cmd := exec.Command("go", "get", "-v", "-d", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT + cmd := exec.Command("go", "get", "-v", "-d", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT cmd.Dir = path if !utils.QT_PKG_CONFIG() { utils.RunCmdOptional(cmd, "go get docs") //TODO: this can fail if QT_PKG_CONFIG diff --git a/internal/cmd/moc/moc.go b/internal/cmd/moc/moc.go index eeb22db07..8428305e1 100644 --- a/internal/cmd/moc/moc.go +++ b/internal/cmd/moc/moc.go @@ -18,11 +18,11 @@ import ( "golang.org/x/tools/imports" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) var ( @@ -58,7 +58,7 @@ func Moc(path, target, tags string, fast, slow, deploying bool, skipSetup bool) utils.RunCmd(cmd, "go mod vendor") } if utils.QT_DOCKER() { - cmd := exec.Command("go", "get", "-v", "-d", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT + cmd := exec.Command("go", "get", "-v", "-d", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT cmd.Dir = path if !utils.QT_PKG_CONFIG() { utils.RunCmdOptional(cmd, "go get docs") //TODO: this can fail if QT_PKG_CONFIG diff --git a/internal/cmd/moc/test/qtmoc_imports.go b/internal/cmd/moc/test/qtmoc_imports.go index e50a6e53e..1f3626e9f 100644 --- a/internal/cmd/moc/test/qtmoc_imports.go +++ b/internal/cmd/moc/test/qtmoc_imports.go @@ -1,3 +1,3 @@ package qtmoc -import _ "github.com/therecipe/qt/internal/cmd/moc/test/sub" +import _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub" diff --git a/internal/cmd/moc/test/qtmoc_test.go b/internal/cmd/moc/test/qtmoc_test.go index 8416ecb8b..825cf3088 100644 --- a/internal/cmd/moc/test/qtmoc_test.go +++ b/internal/cmd/moc/test/qtmoc_test.go @@ -9,15 +9,15 @@ import ( tps "time" "unsafe" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/sql" - "github.com/therecipe/qt/widgets" - "github.com/therecipe/qt/xml" - - "github.com/therecipe/qt/internal/cmd/moc/test/sub" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" - "github.com/therecipe/qt/internal/cmd/moc/test/sub/subsub" //subsubcustom + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/sql" + "github.com/bluszcz/cutego/widgets" + "github.com/bluszcz/cutego/xml" + + "github.com/bluszcz/cutego/internal/cmd/moc/test/sub" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" + "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/subsub" //subsubcustom ) type Application struct { diff --git a/internal/cmd/moc/test/sub/b/b.go b/internal/cmd/moc/test/sub/b/b.go index 796f98968..d7e7f6313 100644 --- a/internal/cmd/moc/test/sub/b/b.go +++ b/internal/cmd/moc/test/sub/b/b.go @@ -1,9 +1,9 @@ package b import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" ) type StructSubGoB struct{} diff --git a/internal/cmd/moc/test/sub/bgo/bgo.go b/internal/cmd/moc/test/sub/bgo/bgo.go index c3aa78eab..a3091be5e 100644 --- a/internal/cmd/moc/test/sub/bgo/bgo.go +++ b/internal/cmd/moc/test/sub/bgo/bgo.go @@ -1,5 +1,5 @@ package bgo -import _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" +import _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" type StructSubGoBGo struct{} diff --git a/internal/cmd/moc/test/sub/c/c.go b/internal/cmd/moc/test/sub/c/c.go index 38ac540b4..00b655f94 100644 --- a/internal/cmd/moc/test/sub/c/c.go +++ b/internal/cmd/moc/test/sub/c/c.go @@ -1,9 +1,9 @@ package c import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" ) type StructSubGoC struct{} diff --git a/internal/cmd/moc/test/sub/cgo/cgo.go b/internal/cmd/moc/test/sub/cgo/cgo.go index eb8ea4857..5f9341bb6 100644 --- a/internal/cmd/moc/test/sub/cgo/cgo.go +++ b/internal/cmd/moc/test/sub/cgo/cgo.go @@ -1,5 +1,5 @@ package cgo -import _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" +import _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" type StructSubGoCGo struct{} diff --git a/internal/cmd/moc/test/sub/d/d.go b/internal/cmd/moc/test/sub/d/d.go index 3ace861a9..bb53cc77c 100644 --- a/internal/cmd/moc/test/sub/d/d.go +++ b/internal/cmd/moc/test/sub/d/d.go @@ -1,9 +1,9 @@ package d import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" ) type StructSubGoD struct{} diff --git a/internal/cmd/moc/test/sub/dgo/dgo.go b/internal/cmd/moc/test/sub/dgo/dgo.go index e0399d4fe..fc3f59f1a 100644 --- a/internal/cmd/moc/test/sub/dgo/dgo.go +++ b/internal/cmd/moc/test/sub/dgo/dgo.go @@ -1,5 +1,5 @@ package dgo -import _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" +import _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" type StructSubGoDGo struct{} diff --git a/internal/cmd/moc/test/sub/sub.go b/internal/cmd/moc/test/sub/sub.go index 88e1e2f33..5a7e4a9b2 100644 --- a/internal/cmd/moc/test/sub/sub.go +++ b/internal/cmd/moc/test/sub/sub.go @@ -1,17 +1,17 @@ package sub import ( - "github.com/therecipe/qt/internal/cmd/moc/test/sub/subsub" + "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/subsub" - "github.com/therecipe/qt/internal/cmd/moc/test/sub/b" - abc "github.com/therecipe/qt/internal/cmd/moc/test/sub/c" - . "github.com/therecipe/qt/internal/cmd/moc/test/sub/d" + "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/b" + abc "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/c" + . "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/d" - "github.com/therecipe/qt/internal/cmd/moc/test/sub/bgo" - abcgo "github.com/therecipe/qt/internal/cmd/moc/test/sub/cgo" - . "github.com/therecipe/qt/internal/cmd/moc/test/sub/dgo" + "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/bgo" + abcgo "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/cgo" + . "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/dgo" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" ) //TODO: duplicate struct name issue diff --git a/internal/cmd/moc/test/sub/subb.go b/internal/cmd/moc/test/sub/subb.go index b96f82833..ac6ab88d8 100644 --- a/internal/cmd/moc/test/sub/subb.go +++ b/internal/cmd/moc/test/sub/subb.go @@ -1,10 +1,10 @@ package sub import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/subsub" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/subsub" ) var SomeType *someType diff --git a/internal/cmd/moc/test/sub/subsub/subsub.go b/internal/cmd/moc/test/sub/subsub/subsub.go index 5e399b803..91506c180 100644 --- a/internal/cmd/moc/test/sub/subsub/subsub.go +++ b/internal/cmd/moc/test/sub/subsub/subsub.go @@ -1,9 +1,9 @@ package subsubcustom import ( - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/gui" - _ "github.com/therecipe/qt/internal/cmd/moc/test/sub/conf" + _ "github.com/bluszcz/cutego/internal/cmd/moc/test/sub/conf" ) var SubSubTestStructInstance *SubSubTestStruct diff --git a/internal/cmd/rcc/rcc.go b/internal/cmd/rcc/rcc.go index e6ecc588b..d76c55310 100644 --- a/internal/cmd/rcc/rcc.go +++ b/internal/cmd/rcc/rcc.go @@ -12,11 +12,11 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) var ( @@ -32,7 +32,7 @@ func Rcc(path, target, tagsCustom, output_dir string, useuic, quickcompiler, dep utils.RunCmd(cmd, "go mod vendor") } if utils.QT_DOCKER() { - cmd := exec.Command("go", "get", "-v", "-d", "github.com/therecipe/qt/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT + cmd := exec.Command("go", "get", "-v", "-d", "github.com/bluszcz/cutego/internal/binding/files/docs/"+utils.QT_API(utils.QT_VERSION())+"@"+cmd.QtModVersion(filepath.Dir(utils.GOMOD(path)))) //TODO: needs to pull 5.8.0 if QT_WEBKIT cmd.Dir = path if !utils.QT_PKG_CONFIG() { utils.RunCmdOptional(cmd, "go get docs") //TODO: this can fail if QT_PKG_CONFIG @@ -695,7 +695,7 @@ func rcc(path, target, tagsCustom, output_dir string, quickcompiler bool, useuic if i == 0 { fmt.Fprintln(bb, "\""+p+"\"") } else { - fmt.Fprintln(bb, "\"github.com/therecipe/qt/"+p+"\"") + fmt.Fprintln(bb, "\"github.com/bluszcz/cutego/"+p+"\"") } } fmt.Fprintln(bb, "\n)") diff --git a/internal/cmd/setup/check.go b/internal/cmd/setup/check.go index 877b9b73b..662dd68a5 100644 --- a/internal/cmd/setup/check.go +++ b/internal/cmd/setup/check.go @@ -8,7 +8,7 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func Check(target string, docker, vagrant bool) { @@ -28,7 +28,7 @@ func Check(target string, docker, vagrant bool) { hash := "please install git" if utils.UseGOMOD("") { - hash = utils.GoListOptional("{{.Version}}", "github.com/therecipe/qt", "-m", "get qt hash") + hash = utils.GoListOptional("{{.Version}}", "github.com/bluszcz/cutego", "-m", "get qt hash") } else { if _, err := exec.LookPath("git"); err == nil { cmd := exec.Command("git", "rev-parse", "--verify", "HEAD") diff --git a/internal/cmd/setup/generate.go b/internal/cmd/setup/generate.go index fd22377ae..c29f69a71 100644 --- a/internal/cmd/setup/generate.go +++ b/internal/cmd/setup/generate.go @@ -8,12 +8,12 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/moc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/moc" + "github.com/bluszcz/cutego/internal/utils" ) func Generate(target string, docker, vagrant bool) { @@ -71,6 +71,6 @@ func Generate(target string, docker, vagrant bool) { runtimePath := utils.GoQtPkgPath("internal/binding/runtime") utils.RemoveAll(runtimePath) utils.MkdirAll(runtimePath) - utils.Save(filepath.Join(runtimePath, "utils-runtime.go"), utils.Load(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal", "-find", "get files dir")), "/binding/files/utils-runtime.go"))) + utils.Save(filepath.Join(runtimePath, "utils-runtime.go"), utils.Load(filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal", "-find", "get files dir")), "/binding/files/utils-runtime.go"))) moc.Moc(runtimePath, target, "", true, false, false, true) } diff --git a/internal/cmd/setup/install.go b/internal/cmd/setup/install.go index c138d32e2..449d0ed6d 100644 --- a/internal/cmd/setup/install.go +++ b/internal/cmd/setup/install.go @@ -10,11 +10,11 @@ import ( "strconv" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) func Install(target string, docker, vagrant, failfast bool) { @@ -110,7 +110,7 @@ func Install(target string, docker, vagrant, failfast bool) { cmd = exec.Command(filepath.Join(utils.GOBIN(), "gopherjs"), "install") } - cmd.Args = append(cmd.Args, fmt.Sprintf("github.com/therecipe/qt/%v", strings.ToLower(module))) + cmd.Args = append(cmd.Args, fmt.Sprintf("github.com/bluszcz/cutego/%v", strings.ToLower(module))) if target == "js" { cmd.Args = append(cmd.Args, "-v") diff --git a/internal/cmd/setup/prep.go b/internal/cmd/setup/prep.go index 058a4e8b3..0b4490962 100644 --- a/internal/cmd/setup/prep.go +++ b/internal/cmd/setup/prep.go @@ -6,8 +6,8 @@ import ( "path/filepath" "runtime" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/utils" ) func Prep(target string) { diff --git a/internal/cmd/setup/test.go b/internal/cmd/setup/test.go index d58b2bb27..9a675dffc 100644 --- a/internal/cmd/setup/test.go +++ b/internal/cmd/setup/test.go @@ -8,16 +8,16 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/binding/parser" - "github.com/therecipe/qt/internal/binding/templater" + "github.com/bluszcz/cutego/internal/binding/parser" + "github.com/bluszcz/cutego/internal/binding/templater" - "github.com/therecipe/qt/internal/cmd" - "github.com/therecipe/qt/internal/cmd/deploy" - "github.com/therecipe/qt/internal/cmd/minimal" - "github.com/therecipe/qt/internal/cmd/moc" - "github.com/therecipe/qt/internal/cmd/rcc" + "github.com/bluszcz/cutego/internal/cmd" + "github.com/bluszcz/cutego/internal/cmd/deploy" + "github.com/bluszcz/cutego/internal/cmd/minimal" + "github.com/bluszcz/cutego/internal/cmd/moc" + "github.com/bluszcz/cutego/internal/cmd/rcc" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func Test(target string, docker, vagrant bool, vagrantsystem string) { @@ -161,7 +161,7 @@ func Test(target string, docker, vagrant bool, vagrantsystem string) { example := filepath.Join(cat, example) - path := filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/therecipe/qt/internal/examples", "-find", "get doc dir")), example) + path := filepath.Join(strings.TrimSpace(utils.GoListOptional("{{.Dir}}", "github.com/bluszcz/cutego/internal/examples", "-find", "get doc dir")), example) utils.Log.Infof("testing %v", example) deploy.Deploy( mode, diff --git a/internal/cmd/setup/update.go b/internal/cmd/setup/update.go index bcf622b1d..7da4f1a18 100644 --- a/internal/cmd/setup/update.go +++ b/internal/cmd/setup/update.go @@ -7,14 +7,14 @@ import ( "runtime" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) func Update() { utils.Log.Info("running: 'qtsetup update'") - utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/therecipe/qt/cmd/..."), "run \"go clean cmd\"") - utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/therecipe/qt/internal/..."), "run \"go clean internal\"") + utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/bluszcz/cutego/cmd/..."), "run \"go clean cmd\"") + utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/bluszcz/cutego/internal/..."), "run \"go clean internal\"") fetch := exec.Command("git", "fetch", "-f", "--all") fetch.Dir = filepath.Join(utils.MustGoPath(), "src", "github.com", "therecipe", "qt") @@ -35,7 +35,7 @@ func Update() { hash = strings.TrimSpace(utils.RunCmdOptional(cmd, "get git hash")) } - utils.RunCmd(exec.Command("go", "install", "-v", fmt.Sprintf("-ldflags=\"-X=github.com/therecipe/qt/internal/cmd.buildVersion=%v\"", hash), fmt.Sprintf("github.com/therecipe/qt/cmd/...")), "run \"go install\"") + utils.RunCmd(exec.Command("go", "install", "-v", fmt.Sprintf("-ldflags=\"-X=github.com/bluszcz/cutego/internal/cmd.buildVersion=%v\"", hash), fmt.Sprintf("github.com/bluszcz/cutego/cmd/...")), "run \"go install\"") Prep(runtime.GOOS) } @@ -43,10 +43,10 @@ func Update() { func Upgrade() { utils.Log.Info("running: 'qtsetup upgrade'") - utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/therecipe/qt/..."), "run \"go clean\"") + utils.RunCmd(exec.Command("go", "clean", "-i", "github.com/bluszcz/cutego/..."), "run \"go clean\"") utils.RemoveAll(utils.GoQtPkgPath()) - utils.RunCmd(exec.Command("go", "get", "-v", "-d", "github.com/therecipe/qt/cmd/..."), "run \"go get\"") + utils.RunCmd(exec.Command("go", "get", "-v", "-d", "github.com/bluszcz/cutego/cmd/..."), "run \"go get\"") hash := "please install git" if _, err := exec.LookPath("git"); err == nil { @@ -55,5 +55,5 @@ func Upgrade() { hash = strings.TrimSpace(utils.RunCmdOptional(cmd, "get git hash")) } - utils.RunCmd(exec.Command("go", "install", "-v", fmt.Sprintf("-ldflags=\"-X=github.com/therecipe/qt/internal/cmd.buildVersion=%v\"", hash), fmt.Sprintf("github.com/therecipe/qt/cmd/...")), "run \"go install\"") + utils.RunCmd(exec.Command("go", "install", "-v", fmt.Sprintf("-ldflags=\"-X=github.com/bluszcz/cutego/internal/cmd.buildVersion=%v\"", hash), fmt.Sprintf("github.com/bluszcz/cutego/cmd/...")), "run \"go install\"") } diff --git a/internal/cmd/tools.go b/internal/cmd/tools.go index 36ef377ed..087bf7199 100644 --- a/internal/cmd/tools.go +++ b/internal/cmd/tools.go @@ -1,4 +1,4 @@ package cmd //only needed for module support -import _ "github.com/therecipe/qt/internal/binding/files/docs" +import _ "github.com/bluszcz/cutego/internal/binding/files/docs" diff --git a/internal/cmd/utils.go b/internal/cmd/utils.go index 4e8537532..bff367a3b 100644 --- a/internal/cmd/utils.go +++ b/internal/cmd/utils.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) var ( @@ -74,9 +74,9 @@ func GetImports(path, target, tagsCustom string, level int, onlyDirect bool) []s stdImport[c] = k c++ } - stdImport[len(stdImport)-1] = "github.com/therecipe/qt/internal/binding/runtime" + stdImport[len(stdImport)-1] = "github.com/bluszcz/cutego/internal/binding/runtime" - cmd := utils.GoList(fmt.Sprintf("{{if not .Standard}}{{if eq .ImportPath \"%v\"}}{{else}}{{range .Imports}}{{if eq . \"github.com/therecipe/qt/qml\" \"github.com/therecipe/qt/quick\"}}{{.}}{{end}}{{end}}{{end}}{{end}}", strings.Join(stdImport, "\" \"")), "-deps", utils.BuildTags(tags)) + cmd := utils.GoList(fmt.Sprintf("{{if not .Standard}}{{if eq .ImportPath \"%v\"}}{{else}}{{range .Imports}}{{if eq . \"github.com/bluszcz/cutego/qml\" \"github.com/bluszcz/cutego/quick\"}}{{.}}{{end}}{{end}}{{end}}{{end}}", strings.Join(stdImport, "\" \"")), "-deps", utils.BuildTags(tags)) if !utils.UseGOMOD(path) || (utils.UseGOMOD(path) && !strings.Contains(strings.Replace(path, "\\", "/", -1), "/vendor/")) { cmd.Dir = path } else if utils.UseGOMOD(path) && strings.Contains(strings.Replace(path, "\\", "/", -1), "/vendor/") { @@ -100,9 +100,9 @@ func GetImports(path, target, tagsCustom string, level int, onlyDirect bool) []s stdImport[c] = k c++ } - stdImport[len(stdImport)-1] = "github.com/therecipe/qt/internal/binding/runtime" + stdImport[len(stdImport)-1] = "github.com/bluszcz/cutego/internal/binding/runtime" - cmd := utils.GoList(fmt.Sprintf("{{if not .Standard}}{{if eq .ImportPath \"%v\"}}{{else}}{{range .Imports}}{{if eq . \"github.com/therecipe/qt/interop\"}}{{.}}{{end}}{{end}}{{end}}{{end}}", strings.Join(stdImport, "\" \"")), "-deps", utils.BuildTags(tags)) + cmd := utils.GoList(fmt.Sprintf("{{if not .Standard}}{{if eq .ImportPath \"%v\"}}{{else}}{{range .Imports}}{{if eq . \"github.com/bluszcz/cutego/interop\"}}{{.}}{{end}}{{end}}{{end}}{{end}}", strings.Join(stdImport, "\" \"")), "-deps", utils.BuildTags(tags)) if !utils.UseGOMOD(path) || (utils.UseGOMOD(path) && !strings.Contains(strings.Replace(path, "\\", "/", -1), "/vendor/")) { cmd.Dir = path } else if utils.UseGOMOD(path) && strings.Contains(strings.Replace(path, "\\", "/", -1), "/vendor/") { @@ -126,9 +126,9 @@ func GetImports(path, target, tagsCustom string, level int, onlyDirect bool) []s stdImport[c] = k c++ } - stdImport[len(stdImport)-1] = "github.com/therecipe/qt/internal/binding/runtime" + stdImport[len(stdImport)-1] = "github.com/bluszcz/cutego/internal/binding/runtime" - cmd := utils.GoList(fmt.Sprintf("{{if not .Standard}}{{if eq .ImportPath \"%v\"}}{{else}}{{range .Imports}}{{if eq . \"github.com/therecipe/qt/flutter\"}}{{.}}{{end}}{{end}}{{end}}{{end}}", strings.Join(stdImport, "\" \"")), "-deps", utils.BuildTags(tags)) + cmd := utils.GoList(fmt.Sprintf("{{if not .Standard}}{{if eq .ImportPath \"%v\"}}{{else}}{{range .Imports}}{{if eq . \"github.com/bluszcz/cutego/flutter\"}}{{.}}{{end}}{{end}}{{end}}{{end}}", strings.Join(stdImport, "\" \"")), "-deps", utils.BuildTags(tags)) if !utils.UseGOMOD(path) || (utils.UseGOMOD(path) && !strings.Contains(strings.Replace(path, "\\", "/", -1), "/vendor/")) { cmd.Dir = path } else if utils.UseGOMOD(path) && strings.Contains(strings.Replace(path, "\\", "/", -1), "/vendor/") { @@ -197,8 +197,8 @@ func GetImports(path, target, tagsCustom string, level int, onlyDirect bool) []s wg.Done() }() - if strings.Contains(l, "github.com/therecipe/qt") && !(strings.Contains(l, "qt/internal") || strings.Contains(l, "qt/flutter") || strings.Contains(l, "qt/interop")) { - if strings.Contains(l, "github.com/therecipe/qt/") { + if strings.Contains(l, "github.com/bluszcz/cutego") && !(strings.Contains(l, "qt/internal") || strings.Contains(l, "qt/flutter") || strings.Contains(l, "qt/interop")) { + if strings.Contains(l, "github.com/bluszcz/cutego/") { importedStdMutex.Lock() importedStd[l] = struct{}{} importedStdMutex.Unlock() @@ -234,7 +234,7 @@ func GetImports(path, target, tagsCustom string, level int, onlyDirect bool) []s func GetQtStdImports() (o []string) { importedStdMutex.Lock() for k := range importedStd { - o = append(o, strings.TrimPrefix(k, "github.com/therecipe/qt/")) + o = append(o, strings.TrimPrefix(k, "github.com/bluszcz/cutego/")) } importedStdMutex.Unlock() return @@ -301,7 +301,7 @@ func GetGoFiles(path, target, tagsCustom string) []string { //TODO: directly parse go.mod to make it possible to skip "go mod download" func QtModVersion(path string) string { - cmd := exec.Command("go", "list", "-m", "-f", "{{.Version}}", "github.com/therecipe/qt") + cmd := exec.Command("go", "list", "-m", "-f", "{{.Version}}", "github.com/bluszcz/cutego") cmd.Dir = path version := strings.TrimSpace(utils.RunCmdOptional(cmd, "get qt tooling version")) if !strings.HasPrefix(version, "v") { @@ -323,7 +323,7 @@ func RestartWithPinnedVersion(path string) bool { return false } - cmd = exec.Command("go", "install", "-v", "-tags=no_env", "github.com/therecipe/qt/cmd/...") + cmd = exec.Command("go", "install", "-v", "-tags=no_env", "github.com/bluszcz/cutego/cmd/...") cmd.Dir = path cmd.Env = append(os.Environ(), "GOBIN="+utils.GOBIN()) utils.RunCmd(cmd, "re-install qt tooling based on the go.mod version") diff --git a/internal/cmd/utils_msvc.go b/internal/cmd/utils_msvc.go index d097e0631..dfc1d9cdd 100644 --- a/internal/cmd/utils_msvc.go +++ b/internal/cmd/utils_msvc.go @@ -9,7 +9,7 @@ import ( "path/filepath" "strings" - "github.com/therecipe/qt/internal/utils" + "github.com/bluszcz/cutego/internal/utils" ) var rep = map[string]string{ diff --git a/internal/docker/android/Dockerfile b/internal/docker/android/Dockerfile index 5a5f53509..534e6847f 100644 --- a/internal/docker/android/Dockerfile +++ b/internal/docker/android/Dockerfile @@ -39,13 +39,13 @@ ENV QT_VERSION 5.13.0 ENV QT_DIR /opt/Qt5.13.0 ENV QT_DOCKER true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:linux /opt/Qt5.13.0/5.13.0/android_armv7 /opt/Qt5.13.0/5.13.0/android_armv7 -COPY --from=therecipe/qt:linux /opt/Qt5.13.0/5.13.0/android_x86 /opt/Qt5.13.0/5.13.0/android_x86 -COPY --from=therecipe/qt:linux /opt/Qt5.13.0/5.13.0/android_arm64_v8a /opt/Qt5.13.0/5.13.0/android_arm64_v8a -COPY --from=therecipe/qt:linux /opt/Qt5.13.0/Docs /opt/Qt5.13.0/Docs +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:linux /opt/Qt5.13.0/5.13.0/android_armv7 /opt/Qt5.13.0/5.13.0/android_armv7 +COPY --from=bluszcz/cutego:linux /opt/Qt5.13.0/5.13.0/android_x86 /opt/Qt5.13.0/5.13.0/android_x86 +COPY --from=bluszcz/cutego:linux /opt/Qt5.13.0/5.13.0/android_arm64_v8a /opt/Qt5.13.0/5.13.0/android_arm64_v8a +COPY --from=bluszcz/cutego:linux /opt/Qt5.13.0/Docs /opt/Qt5.13.0/Docs COPY --from=base $HOME/android-sdk-linux $HOME/android-sdk-linux COPY --from=base $HOME/android-ndk-r18b $HOME/android-ndk-r18b COPY --from=base $HOME/openssl-1.1.1a-arm $HOME/openssl-1.1.1a-arm @@ -58,16 +58,16 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check android RUN $GOPATH/bin/qtsetup generate android RUN $GOPATH/bin/qtsetup install android -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/androidextras/jni && $GOPATH/bin/qtdeploy build android && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/androidextras/jni && $GOPATH/bin/qtdeploy build android && rm -rf ./deploy RUN GOARCH=arm64 $GOPATH/bin/qtsetup check android RUN GOARCH=arm64 $GOPATH/bin/qtsetup generate android RUN GOARCH=arm64 $GOPATH/bin/qtsetup install android -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/androidextras/jni && GOARCH=arm64 $GOPATH/bin/qtdeploy build android && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/androidextras/jni && GOARCH=arm64 $GOPATH/bin/qtdeploy build android && rm -rf ./deploy RUN $GOPATH/bin/qtsetup check android-emulator RUN $GOPATH/bin/qtsetup generate android-emulator RUN $GOPATH/bin/qtsetup install android-emulator -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/androidextras/jni && $GOPATH/bin/qtdeploy build android-emulator && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/androidextras/jni && $GOPATH/bin/qtdeploy build android-emulator && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/darwin/Dockerfile b/internal/docker/darwin/Dockerfile index 5cf1fd0b8..fcc9ac97a 100644 --- a/internal/docker/darwin/Dockerfile +++ b/internal/docker/darwin/Dockerfile @@ -36,7 +36,7 @@ RUN ln -s /osxcross/target/bin/x86_64-apple-darwin19-otool /usr/bin/otool RUN ln -s /osxcross/target/bin/x86_64-apple-darwin19-install_name_tool /usr/bin/install_name_tool RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN go get github.com/therecipe/qt/cmd/... +RUN go get github.com/StarAurryon/qt/cmd/... RUN go get github.com/therecipe/env_darwin_amd64_513 && DST=$GOPATH/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/bin && rm -r $DST && cp -r $GOPATH/src/github.com/therecipe/env_linux_amd64_513/5.13.0/gcc_64/bin $DST RUN sed -i -e 's/error/warning/g' $GOPATH/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/mkspecs/features/mac/default_pre.prf @@ -62,7 +62,7 @@ ENV CXX /osxcross/target/bin/x86_64-apple-darwin19-clang++ RUN $GOPATH/bin/qtsetup prep darwin RUN $GOPATH/bin/qtsetup check darwin RUN $GOPATH/bin/qtsetup generate darwin -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build darwin && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build darwin && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/darwin/Dockerfile.512 b/internal/docker/darwin/Dockerfile.512 index 0c0eaa4b0..0f737e6fe 100644 --- a/internal/docker/darwin/Dockerfile.512 +++ b/internal/docker/darwin/Dockerfile.512 @@ -36,7 +36,7 @@ RUN ln -s /osxcross/target/bin/x86_64-apple-darwin19-otool /usr/bin/otool RUN ln -s /osxcross/target/bin/x86_64-apple-darwin19-install_name_tool /usr/bin/install_name_tool RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN go get -tags=no_env github.com/therecipe/qt/cmd/... && go get github.com/therecipe/env_linux_amd64_512 +RUN go get -tags=no_env github.com/StarAurryon/qt/cmd/... && go get github.com/therecipe/env_linux_amd64_512 RUN go get github.com/therecipe/env_darwin_amd64_512 && DST=$GOPATH/src/github.com/therecipe/env_darwin_amd64_512/5.12.0/clang_64/bin && rm -r $DST && cp -r $GOPATH/src/github.com/therecipe/env_linux_amd64_512/5.12.0/gcc_64/bin $DST RUN sed -i -e 's/error/warning/g' $GOPATH/src/github.com/therecipe/env_darwin_amd64_512/5.12.0/clang_64/mkspecs/features/mac/default_pre.prf @@ -62,6 +62,6 @@ ENV CXX /osxcross/target/bin/x86_64-apple-darwin19-clang++ RUN $GOPATH/bin/qtsetup prep darwin RUN $GOPATH/bin/qtsetup check darwin RUN $GOPATH/bin/qtsetup generate darwin -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build darwin && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build darwin && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/darwin/Dockerfile.static b/internal/docker/darwin/Dockerfile.static index a9e90072b..e3b719de2 100644 --- a/internal/docker/darwin/Dockerfile.static +++ b/internal/docker/darwin/Dockerfile.static @@ -14,7 +14,7 @@ RUN cd /osxcross && OSX_VERSION_MIN=10.12 UNATTENDED=1 ./build.sh RUN cd /osxcross && ./target/bin/o64-clang++-libc++ -o osxcross ./oclang/test_libcxx.cpp -FROM therecipe/qt:darwin_static_base +FROM bluszcz/cutego:darwin_static_base LABEL maintainer therecipe ENV USER user @@ -37,7 +37,7 @@ RUN ln -s /osxcross/target/bin/x86_64-apple-darwin19-otool /usr/bin/otool RUN ln -s /osxcross/target/bin/x86_64-apple-darwin19-install_name_tool /usr/bin/install_name_tool RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN go get github.com/therecipe/qt/cmd/... +RUN go get github.com/StarAurryon/qt/cmd/... RUN DST=$GOPATH/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/bin && rm -r $DST && cp -r $GOPATH/src/github.com/therecipe/env_linux_amd64_513/5.13.0/gcc_64/bin $DST RUN sed -i -e 's/error/warning/g' $GOPATH/src/github.com/therecipe/env_darwin_amd64_513/5.13.0/clang_64/mkspecs/features/mac/default_pre.prf @@ -56,7 +56,7 @@ ENV CXX /osxcross/target/bin/x86_64-apple-darwin19-clang++ RUN $GOPATH/bin/qtsetup prep darwin RUN $GOPATH/bin/qtsetup check darwin RUN $GOPATH/bin/qtsetup generate darwin -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build darwin && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build darwin && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/darwin/build.sh b/internal/docker/darwin/build.sh index a0aac4208..36604f69c 100755 --- a/internal/docker/darwin/build.sh +++ b/internal/docker/darwin/build.sh @@ -4,4 +4,4 @@ if [ ! -f MacOSX*.sdk.tar.xz ]; then GP=gen_sdk_package.sh && curl -sL --retry 10 --retry-delay 60 -O https://raw.githubusercontent.com/tpoechtrager/osxcross/master/tools/$GP && chmod +x $GP && ./$GP && rm $GP fi -docker build -f Dockerfile -t therecipe/qt:darwin . +docker build -f Dockerfile -t bluszcz/cutego:darwin . diff --git a/internal/docker/darwin/build_static.sh b/internal/docker/darwin/build_static.sh index 2e5e789b9..cc8320c50 100755 --- a/internal/docker/darwin/build_static.sh +++ b/internal/docker/darwin/build_static.sh @@ -4,4 +4,4 @@ if [ ! -f MacOSX*.sdk.tar.xz ]; then GP=gen_sdk_package.sh && curl -sL --retry 10 --retry-delay 60 -O https://raw.githubusercontent.com/tpoechtrager/osxcross/master/tools/$GP && chmod +x $GP && ./$GP && rm $GP fi -docker build -f Dockerfile.static -t therecipe/qt:darwin_static . +docker build -f Dockerfile.static -t bluszcz/cutego:darwin_static . diff --git a/internal/docker/darwin/build_static_base.sh b/internal/docker/darwin/build_static_base.sh index 38a83dd33..ecd793bb6 100755 --- a/internal/docker/darwin/build_static_base.sh +++ b/internal/docker/darwin/build_static_base.sh @@ -53,4 +53,4 @@ zip -r ${PREF}.zip $PREF && rm -rf $PREF du -sh ${PREF}.zip -docker build -f Dockerfile.static_base -t therecipe/qt:darwin_static_base . +docker build -f Dockerfile.static_base -t bluszcz/cutego:darwin_static_base . diff --git a/internal/docker/darwin/save.sh b/internal/docker/darwin/save.sh index d5cc326c7..b5a83f95d 100755 --- a/internal/docker/darwin/save.sh +++ b/internal/docker/darwin/save.sh @@ -1,3 +1,3 @@ #!/bin/bash -docker save therecipe/qt:darwin | gzip -n > darwin.tar.gz +docker save bluszcz/cutego:darwin | gzip -n > darwin.tar.gz diff --git a/internal/docker/docker_darwin_ci_template.yml b/internal/docker/docker_darwin_ci_template.yml index 83b5e1967..822c48d9a 100644 --- a/internal/docker/docker_darwin_ci_template.yml +++ b/internal/docker/docker_darwin_ci_template.yml @@ -9,7 +9,7 @@ jobs: GO111MODULE: off steps: - - script: 'go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup' + script: 'go get -v github.com/StarAurryon/qt/cmd/... && $(go env GOPATH)/bin/qtsetup' - job: '${{ parameters.name }}_module' timeoutInMinutes: 0 @@ -20,4 +20,4 @@ jobs: GO111MODULE: on steps: - - script: 'xcode-select --install; mkdir -p $(go env GOPATH)/src && cd $(go env GOPATH)/src && git clone https://github.com/therecipe/examples.git && cd ./examples && go install -v -tags=no_env github.com/therecipe/qt/cmd/... && go mod vendor && git clone https://github.com/therecipe/env_darwin_amd64_513.git vendor/github.com/therecipe/env_darwin_amd64_513 && $(go env GOPATH)/bin/qtsetup && $(go env GOPATH)/bin/qtdeploy test desktop ./basic/widgets' + script: 'xcode-select --install; mkdir -p $(go env GOPATH)/src && cd $(go env GOPATH)/src && git clone https://github.com/therecipe/examples.git && cd ./examples && go install -v -tags=no_env github.com/StarAurryon/qt/cmd/... && go mod vendor && git clone https://github.com/therecipe/env_darwin_amd64_513.git vendor/github.com/therecipe/env_darwin_amd64_513 && $(go env GOPATH)/bin/qtsetup && $(go env GOPATH)/bin/qtdeploy test desktop ./basic/widgets' diff --git a/internal/docker/docker_darwin_static_base_template.yml b/internal/docker/docker_darwin_static_base_template.yml index 857b21ace..9844c5b89 100644 --- a/internal/docker/docker_darwin_static_base_template.yml +++ b/internal/docker/docker_darwin_static_base_template.yml @@ -17,4 +17,4 @@ jobs: - script: 'cd internal/docker/darwin && ./build_static_base.sh' - - script: 'docker login -u therecipe -p $(DOCKER_PASSWORD) && docker push therecipe/qt:${{ parameters.tag }} && docker logout' + script: 'docker login -u therecipe -p $(DOCKER_PASSWORD) && docker push bluszcz/cutego:${{ parameters.tag }} && docker logout' diff --git a/internal/docker/docker_job_template.yml b/internal/docker/docker_job_template.yml index f7a4c6c78..82a120159 100644 --- a/internal/docker/docker_job_template.yml +++ b/internal/docker/docker_job_template.yml @@ -9,6 +9,6 @@ jobs: - script: 'sudo df -h; sudo rm -rf /usr/share/dotnet; sudo df -h;' - - script: 'docker build --force-rm -f internal/docker/${{ parameters.file }} -t therecipe/qt:${{ parameters.tag }} .' + script: 'docker build --force-rm -f internal/docker/${{ parameters.file }} -t bluszcz/cutego:${{ parameters.tag }} .' - - script: 'docker login -u therecipe -p $(DOCKER_PASSWORD) && docker push therecipe/qt:${{ parameters.tag }} && docker logout' + script: 'docker login -u therecipe -p $(DOCKER_PASSWORD) && docker push bluszcz/cutego:${{ parameters.tag }} && docker logout' diff --git a/internal/docker/docker_linux_ci_template.yml b/internal/docker/docker_linux_ci_template.yml index 43952a5cf..79c7745f6 100644 --- a/internal/docker/docker_linux_ci_template.yml +++ b/internal/docker/docker_linux_ci_template.yml @@ -12,7 +12,7 @@ jobs: - script: sudo apt-get -qq update && sudo apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev fcitx-frontend-qt5 - - script: 'go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup' + script: 'go get -v github.com/StarAurryon/qt/cmd/... && $(go env GOPATH)/bin/qtsetup' - job: '${{ parameters.name }}_module' timeoutInMinutes: 0 @@ -26,4 +26,4 @@ jobs: - script: sudo apt-get -qq update && sudo apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev fcitx-frontend-qt5 - - script: 'mkdir -p $(go env GOPATH)/src && cd $(go env GOPATH)/src && git clone https://github.com/therecipe/examples.git && cd ./examples && go install -v -tags=no_env github.com/therecipe/qt/cmd/... && go mod vendor && git clone https://github.com/therecipe/env_linux_amd64_513.git vendor/github.com/therecipe/env_linux_amd64_513 && $(go env GOPATH)/bin/qtsetup && $(go env GOPATH)/bin/qtdeploy test desktop ./basic/widgets' + script: 'mkdir -p $(go env GOPATH)/src && cd $(go env GOPATH)/src && git clone https://github.com/therecipe/examples.git && cd ./examples && go install -v -tags=no_env github.com/StarAurryon/qt/cmd/... && go mod vendor && git clone https://github.com/therecipe/env_linux_amd64_513.git vendor/github.com/therecipe/env_linux_amd64_513 && $(go env GOPATH)/bin/qtsetup && $(go env GOPATH)/bin/qtdeploy test desktop ./basic/widgets' diff --git a/internal/docker/docker_showcase_template.yml b/internal/docker/docker_showcase_template.yml index 6b20aa9d6..95d9dc72e 100644 --- a/internal/docker/docker_showcase_template.yml +++ b/internal/docker/docker_showcase_template.yml @@ -25,6 +25,6 @@ jobs: - script: 'brew install bbe' - - script: 'go get -v -tags=no_env github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup prep' + script: 'go get -v -tags=no_env github.com/StarAurryon/qt/cmd/... && $(go env GOPATH)/bin/qtsetup prep' - script: 'go get -v -d github.com/therecipe/${{ parameters.tag }} && cd $(go env GOPATH)/src/github.com/therecipe/${{ parameters.tag }} && ./deploy.sh && GITHUB_SECRET=$(GITHUB_SECRET) ./push.sh' diff --git a/internal/docker/docker_windows_ci_template.yml b/internal/docker/docker_windows_ci_template.yml index 493e04dab..3faeb8d1e 100644 --- a/internal/docker/docker_windows_ci_template.yml +++ b/internal/docker/docker_windows_ci_template.yml @@ -9,7 +9,7 @@ jobs: GO111MODULE: off steps: - - script: 'go get -v github.com/therecipe/qt/cmd/... && C:\Users\VssAdministrator\go\bin\qtsetup' + script: 'go get -v github.com/StarAurryon/qt/cmd/... && C:\Users\VssAdministrator\go\bin\qtsetup' - job: '${{ parameters.name }}_module' timeoutInMinutes: 0 @@ -22,5 +22,5 @@ jobs: - script: 'md C:\Users\VssAdministrator\go\src && git clone https://github.com/therecipe/examples.git C:\Users\VssAdministrator\go\src\examples' - - script: 'go install -v -tags=no_env github.com/therecipe/qt/cmd/... && go mod vendor && git clone https://github.com/therecipe/env_windows_amd64_513.git vendor/github.com/therecipe/env_windows_amd64_513 && C:\Users\VssAdministrator\go\bin\qtsetup && C:\Users\VssAdministrator\go\bin\qtdeploy test desktop ./basic/widgets' + script: 'go install -v -tags=no_env github.com/StarAurryon/qt/cmd/... && go mod vendor && git clone https://github.com/therecipe/env_windows_amd64_513.git vendor/github.com/therecipe/env_windows_amd64_513 && C:\Users\VssAdministrator\go\bin\qtsetup && C:\Users\VssAdministrator\go\bin\qtdeploy test desktop ./basic/widgets' workingDirectory: C:\Users\VssAdministrator\go\src\examples \ No newline at end of file diff --git a/internal/docker/js/Dockerfile.js b/internal/docker/js/Dockerfile.js index c4a9388ae..2b7fbfcdd 100644 --- a/internal/docker/js/Dockerfile.js +++ b/internal/docker/js/Dockerfile.js @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.12.9.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM ubuntu:16.04 @@ -22,10 +22,10 @@ ENV QT_QMAKE_DIR /usr/local/Qt-5.13.0/bin COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:js_base $HOME/emsdk $HOME/emsdk -COPY --from=therecipe/qt:js_base $HOME/.emscripten $HOME/.emscripten -COPY --from=therecipe/qt:js_base /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:js_base $HOME/emsdk $HOME/emsdk +COPY --from=bluszcz/cutego:js_base $HOME/.emscripten $HOME/.emscripten +COPY --from=bluszcz/cutego:js_base /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install python2.7 nodejs cmake default-jre && apt-get -qq clean RUN ln -s /usr/bin/python2.7 /usr/bin/python @@ -37,6 +37,6 @@ RUN $GOPATH/bin/qtsetup check js RUN QT_STUB=true $GOPATH/bin/qtsetup generate RUN $GOPATH/bin/qtsetup generate js RUN $GOPATH/bin/qtsetup install js -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build js && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build js && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/js/Dockerfile.js_thread b/internal/docker/js/Dockerfile.js_thread index fb509adc1..eda88ceda 100644 --- a/internal/docker/js/Dockerfile.js_thread +++ b/internal/docker/js/Dockerfile.js_thread @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.12.9.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM ubuntu:16.04 @@ -22,10 +22,10 @@ ENV QT_QMAKE_DIR /usr/local/Qt-5.13.0/bin COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:js_base_thread $HOME/emsdk $HOME/emsdk -COPY --from=therecipe/qt:js_base_thread $HOME/.emscripten $HOME/.emscripten -COPY --from=therecipe/qt:js_base_thread /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:js_base_thread $HOME/emsdk $HOME/emsdk +COPY --from=bluszcz/cutego:js_base_thread $HOME/.emscripten $HOME/.emscripten +COPY --from=bluszcz/cutego:js_base_thread /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install python2.7 nodejs cmake default-jre && apt-get -qq clean RUN ln -s /usr/bin/python2.7 /usr/bin/python @@ -37,6 +37,6 @@ RUN $GOPATH/bin/qtsetup check js RUN QT_STUB=true $GOPATH/bin/qtsetup generate RUN $GOPATH/bin/qtsetup generate js RUN $GOPATH/bin/qtsetup install js -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build js && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build js && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/js/Dockerfile.wasm b/internal/docker/js/Dockerfile.wasm index a943c6364..d3e69016e 100644 --- a/internal/docker/js/Dockerfile.wasm +++ b/internal/docker/js/Dockerfile.wasm @@ -9,12 +9,12 @@ ENV QT_API 5.13.0 ENV QT_DOCKER true ENV QT_QMAKE_DIR /usr/local/Qt-5.13.0/bin -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:js_base $HOME/emsdk $HOME/emsdk -COPY --from=therecipe/qt:js_base $HOME/.emscripten $HOME/.emscripten -COPY --from=therecipe/qt:js_base /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:js_base $HOME/emsdk $HOME/emsdk +COPY --from=bluszcz/cutego:js_base $HOME/.emscripten $HOME/.emscripten +COPY --from=bluszcz/cutego:js_base /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install python2.7 nodejs cmake default-jre && apt-get -qq clean RUN ln -s /usr/bin/python2.7 /usr/bin/python @@ -24,6 +24,6 @@ RUN $GOPATH/bin/qtsetup check wasm RUN QT_STUB=true $GOPATH/bin/qtsetup generate RUN $GOPATH/bin/qtsetup generate wasm RUN $GOPATH/bin/qtsetup install wasm -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build wasm && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build wasm && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/js/Dockerfile.wasm_thread b/internal/docker/js/Dockerfile.wasm_thread index 2964c82e1..0d67e8f13 100644 --- a/internal/docker/js/Dockerfile.wasm_thread +++ b/internal/docker/js/Dockerfile.wasm_thread @@ -9,12 +9,12 @@ ENV QT_API 5.13.0 ENV QT_DOCKER true ENV QT_QMAKE_DIR /usr/local/Qt-5.13.0/bin -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:js_base_thread $HOME/emsdk $HOME/emsdk -COPY --from=therecipe/qt:js_base_thread $HOME/.emscripten $HOME/.emscripten -COPY --from=therecipe/qt:js_base_thread /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:js_base_thread $HOME/emsdk $HOME/emsdk +COPY --from=bluszcz/cutego:js_base_thread $HOME/.emscripten $HOME/.emscripten +COPY --from=bluszcz/cutego:js_base_thread /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0 RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install python2.7 nodejs cmake default-jre && apt-get -qq clean RUN ln -s /usr/bin/python2.7 /usr/bin/python @@ -24,6 +24,6 @@ RUN $GOPATH/bin/qtsetup check wasm RUN QT_STUB=true $GOPATH/bin/qtsetup generate RUN $GOPATH/bin/qtsetup generate wasm RUN $GOPATH/bin/qtsetup install wasm -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build wasm && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build wasm && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile b/internal/docker/linux/Dockerfile index b82a91604..c22cac68a 100644 --- a/internal/docker/linux/Dockerfile +++ b/internal/docker/linux/Dockerfile @@ -6,12 +6,12 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install dbus fontconfig libx11-6 libx11-xcb1 ENV QT qt-opensource-linux-x64-5.13.0.run RUN curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/archive/qt/5.13/5.13.0/$QT && chmod +x $QT -RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs LINUX=true +RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs LINUX=true RUN find /opt/Qt5.13.0/5.13.0 -type f -name "*.debug" -delete RUN find /opt/Qt5.13.0/Docs -type f ! -name "*.index" -delete RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install binutils @@ -31,7 +31,7 @@ ENV QT_VERSION 5.13.0 COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /opt/Qt5.13.0/5.13.0 /opt/Qt5.13.0/5.13.0 COPY --from=base /opt/Qt5.13.0/Docs /opt/Qt5.13.0/Docs COPY --from=base /opt/Qt5.13.0/Licenses /opt/Qt5.13.0/Licenses @@ -42,7 +42,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-e RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.512 b/internal/docker/linux/Dockerfile.512 index 0e347f1ff..ace98a9a6 100644 --- a/internal/docker/linux/Dockerfile.512 +++ b/internal/docker/linux/Dockerfile.512 @@ -6,12 +6,12 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install dbus fontconfig libx11-6 libx11-xcb1 ENV QT qt-opensource-linux-x64-5.12.4.run RUN curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/archive/qt/5.12/5.12.4/$QT && chmod +x $QT -RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs LINUX=true VERSION=qt5.5124 +RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs LINUX=true VERSION=qt5.5124 RUN find /opt/Qt5.12.4/5.12.4 -type f -name "*.debug" -delete RUN find /opt/Qt5.12.4/Docs -type f ! -name "*.index" -delete RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install binutils @@ -31,7 +31,7 @@ ENV QT_VERSION 5.12.4 COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /opt/Qt5.12.4/5.12.4 /opt/Qt5.12.4/5.12.4 COPY --from=base /opt/Qt5.12.4/Docs /opt/Qt5.12.4/Docs @@ -41,6 +41,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-e RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.56 b/internal/docker/linux/Dockerfile.56 index 6787d499e..a73b2baad 100644 --- a/internal/docker/linux/Dockerfile.56 +++ b/internal/docker/linux/Dockerfile.56 @@ -6,13 +6,13 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install dbus fontconfig libx11-6 libx11-xcb1 ENV QT qt-opensource-linux-x64-5.6.3.run RUN curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/new_archive/qt/5.6/5.6.3/$QT && chmod +x $QT RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libglib2.0-dev libglu1-mesa-dev -RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs LINUX=true VERSION=563 +RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs LINUX=true VERSION=563 RUN find /opt/Qt5.6.3/5.6.3 -type f -name "*.debug" -delete RUN find /opt/Qt5.6.3/Docs -type f ! -name "*.index" -delete RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install binutils @@ -32,7 +32,7 @@ ENV QT_VERSION 5.6.3 COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /opt/Qt5.6.3/5.6.3/gcc_64 /opt/Qt5.6.3/5.6.3/gcc_64 COPY --from=base /opt/Qt5.6.3/Docs /opt/Qt5.6.3/Docs @@ -42,6 +42,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-e RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.59 b/internal/docker/linux/Dockerfile.59 index a46a02420..419d72e57 100644 --- a/internal/docker/linux/Dockerfile.59 +++ b/internal/docker/linux/Dockerfile.59 @@ -6,12 +6,12 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install dbus fontconfig libx11-6 libx11-xcb1 ENV QT qt-opensource-linux-x64-5.9.6.run RUN curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/archive/qt/5.9/5.9.6/$QT && chmod +x $QT -RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs LINUX=true VERSION=596 +RUN QT_QPA_PLATFORM=minimal ./$QT --no-force-installations --script $GOPATH/src/github.com/StarAurryon/qt/internal/ci/iscript.qs LINUX=true VERSION=596 RUN find /opt/Qt5.9.6/5.9.6 -type f -name "*.debug" -delete RUN find /opt/Qt5.9.6/Docs -type f ! -name "*.index" -delete RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install binutils @@ -31,7 +31,7 @@ ENV QT_VERSION 5.9.6 COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /opt/Qt5.9.6/5.9.6 /opt/Qt5.9.6/5.9.6 COPY --from=base /opt/Qt5.9.6/Docs /opt/Qt5.9.6/Docs @@ -41,6 +41,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-e RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.arch b/internal/docker/linux/Dockerfile.arch index 7c402a3c2..07cb865c1 100644 --- a/internal/docker/linux/Dockerfile.arch +++ b/internal/docker/linux/Dockerfile.arch @@ -7,7 +7,7 @@ ENV GOPATH $HOME/work RUN pacman -Syyu --quiet || true RUN pacman -S --noconfirm --needed --noprogressbar --quiet ca-certificates curl git tar RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM archlinux/base LABEL maintainer therecipe @@ -22,7 +22,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN pacman -Syyu --quiet || true RUN pacman -S --noconfirm --needed --noprogressbar --quiet base-devel glibc pkg-config && pacman -Scc --noconfirm --noprogressbar --quiet @@ -31,6 +31,6 @@ RUN pacman -S --noconfirm --needed --noprogressbar --quiet qt5 && pacman -Scc -- RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN pacman -S --noconfirm --needed --noprogressbar --quiet ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.debian_10 b/internal/docker/linux/Dockerfile.debian_10 index 70b75d2b9..75d990d61 100644 --- a/internal/docker/linux/Dockerfile.debian_10 +++ b/internal/docker/linux/Dockerfile.debian_10 @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM debian:10.0 LABEL maintainer therecipe @@ -21,7 +21,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -29,6 +29,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.debian_10_arm64 b/internal/docker/linux/Dockerfile.debian_10_arm64 index 2f2119c57..314d0b280 100644 --- a/internal/docker/linux/Dockerfile.debian_10_arm64 +++ b/internal/docker/linux/Dockerfile.debian_10_arm64 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-aarch64-debian:buster LABEL maintainer therecipe @@ -21,7 +21,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -29,7 +29,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.debian_10_armv6 b/internal/docker/linux/Dockerfile.debian_10_armv6 index bf74511a0..8a80b9841 100644 --- a/internal/docker/linux/Dockerfile.debian_10_armv6 +++ b/internal/docker/linux/Dockerfile.debian_10_armv6 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/raspberry-pi-debian:buster LABEL maintainer therecipe @@ -21,7 +21,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -29,7 +29,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.debian_10_armv7 b/internal/docker/linux/Dockerfile.debian_10_armv7 index b4f4a4056..49e24f099 100644 --- a/internal/docker/linux/Dockerfile.debian_10_armv7 +++ b/internal/docker/linux/Dockerfile.debian_10_armv7 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-armv7ahf-debian:buster LABEL maintainer therecipe @@ -21,7 +21,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -29,7 +29,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.debian_9 b/internal/docker/linux/Dockerfile.debian_9 index a2b1df103..d5d08b5e3 100644 --- a/internal/docker/linux/Dockerfile.debian_9 +++ b/internal/docker/linux/Dockerfile.debian_9 @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM debian:9.0 LABEL maintainer therecipe @@ -20,7 +20,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,6 +28,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.debian_9_arm64 b/internal/docker/linux/Dockerfile.debian_9_arm64 index a92cc9424..7c06b848d 100644 --- a/internal/docker/linux/Dockerfile.debian_9_arm64 +++ b/internal/docker/linux/Dockerfile.debian_9_arm64 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-aarch64-debian:stretch LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.debian_9_armv6 b/internal/docker/linux/Dockerfile.debian_9_armv6 index 6030dc1fa..3a30273d4 100644 --- a/internal/docker/linux/Dockerfile.debian_9_armv6 +++ b/internal/docker/linux/Dockerfile.debian_9_armv6 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/raspberry-pi-debian:stretch LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.debian_9_armv7 b/internal/docker/linux/Dockerfile.debian_9_armv7 index 615abdb76..cb2f7449e 100644 --- a/internal/docker/linux/Dockerfile.debian_9_armv7 +++ b/internal/docker/linux/Dockerfile.debian_9_armv7 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-armv7ahf-debian:stretch LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.fedora b/internal/docker/linux/Dockerfile.fedora index ec00f7fd3..1f4484994 100644 --- a/internal/docker/linux/Dockerfile.fedora +++ b/internal/docker/linux/Dockerfile.fedora @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN yum makecache && yum --skip-broken -y install git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM fedora:latest LABEL maintainer therecipe @@ -21,7 +21,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN yum makecache && yum -y groupinstall "C Development Tools and Libraries" && yum clean all RUN yum makecache && yum --skip-broken -y install mesa-libGLU-devel gstreamer-plugins-base pulseaudio-libs-devel glib2-devel && yum clean all @@ -30,6 +30,6 @@ RUN yum makecache && yum --skip-broken -y install qt5-* qt5-*-doc && yum clean a RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN yum makecache && yum --skip-broken -y install git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.fedora_arm64 b/internal/docker/linux/Dockerfile.fedora_arm64 index 0da5074dc..9b87c0f1b 100644 --- a/internal/docker/linux/Dockerfile.fedora_arm64 +++ b/internal/docker/linux/Dockerfile.fedora_arm64 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-aarch64-fedora:latest LABEL maintainer therecipe @@ -21,7 +21,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN yum makecache && yum -y groupinstall "C Development Tools and Libraries" && yum clean all RUN yum makecache && yum --skip-broken -y install mesa-libGLU-devel gstreamer-plugins-base pulseaudio-libs-devel glib2-devel && yum clean all @@ -30,7 +30,7 @@ RUN yum makecache && yum --skip-broken -y install qt5-* qt5-*-doc && yum clean a RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN yum makecache && yum --skip-broken -y install git pkg-config diff --git a/internal/docker/linux/Dockerfile.fedora_armv7 b/internal/docker/linux/Dockerfile.fedora_armv7 index 922960748..a189d360d 100644 --- a/internal/docker/linux/Dockerfile.fedora_armv7 +++ b/internal/docker/linux/Dockerfile.fedora_armv7 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-armv7ahf-fedora:latest LABEL maintainer therecipe @@ -21,7 +21,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN yum makecache && yum -y groupinstall "C Development Tools and Libraries" && yum clean all RUN yum makecache && yum --skip-broken -y install mesa-libGLU-devel gstreamer-plugins-base pulseaudio-libs-devel glib2-devel && yum clean all @@ -30,7 +30,7 @@ RUN yum makecache && yum --skip-broken -y install qt5-* qt5-*-doc && yum clean a RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN yum makecache && yum --skip-broken -y install git pkg-config diff --git a/internal/docker/linux/Dockerfile.static b/internal/docker/linux/Dockerfile.static index b202aaee2..6f95b4f2b 100644 --- a/internal/docker/linux/Dockerfile.static +++ b/internal/docker/linux/Dockerfile.static @@ -6,10 +6,10 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... -FROM therecipe/qt:linux_static_base as fcitx +FROM bluszcz/cutego:linux_static_base as fcitx ENV CMAKE_PREFIX_PATH /opt/Qt/5.13.0/gcc_64/lib/cmake/Qt5/ @@ -40,8 +40,8 @@ ENV QT_STATIC true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:linux_static_base /opt/Qt/5.13.0 /opt/Qt/5.13.0 +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:linux_static_base /opt/Qt/5.13.0 /opt/Qt/5.13.0 COPY --from=fcitx /fcitx-qt5/platforminputcontext/libfcitxplatforminputcontextplugin.a /opt/Qt/5.13.0/gcc_64/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.a RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev \ @@ -51,7 +51,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libfont RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.suse_leap b/internal/docker/linux/Dockerfile.suse_leap index e6891cd15..8a9f1200d 100644 --- a/internal/docker/linux/Dockerfile.suse_leap +++ b/internal/docker/linux/Dockerfile.suse_leap @@ -4,7 +4,7 @@ ENV GOPATH $HOME/work RUN zypper -q ref && zypper -n -q install --no-recommends curl git gzip tar RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM opensuse/leap:latest LABEL maintainer therecipe @@ -16,7 +16,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN zypper -q ref && zypper -n -q install --no-recommends -t pattern devel_basis && zypper clean -a RUN zypper -q ref && zypper -n -q install --no-recommends libqt5-qt*-devel && zypper clean -a @@ -24,6 +24,6 @@ RUN zypper -q ref && zypper -n -q install --no-recommends libqt5-qt*-devel && zy RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN zypper -q ref && zypper -n -q install --no-recommends git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.suse_tumbleweed b/internal/docker/linux/Dockerfile.suse_tumbleweed index 78b47699f..cbbfd2d1e 100644 --- a/internal/docker/linux/Dockerfile.suse_tumbleweed +++ b/internal/docker/linux/Dockerfile.suse_tumbleweed @@ -4,7 +4,7 @@ ENV GOPATH $HOME/work RUN zypper -q ref && zypper -n -q install --no-recommends curl git gzip tar RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM opensuse/tumbleweed:latest LABEL maintainer therecipe @@ -17,7 +17,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN zypper -q ref && zypper -n -q install --no-recommends -t pattern devel_basis && zypper clean -a RUN zypper -q ref && zypper -n -q install --no-recommends libqt5-qt*-devel && zypper clean -a @@ -25,7 +25,7 @@ RUN zypper -q ref && zypper -n -q install --no-recommends libqt5-qt*-devel && zy RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN zypper -q ref && zypper -n -q install --no-recommends git RUN zypper -q ref && zypper -n -q install --no-recommends pkg-config || true \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.ubuntu_16_04 b/internal/docker/linux/Dockerfile.ubuntu_16_04 index 15f476520..95e4f0018 100644 --- a/internal/docker/linux/Dockerfile.ubuntu_16_04 +++ b/internal/docker/linux/Dockerfile.ubuntu_16_04 @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM ubuntu:16.04 LABEL maintainer therecipe @@ -20,7 +20,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,6 +28,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/bridge2 && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/bridge2 && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.ubuntu_16_04_arm64 b/internal/docker/linux/Dockerfile.ubuntu_16_04_arm64 index fa06cf1c0..f780edf66 100644 --- a/internal/docker/linux/Dockerfile.ubuntu_16_04_arm64 +++ b/internal/docker/linux/Dockerfile.ubuntu_16_04_arm64 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-aarch64-ubuntu:xenial LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/bridge2 && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/bridge2 && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.ubuntu_16_04_armv7 b/internal/docker/linux/Dockerfile.ubuntu_16_04_armv7 index 77479335e..94ffea43b 100644 --- a/internal/docker/linux/Dockerfile.ubuntu_16_04_armv7 +++ b/internal/docker/linux/Dockerfile.ubuntu_16_04_armv7 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-armv7ahf-ubuntu:xenial LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/bridge2 && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/bridge2 && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.ubuntu_18_04 b/internal/docker/linux/Dockerfile.ubuntu_18_04 index dbc93ea86..d66736398 100644 --- a/internal/docker/linux/Dockerfile.ubuntu_18_04 +++ b/internal/docker/linux/Dockerfile.ubuntu_18_04 @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM ubuntu:18.04 LABEL maintainer therecipe @@ -20,7 +20,7 @@ ENV QT_PKG_CONFIG true COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,6 +28,6 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/linux/Dockerfile.ubuntu_18_04_arm64 b/internal/docker/linux/Dockerfile.ubuntu_18_04_arm64 index a24e791a2..16e7cfcbe 100644 --- a/internal/docker/linux/Dockerfile.ubuntu_18_04_arm64 +++ b/internal/docker/linux/Dockerfile.ubuntu_18_04_arm64 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-aarch64-ubuntu:bionic LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/linux/Dockerfile.ubuntu_18_04_armv7 b/internal/docker/linux/Dockerfile.ubuntu_18_04_armv7 index c14c8b326..813e37c4c 100644 --- a/internal/docker/linux/Dockerfile.ubuntu_18_04_armv7 +++ b/internal/docker/linux/Dockerfile.ubuntu_18_04_armv7 @@ -5,7 +5,7 @@ ENV HOME /home/$USER ENV GOPATH $HOME/work RUN [ "cross-build-start" ] -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM balenalib/generic-armv7ahf-ubuntu:bionic LABEL maintainer therecipe @@ -20,7 +20,7 @@ RUN [ "cross-build-start" ] COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install build-essential libglib2.0-dev libglu1-mesa-dev libpulse-dev && apt-get -qq clean RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5-dev qt*5-dev qt*5-doc-html && apt-get -qq clean @@ -28,7 +28,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install libqt*5 RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check RUN $GOPATH/bin/qtsetup generate -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build linux && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config diff --git a/internal/docker/rpi/Dockerfile.base b/internal/docker/rpi/Dockerfile.base index 34ee6af0a..36458c632 100644 --- a/internal/docker/rpi/Dockerfile.base +++ b/internal/docker/rpi/Dockerfile.base @@ -14,9 +14,9 @@ ENV RPI_TOOLS_DIR /opt/qtrpi/raspi/tools ENV RPI_COMPILER gcc-linaro-arm-linux-gnueabihf-raspbian-x64 -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git make && apt-get -qq clean diff --git a/internal/docker/rpi/Dockerfile.rpi1 b/internal/docker/rpi/Dockerfile.rpi1 index c595a3145..d17802f98 100644 --- a/internal/docker/rpi/Dockerfile.rpi1 +++ b/internal/docker/rpi/Dockerfile.rpi1 @@ -1,4 +1,4 @@ -FROM therecipe/qt:rpi_base +FROM bluszcz/cutego:rpi_base LABEL maintainer therecipe @@ -13,6 +13,6 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check rpi1 RUN $GOPATH/bin/qtsetup generate rpi1 RUN $GOPATH/bin/qtsetup install rpi1 -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build rpi1 && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build rpi1 && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/rpi/Dockerfile.rpi2 b/internal/docker/rpi/Dockerfile.rpi2 index e9a143498..69ed6c87a 100644 --- a/internal/docker/rpi/Dockerfile.rpi2 +++ b/internal/docker/rpi/Dockerfile.rpi2 @@ -1,4 +1,4 @@ -FROM therecipe/qt:rpi_base +FROM bluszcz/cutego:rpi_base LABEL maintainer therecipe @@ -13,6 +13,6 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check rpi2 RUN $GOPATH/bin/qtsetup generate rpi2 RUN $GOPATH/bin/qtsetup install rpi2 -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build rpi2 && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build rpi2 && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/rpi/Dockerfile.rpi3 b/internal/docker/rpi/Dockerfile.rpi3 index 3962b7e7a..f62ae054a 100644 --- a/internal/docker/rpi/Dockerfile.rpi3 +++ b/internal/docker/rpi/Dockerfile.rpi3 @@ -1,4 +1,4 @@ -FROM therecipe/qt:rpi_base +FROM bluszcz/cutego:rpi_base LABEL maintainer therecipe @@ -13,6 +13,6 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check rpi3 RUN $GOPATH/bin/qtsetup generate rpi3 RUN $GOPATH/bin/qtsetup install rpi3 -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build rpi3 && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build rpi3 && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/sailfish/Dockerfile b/internal/docker/sailfish/Dockerfile index 06de311e0..c0af1fe68 100644 --- a/internal/docker/sailfish/Dockerfile +++ b/internal/docker/sailfish/Dockerfile @@ -6,7 +6,7 @@ ENV GOPATH $HOME/work RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git RUN GO=go1.13.4.linux-386.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local -RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/... +RUN /usr/local/go/bin/go get -tags=no_env github.com/StarAurryon/qt/cmd/... FROM i386/ubuntu:14.04 @@ -23,7 +23,7 @@ ENV QT_SAILFISH_VERSION 2.2.1.18 COPY --from=base /usr/local/go /usr/local/go COPY --from=base $GOPATH/bin $GOPATH/bin -COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=base $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl p7zip-full && apt-get -qq clean RUN apt-get -qq update && apt-get -y -qq purge python && apt-get -qq clean @@ -79,10 +79,10 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup generate sailfish RUN $GOPATH/bin/qtsetup install sailfish -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/sailfish/listview && $GOPATH/bin/qtdeploy build sailfish && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/sailfish/listview && $GOPATH/bin/qtdeploy build sailfish && rm -rf ./deploy RUN $GOPATH/bin/qtsetup generate sailfish-emulator RUN $GOPATH/bin/qtsetup install sailfish-emulator -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/sailfish/listview && $GOPATH/bin/qtdeploy build sailfish-emulator && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/sailfish/listview && $GOPATH/bin/qtdeploy build sailfish-emulator && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates pkg-config \ No newline at end of file diff --git a/internal/docker/ubports/Dockerfile.64_vivid b/internal/docker/ubports/Dockerfile.64_vivid index 943f83fa1..e80c02bdd 100644 --- a/internal/docker/ubports/Dockerfile.64_vivid +++ b/internal/docker/ubports/Dockerfile.64_vivid @@ -12,9 +12,9 @@ ENV QT_UBPORTS_ARCH amd64 ENV QT_UBPORTS_VERSION vivid RUN rm -rf /usr/local/go || true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install qt*5-doc-html && apt-get -qq clean @@ -22,6 +22,6 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check ubports RUN $GOPATH/bin/qtsetup generate ubports RUN $GOPATH/bin/qtsetup install ubports -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/ubports/Dockerfile.64_xenial b/internal/docker/ubports/Dockerfile.64_xenial index c6eb309b0..7332c66ea 100644 --- a/internal/docker/ubports/Dockerfile.64_xenial +++ b/internal/docker/ubports/Dockerfile.64_xenial @@ -12,14 +12,14 @@ ENV QT_UBPORTS_ARCH amd64 ENV QT_UBPORTS_VERSION xenial RUN rm -rf /usr/local/go || true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check ubports RUN $GOPATH/bin/qtsetup generate ubports RUN $GOPATH/bin/qtsetup install ubports -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/ubports/Dockerfile.arm_vivid b/internal/docker/ubports/Dockerfile.arm_vivid index 7ff060447..cb655c886 100644 --- a/internal/docker/ubports/Dockerfile.arm_vivid +++ b/internal/docker/ubports/Dockerfile.arm_vivid @@ -12,9 +12,9 @@ ENV QT_UBPORTS_ARCH arm ENV QT_UBPORTS_VERSION vivid RUN rm -rf /usr/local/go || true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install qt*5-doc-html && apt-get -qq clean @@ -25,6 +25,6 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check ubports RUN $GOPATH/bin/qtsetup generate ubports || true RUN $GOPATH/bin/qtsetup install ubports -#RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy +#RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/ubports/Dockerfile.arm_xenial b/internal/docker/ubports/Dockerfile.arm_xenial index 129650d36..b1055f1d0 100644 --- a/internal/docker/ubports/Dockerfile.arm_xenial +++ b/internal/docker/ubports/Dockerfile.arm_xenial @@ -12,9 +12,9 @@ ENV QT_UBPORTS_ARCH arm ENV QT_UBPORTS_VERSION xenial RUN rm -rf /usr/local/go || true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt RUN ln -s /usr/lib/arm-linux-gnueabihf/qt5/qt.conf /usr/lib/qt5/bin/ @@ -22,6 +22,6 @@ RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check ubports RUN $GOPATH/bin/qtsetup generate ubports RUN $GOPATH/bin/qtsetup install ubports -#RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy +#RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/ubports/view && $GOPATH/bin/qtdeploy build ubports && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_32_shared/Dockerfile b/internal/docker/windows_32_shared/Dockerfile index 5f667cf50..20f80d4d2 100644 --- a/internal/docker/windows_32_shared/Dockerfile +++ b/internal/docker/windows_32_shared/Dockerfile @@ -10,15 +10,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH 386 ENV QT_MXE_STATIC false -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:windows_32_shared_base /usr/lib/mxe /usr/lib/mxe +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:windows_32_shared_base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_32_static/Dockerfile b/internal/docker/windows_32_static/Dockerfile index 6a91066c2..9ef2a4b98 100644 --- a/internal/docker/windows_32_static/Dockerfile +++ b/internal/docker/windows_32_static/Dockerfile @@ -10,15 +10,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH 386 ENV QT_MXE_STATIC true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:windows_32_static_base /usr/lib/mxe /usr/lib/mxe +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:windows_32_static_base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_64_shared/Dockerfile b/internal/docker/windows_64_shared/Dockerfile index 7ae80aa45..5ee027e79 100644 --- a/internal/docker/windows_64_shared/Dockerfile +++ b/internal/docker/windows_64_shared/Dockerfile @@ -10,15 +10,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH amd64 ENV QT_MXE_STATIC false -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:windows_64_shared_base /usr/lib/mxe /usr/lib/mxe +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:windows_64_shared_base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_64_static/Dockerfile b/internal/docker/windows_64_static/Dockerfile index f7d20c401..31456a3ec 100644 --- a/internal/docker/windows_64_static/Dockerfile +++ b/internal/docker/windows_64_static/Dockerfile @@ -10,15 +10,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH amd64 ENV QT_MXE_STATIC true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt -COPY --from=therecipe/qt:windows_64_static_base /usr/lib/mxe /usr/lib/mxe +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt +COPY --from=bluszcz/cutego:windows_64_static_base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_legacy/Dockerfile.32_shared b/internal/docker/windows_legacy/Dockerfile.32_shared index 90521ce37..6bb1d8eb3 100644 --- a/internal/docker/windows_legacy/Dockerfile.32_shared +++ b/internal/docker/windows_legacy/Dockerfile.32_shared @@ -16,15 +16,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH 386 ENV QT_MXE_STATIC false -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_legacy/Dockerfile.32_static b/internal/docker/windows_legacy/Dockerfile.32_static index e104046a9..4344a3f80 100644 --- a/internal/docker/windows_legacy/Dockerfile.32_static +++ b/internal/docker/windows_legacy/Dockerfile.32_static @@ -16,15 +16,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH 386 ENV QT_MXE_STATIC true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_legacy/Dockerfile.64_shared b/internal/docker/windows_legacy/Dockerfile.64_shared index ab183227b..d0a12a874 100644 --- a/internal/docker/windows_legacy/Dockerfile.64_shared +++ b/internal/docker/windows_legacy/Dockerfile.64_shared @@ -16,15 +16,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH amd64 ENV QT_MXE_STATIC false -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/windows_legacy/Dockerfile.64_static b/internal/docker/windows_legacy/Dockerfile.64_static index e2792e5f1..dea884918 100644 --- a/internal/docker/windows_legacy/Dockerfile.64_static +++ b/internal/docker/windows_legacy/Dockerfile.64_static @@ -16,15 +16,15 @@ ENV QT_MXE true ENV QT_MXE_ARCH amd64 ENV QT_MXE_STATIC true -COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go -COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin -COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt +COPY --from=bluszcz/cutego:linux /usr/local/go /usr/local/go +COPY --from=bluszcz/cutego:linux $GOPATH/bin $GOPATH/bin +COPY --from=bluszcz/cutego:linux $GOPATH/src/github.com/StarAurryon/qt $GOPATH/src/github.com/StarAurryon/qt COPY --from=base /usr/lib/mxe /usr/lib/mxe RUN $GOPATH/bin/qtsetup prep RUN $GOPATH/bin/qtsetup check windows RUN $GOPATH/bin/qtsetup generate windows RUN $GOPATH/bin/qtsetup install windows -RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy +RUN cd $GOPATH/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && $GOPATH/bin/qtdeploy build windows && rm -rf ./deploy RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config \ No newline at end of file diff --git a/internal/docker/wine/Dockerfile b/internal/docker/wine/Dockerfile index 85eec9d57..6fdcc43c4 100644 --- a/internal/docker/wine/Dockerfile +++ b/internal/docker/wine/Dockerfile @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base RUN QT=qt-opensource-windows-x86-5.13.0.exe && curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/official_releases/qt/5.13/5.13.0/$QT \ && QT_QPA_PLATFORM=minimal xvfb-run wine Z:\\$QT --no-force-installations --script=C:\\gopath\\src\\github.com\\therecipe\\qt\\internal\\ci\\iscript.qs WINDOWS=true && rm -f $QT @@ -20,7 +20,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/5.13.0/mingw73_64 $HOME/.wine/drive_c/Qt/Qt5.13.0/5.13.0/mingw73_64 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/Docs $HOME/.wine/drive_c/Qt/Qt5.13.0/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/Licenses $HOME/.wine/drive_c/Qt/Qt5.13.0/Licenses @@ -42,7 +42,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.32 b/internal/docker/wine/Dockerfile.32 index 1d57327d6..cdd92f95f 100644 --- a/internal/docker/wine/Dockerfile.32 +++ b/internal/docker/wine/Dockerfile.32 @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base RUN QT=qt-opensource-windows-x86-5.13.0.exe && curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/official_releases/qt/5.13/5.13.0/$QT \ && QT_QPA_PLATFORM=minimal xvfb-run wine Z:\\$QT --no-force-installations --script=C:\\gopath\\src\\github.com\\therecipe\\qt\\internal\\ci\\iscript.qs WINDOWS=true ARCH=32 && rm -f $QT @@ -21,7 +21,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/5.13.0/mingw73_32 $HOME/.wine/drive_c/Qt/Qt5.13.0/5.13.0/mingw73_32 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/Docs $HOME/.wine/drive_c/Qt/Qt5.13.0/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/Licenses $HOME/.wine/drive_c/Qt/Qt5.13.0/Licenses @@ -42,7 +42,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.32_shared b/internal/docker/wine/Dockerfile.32_shared index ebe244413..a306f8969 100644 --- a/internal/docker/wine/Dockerfile.32_shared +++ b/internal/docker/wine/Dockerfile.32_shared @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base #TODO: use pacman instead @@ -81,7 +81,7 @@ ENV WINEPATH C:\\mingw32\\bin;C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/mingw32 $HOME/.wine/drive_c/mingw32 COPY --from=base $HOME/.wine/drive_c/msys64/mingw32/bin $HOME/.wine/drive_c/msys64/mingw32/bin COPY --from=base $HOME/.wine/drive_c/msys64/mingw32/include $HOME/.wine/drive_c/msys64/mingw32/include @@ -107,7 +107,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.32_static b/internal/docker/wine/Dockerfile.32_static index 3f9bcb867..75a07514a 100644 --- a/internal/docker/wine/Dockerfile.32_static +++ b/internal/docker/wine/Dockerfile.32_static @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base #TODO: use pacman instead @@ -88,7 +88,7 @@ ENV WINEPATH C:\\mingw32\\bin;C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/mingw32 $HOME/.wine/drive_c/mingw32 COPY --from=base $HOME/.wine/drive_c/msys64/mingw32/qt5-static/bin $HOME/.wine/drive_c/msys64/mingw32/qt5-static/bin @@ -110,7 +110,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install winehq- RUN WINEDLLOVERRIDES="mscoree,mshtml=" wineboot && wineserver -w RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install patch && apt-get -qq clean -ADD https://raw.githubusercontent.com/therecipe/qt/master/internal/docker/wine/rspfile.patch $HOME/.wine/drive_c/go/rspfile.patch +ADD https://raw.githubusercontent.com/bluszcz/cutego/master/internal/docker/wine/rspfile.patch $HOME/.wine/drive_c/go/rspfile.patch RUN cd $HOME/.wine/drive_c/go && patch -p 1 < rspfile.patch RUN wine go install cmd/go cmd/link @@ -124,7 +124,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.512 b/internal/docker/wine/Dockerfile.512 index 08a2c6b6a..a3708471d 100644 --- a/internal/docker/wine/Dockerfile.512 +++ b/internal/docker/wine/Dockerfile.512 @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base RUN QT=qt-opensource-windows-x86-5.12.4.exe && curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/official_releases/qt/5.12/5.12.4/$QT \ && QT_QPA_PLATFORM=minimal xvfb-run wine Z:\\$QT --no-force-installations --script=C:\\gopath\\src\\github.com\\therecipe\\qt\\internal\\ci\\iscript.qs WINDOWS=true VERSION=qt5.5124 && rm -f $QT @@ -20,7 +20,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.12.4/5.12.4/mingw73_64 $HOME/.wine/drive_c/Qt/Qt5.12.4/5.12.4/mingw73_64 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.12.4/Docs $HOME/.wine/drive_c/Qt/Qt5.12.4/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.12.4/Licenses $HOME/.wine/drive_c/Qt/Qt5.12.4/Licenses @@ -42,7 +42,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.56 b/internal/docker/wine/Dockerfile.56 index 0503d038d..b77353c5b 100644 --- a/internal/docker/wine/Dockerfile.56 +++ b/internal/docker/wine/Dockerfile.56 @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base ENV QT qt-opensource-windows-x86-mingw492-5.6.3.exe RUN curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/new_archive/qt/5.6/5.6.3/$QT @@ -21,7 +21,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.6.3/5.6.3/mingw49_32 $HOME/.wine/drive_c/Qt/Qt5.6.3/5.6.3/mingw49_32 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.6.3/Docs $HOME/.wine/drive_c/Qt/Qt5.6.3/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.6.3/Tools/mingw492_32 $HOME/.wine/drive_c/Qt/Qt5.6.3/Tools/mingw492_32 @@ -42,7 +42,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.56_xp b/internal/docker/wine/Dockerfile.56_xp index 4e912ebc6..9655316db 100644 --- a/internal/docker/wine/Dockerfile.56_xp +++ b/internal/docker/wine/Dockerfile.56_xp @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base_xp as base +FROM bluszcz/cutego:wine_base_xp as base ENV QT qt-opensource-windows-x86-mingw492-5.6.3.exe RUN curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/new_archive/qt/5.6/5.6.3/$QT @@ -21,7 +21,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.6.3/5.6.3/mingw49_32 $HOME/.wine/drive_c/Qt/Qt5.6.3/5.6.3/mingw49_32 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.6.3/Docs $HOME/.wine/drive_c/Qt/Qt5.6.3/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.6.3/Tools/mingw492_32 $HOME/.wine/drive_c/Qt/Qt5.6.3/Tools/mingw492_32 @@ -42,7 +42,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.59 b/internal/docker/wine/Dockerfile.59 index 17508074d..a7c18b5e7 100644 --- a/internal/docker/wine/Dockerfile.59 +++ b/internal/docker/wine/Dockerfile.59 @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base RUN QT=qt-opensource-windows-x86-5.9.6.exe && curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/official_releases/qt/5.9/5.9.6/$QT \ && QT_QPA_PLATFORM=minimal xvfb-run wine Z:\\$QT --no-force-installations --script=C:\\gopath\\src\\github.com\\therecipe\\qt\\internal\\ci\\iscript.qs WINDOWS=true VERSION=596 && rm -f $QT @@ -20,7 +20,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.9.6/5.9.6/mingw53_32 $HOME/.wine/drive_c/Qt/Qt5.9.6/5.9.6/mingw53_32 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.9.6/Docs $HOME/.wine/drive_c/Qt/Qt5.9.6/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.9.6/Tools/mingw530_32 $HOME/.wine/drive_c/Qt/Qt5.9.6/Tools/mingw530_32 @@ -41,7 +41,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.64_msvc b/internal/docker/wine/Dockerfile.64_msvc index 5cf468bbc..8d2fcba68 100644 --- a/internal/docker/wine/Dockerfile.64_msvc +++ b/internal/docker/wine/Dockerfile.64_msvc @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base RUN QT=qt-opensource-windows-x86-5.13.0.exe && curl -sL --retry 10 --retry-delay 60 -O https://download.qt.io/official_releases/qt/5.13/5.13.0/$QT \ && QT_QPA_PLATFORM=minimal xvfb-run wine Z:\\$QT --no-force-installations --script=C:\\gopath\\src\\github.com\\therecipe\\qt\\internal\\ci\\iscript.qs WINDOWS=true MSVC=true && rm -f $QT @@ -32,7 +32,7 @@ ENV WINEPATH C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/5.13.0/msvc2017_64 $HOME/.wine/drive_c/Qt/Qt5.13.0/5.13.0/msvc2017_64 COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/Docs $HOME/.wine/drive_c/Qt/Qt5.13.0/Docs COPY --from=base $HOME/.wine/drive_c/Qt/Qt5.13.0/Licenses $HOME/.wine/drive_c/Qt/Qt5.13.0/Licenses @@ -56,7 +56,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.64_shared b/internal/docker/wine/Dockerfile.64_shared index fe76b097a..4360bd3f9 100644 --- a/internal/docker/wine/Dockerfile.64_shared +++ b/internal/docker/wine/Dockerfile.64_shared @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base #TODO: use pacman instead @@ -81,7 +81,7 @@ ENV WINEPATH C:\\mingw64\\bin;C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/mingw64 $HOME/.wine/drive_c/mingw64 COPY --from=base $HOME/.wine/drive_c/msys64/mingw64/bin $HOME/.wine/drive_c/msys64/mingw64/bin COPY --from=base $HOME/.wine/drive_c/msys64/mingw64/include $HOME/.wine/drive_c/msys64/mingw64/include @@ -107,7 +107,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.64_static b/internal/docker/wine/Dockerfile.64_static index 11e6f6ca2..eee847ef3 100644 --- a/internal/docker/wine/Dockerfile.64_static +++ b/internal/docker/wine/Dockerfile.64_static @@ -1,4 +1,4 @@ -FROM therecipe/qt:wine_base as base +FROM bluszcz/cutego:wine_base as base #TODO: use pacman instead @@ -88,7 +88,7 @@ ENV WINEPATH C:\\mingw64\\bin;C:\\go\\bin COPY --from=base $HOME/.wine/drive_c/go $HOME/.wine/drive_c/go COPY --from=base $HOME/.wine/drive_c/gopath/bin $HOME/.wine/drive_c/gopath/bin -COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt +COPY --from=base $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt COPY --from=base $HOME/.wine/drive_c/mingw64 $HOME/.wine/drive_c/mingw64 COPY --from=base $HOME/.wine/drive_c/msys64/mingw64/qt5-static/bin $HOME/.wine/drive_c/msys64/mingw64/qt5-static/bin @@ -110,7 +110,7 @@ RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install winehq- RUN WINEDLLOVERRIDES="mscoree,mshtml=" wineboot && wineserver -w RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install patch && apt-get -qq clean -ADD https://raw.githubusercontent.com/therecipe/qt/master/internal/docker/wine/rspfile.patch $HOME/.wine/drive_c/go/rspfile.patch +ADD https://raw.githubusercontent.com/bluszcz/cutego/master/internal/docker/wine/rspfile.patch $HOME/.wine/drive_c/go/rspfile.patch RUN cd $HOME/.wine/drive_c/go && patch -p 1 < rspfile.patch RUN wine go install cmd/go cmd/link @@ -124,7 +124,7 @@ RUN echo 'REGEDIT4\n\n\ RUN wine $GOPATH\\bin\\qtsetup prep RUN wine $GOPATH\\bin\\qtsetup check RUN wine $GOPATH\\bin\\qtsetup generate -RUN cd $HOME/.wine/drive_c/gopath/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy +RUN cd $HOME/.wine/drive_c/gopath/src/github.com/StarAurryon/qt/internal/examples/widgets/line_edits && sed -i -e 's/AddWidget2/AddWidget/g' line_edits.go && wine qtdeploy build && rm -rf ./deploy RUN echo "#!/bin/bash\nexport GOPATH=\$(winepath -0 -w \$(echo \$GOPATH | sed -e 's/:/ /g') | sed -e 's/Z:/;Z:/2g')" > /usr/bin/qtpath && chmod +x /usr/bin/qtpath RUN echo '#!/bin/bash\nsource qtpath\nwine qtdeploy "$@"' > /usr/bin/qtdeploy && chmod +x /usr/bin/qtdeploy diff --git a/internal/docker/wine/Dockerfile.base b/internal/docker/wine/Dockerfile.base index 60ac4abbd..d3a7a7c32 100644 --- a/internal/docker/wine/Dockerfile.base +++ b/internal/docker/wine/Dockerfile.base @@ -8,7 +8,7 @@ ENV WINEDEBUG -all RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git && apt-get -qq clean RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local && rm -f $GO -RUN GOOS=windows /usr/local/go/bin/go get -d -tags=no_env github.com/therecipe/qt/cmd/... +RUN GOOS=windows /usr/local/go/bin/go get -d -tags=no_env github.com/StarAurryon/qt/cmd/... RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install software-properties-common apt-transport-https && apt-get -qq clean RUN dpkg --add-architecture i386 @@ -21,4 +21,4 @@ RUN curl -sL --retry 10 --retry-delay 60 -O https://raw.githubusercontent.com/Wi RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install unzip && apt-get -qq clean RUN GO=go1.11.9.windows-amd64.zip && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && unzip -qq $GO -d $HOME/.wine/drive_c && rm -f $GO -RUN GOPATH=C:\\gopath wine C:\\go\\bin\\go install -ldflags="-s -w" -tags=no_env github.com/therecipe/qt/cmd/... +RUN GOPATH=C:\\gopath wine C:\\go\\bin\\go install -ldflags="-s -w" -tags=no_env github.com/StarAurryon/qt/cmd/... diff --git a/internal/docker/wine/Dockerfile.base_xp b/internal/docker/wine/Dockerfile.base_xp index debcb4cb3..503b8b9ed 100644 --- a/internal/docker/wine/Dockerfile.base_xp +++ b/internal/docker/wine/Dockerfile.base_xp @@ -8,7 +8,7 @@ ENV WINEDEBUG -all RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git && apt-get -qq clean RUN GO=go1.13.4.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local && rm -f $GO -RUN GOOS=windows /usr/local/go/bin/go get -d -tags=no_env github.com/therecipe/qt/cmd/... +RUN GOOS=windows /usr/local/go/bin/go get -d -tags=no_env github.com/StarAurryon/qt/cmd/... RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install software-properties-common apt-transport-https && apt-get -qq clean RUN dpkg --add-architecture i386 @@ -21,4 +21,4 @@ RUN curl -sL --retry 10 --retry-delay 60 -O https://raw.githubusercontent.com/Wi RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install unzip && apt-get -qq clean RUN GO=go1.10.8.windows-amd64.zip && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && unzip -qq $GO -d $HOME/.wine/drive_c && rm -f $GO -RUN GOPATH=C:\\gopath wine C:\\go\\bin\\go install -ldflags="-s -w" -tags=no_env github.com/therecipe/qt/cmd/... +RUN GOPATH=C:\\gopath wine C:\\go\\bin\\go install -ldflags="-s -w" -tags=no_env github.com/StarAurryon/qt/cmd/... diff --git a/internal/examples/3rdparty/fluid/demo/main.go b/internal/examples/3rdparty/fluid/demo/main.go index 065f71e08..1c0ab6e91 100644 --- a/internal/examples/3rdparty/fluid/demo/main.go +++ b/internal/examples/3rdparty/fluid/demo/main.go @@ -5,10 +5,10 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quickcontrols2" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quickcontrols2" ) func main() { diff --git a/internal/examples/3rdparty/kirigami/demo/demo/main.go b/internal/examples/3rdparty/kirigami/demo/demo/main.go index 83a9b58af..8e3d0d774 100644 --- a/internal/examples/3rdparty/kirigami/demo/demo/main.go +++ b/internal/examples/3rdparty/kirigami/demo/demo/main.go @@ -5,10 +5,10 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quickcontrols2" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quickcontrols2" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/3rdparty/mpv/demo/main.go b/internal/examples/3rdparty/mpv/demo/main.go index 6195f4240..c0d2a981e 100644 --- a/internal/examples/3rdparty/mpv/demo/main.go +++ b/internal/examples/3rdparty/mpv/demo/main.go @@ -5,11 +5,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - "github.com/therecipe/qt/internal/examples/3rdparty/mpv" + "github.com/bluszcz/cutego/internal/examples/3rdparty/mpv" ) func main() { diff --git a/internal/examples/3rdparty/mpv/mpv.go b/internal/examples/3rdparty/mpv/mpv.go index 3ffd13969..cd804d38d 100644 --- a/internal/examples/3rdparty/mpv/mpv.go +++ b/internal/examples/3rdparty/mpv/mpv.go @@ -3,7 +3,7 @@ package mpv //it's also possible to directly place this file beside the files from mpv-examples/libmpv/qml //to get this working, change init.go to just run `make mocables` //and remove the cgo LDFLAGS line used to link against the static lib below -//more info: https://github.com/therecipe/qt/issues/1162 +//more info: https://github.com/bluszcz/cutego/issues/1162 /* #cgo pkg-config: mpv @@ -13,8 +13,8 @@ void initMpv(); */ import "C" import ( - "github.com/therecipe/qt/core" - _ "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + _ "github.com/bluszcz/cutego/quick" ) type stub struct{ core.QObject } //TODO: needed for linking at the moment diff --git a/internal/examples/3rdparty/printslides/cmd/printslides/printslides.go b/internal/examples/3rdparty/printslides/cmd/printslides/printslides.go index f8dd15414..65bec855c 100644 --- a/internal/examples/3rdparty/printslides/cmd/printslides/printslides.go +++ b/internal/examples/3rdparty/printslides/cmd/printslides/printslides.go @@ -7,8 +7,8 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) func main() { diff --git a/internal/examples/3rdparty/printslides/cmd/printslides/slideview.go b/internal/examples/3rdparty/printslides/cmd/printslides/slideview.go index 7e6877737..046bf4c25 100644 --- a/internal/examples/3rdparty/printslides/cmd/printslides/slideview.go +++ b/internal/examples/3rdparty/printslides/cmd/printslides/slideview.go @@ -5,10 +5,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/printsupport" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/printsupport" + "github.com/bluszcz/cutego/quick" ) type SlideView struct { diff --git a/internal/examples/3rdparty/qml-material/demo/main.go b/internal/examples/3rdparty/qml-material/demo/main.go index 7f913d406..d665c2e60 100644 --- a/internal/examples/3rdparty/qml-material/demo/main.go +++ b/internal/examples/3rdparty/qml-material/demo/main.go @@ -5,12 +5,12 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quickcontrols2" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quickcontrols2" - _ "github.com/therecipe/qt/internal/examples/3rdparty/qml-material/demo/icons" + _ "github.com/bluszcz/cutego/internal/examples/3rdparty/qml-material/demo/icons" ) func main() { diff --git a/internal/examples/3rdparty/quickflux/demo/middleware/main.go b/internal/examples/3rdparty/quickflux/demo/middleware/main.go index a784bc9d3..9af1e2089 100644 --- a/internal/examples/3rdparty/quickflux/demo/middleware/main.go +++ b/internal/examples/3rdparty/quickflux/demo/middleware/main.go @@ -5,11 +5,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" - _ "github.com/therecipe/qt/internal/examples/3rdparty/quickflux/quickflux" + _ "github.com/bluszcz/cutego/internal/examples/3rdparty/quickflux/quickflux" ) func main() { diff --git a/internal/examples/3rdparty/quickflux/demo/photoalbum/main.go b/internal/examples/3rdparty/quickflux/demo/photoalbum/main.go index a784bc9d3..9af1e2089 100644 --- a/internal/examples/3rdparty/quickflux/demo/photoalbum/main.go +++ b/internal/examples/3rdparty/quickflux/demo/photoalbum/main.go @@ -5,11 +5,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" - _ "github.com/therecipe/qt/internal/examples/3rdparty/quickflux/quickflux" + _ "github.com/bluszcz/cutego/internal/examples/3rdparty/quickflux/quickflux" ) func main() { diff --git a/internal/examples/3rdparty/quickflux/demo/todo/main.go b/internal/examples/3rdparty/quickflux/demo/todo/main.go index a784bc9d3..9af1e2089 100644 --- a/internal/examples/3rdparty/quickflux/demo/todo/main.go +++ b/internal/examples/3rdparty/quickflux/demo/todo/main.go @@ -5,11 +5,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" - _ "github.com/therecipe/qt/internal/examples/3rdparty/quickflux/quickflux" + _ "github.com/bluszcz/cutego/internal/examples/3rdparty/quickflux/quickflux" ) func main() { diff --git a/internal/examples/3rdparty/quickflux/init.go b/internal/examples/3rdparty/quickflux/init.go index 256688136..4e4f2c2a9 100644 --- a/internal/examples/3rdparty/quickflux/init.go +++ b/internal/examples/3rdparty/quickflux/init.go @@ -110,8 +110,8 @@ func main() { const quickflux_stub = `package quickflux import ( - "github.com/therecipe/qt/core" - _ "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + _ "github.com/bluszcz/cutego/quick" ) type quickflux_stub struct { diff --git a/internal/examples/3rdparty/qzxing/demo/BarcodeEncoder/main.go b/internal/examples/3rdparty/qzxing/demo/BarcodeEncoder/main.go index caf25d2b7..418b017d2 100644 --- a/internal/examples/3rdparty/qzxing/demo/BarcodeEncoder/main.go +++ b/internal/examples/3rdparty/qzxing/demo/BarcodeEncoder/main.go @@ -5,11 +5,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" - "github.com/therecipe/qt/internal/examples/3rdparty/qzxing" + "github.com/bluszcz/cutego/internal/examples/3rdparty/qzxing" ) func main() { diff --git a/internal/examples/3rdparty/qzxing/demo/QZXingLive/application.go b/internal/examples/3rdparty/qzxing/demo/QZXingLive/application.go index 27fa13747..942cbc61e 100644 --- a/internal/examples/3rdparty/qzxing/demo/QZXingLive/application.go +++ b/internal/examples/3rdparty/qzxing/demo/QZXingLive/application.go @@ -3,9 +3,9 @@ package main import ( "runtime" - "github.com/therecipe/qt/androidextras" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/androidextras" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" ) var Application *application diff --git a/internal/examples/3rdparty/qzxing/demo/QZXingLive/main.go b/internal/examples/3rdparty/qzxing/demo/QZXingLive/main.go index 854b3c7ed..1e0301a12 100644 --- a/internal/examples/3rdparty/qzxing/demo/QZXingLive/main.go +++ b/internal/examples/3rdparty/qzxing/demo/QZXingLive/main.go @@ -5,10 +5,10 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" - "github.com/therecipe/qt/internal/examples/3rdparty/qzxing" + "github.com/bluszcz/cutego/internal/examples/3rdparty/qzxing" ) func main() { diff --git a/internal/examples/3rdparty/qzxing/qzxing.go b/internal/examples/3rdparty/qzxing/qzxing.go index 4cd55bdbc..6567ad5d8 100644 --- a/internal/examples/3rdparty/qzxing/qzxing.go +++ b/internal/examples/3rdparty/qzxing/qzxing.go @@ -17,8 +17,8 @@ package qzxing */ import "C" import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" ) type stub struct{ core.QObject } //needed to make QtCore available to qzxing/src/QZXing.h diff --git a/internal/examples/3rdparty/sparkle/main.go b/internal/examples/3rdparty/sparkle/main.go index 12f29960b..f8bfcd8c2 100644 --- a/internal/examples/3rdparty/sparkle/main.go +++ b/internal/examples/3rdparty/sparkle/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/3rdparty/stratifyqml/demo/main.go b/internal/examples/3rdparty/stratifyqml/demo/main.go index d994efb8e..299ebfe64 100644 --- a/internal/examples/3rdparty/stratifyqml/demo/main.go +++ b/internal/examples/3rdparty/stratifyqml/demo/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/3rdparty/uglobalhotkey/demo/main.go b/internal/examples/3rdparty/uglobalhotkey/demo/main.go index 18e23b812..361f0b5f8 100644 --- a/internal/examples/3rdparty/uglobalhotkey/demo/main.go +++ b/internal/examples/3rdparty/uglobalhotkey/demo/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" - "github.com/therecipe/qt/internal/examples/3rdparty/uglobalhotkey/UGlobalHotkey" + "github.com/bluszcz/cutego/internal/examples/3rdparty/uglobalhotkey/UGlobalHotkey" ) func main() { diff --git a/internal/examples/3rdparty/uglobalhotkey/patch/ugh.go b/internal/examples/3rdparty/uglobalhotkey/patch/ugh.go index a86eb9ea5..e7f8e228d 100644 --- a/internal/examples/3rdparty/uglobalhotkey/patch/ugh.go +++ b/internal/examples/3rdparty/uglobalhotkey/patch/ugh.go @@ -8,9 +8,9 @@ import ( "runtime" "unsafe" - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" ) type UGlobalHotkeys struct { diff --git a/internal/examples/3rdparty/uglobalhotkey/patch/ugh_cgo.go b/internal/examples/3rdparty/uglobalhotkey/patch/ugh_cgo.go index 9dea02a66..47c69cdeb 100644 --- a/internal/examples/3rdparty/uglobalhotkey/patch/ugh_cgo.go +++ b/internal/examples/3rdparty/uglobalhotkey/patch/ugh_cgo.go @@ -14,6 +14,6 @@ package UGlobalHotkey */ import "C" -import "github.com/therecipe/qt/widgets" +import "github.com/bluszcz/cutego/widgets" type stub struct{ widgets.QWidget } diff --git a/internal/examples/3rdparty/winsparkle/main.go b/internal/examples/3rdparty/winsparkle/main.go index 12f29960b..f8bfcd8c2 100644 --- a/internal/examples/3rdparty/winsparkle/main.go +++ b/internal/examples/3rdparty/winsparkle/main.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/androidextras/jni/jni.go b/internal/examples/androidextras/jni/jni.go index 3933deccd..770666e3b 100644 --- a/internal/examples/androidextras/jni/jni.go +++ b/internal/examples/androidextras/jni/jni.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/androidextras/jni/runnable.go b/internal/examples/androidextras/jni/runnable.go index 461e68df4..1a90f4798 100644 --- a/internal/examples/androidextras/jni/runnable.go +++ b/internal/examples/androidextras/jni/runnable.go @@ -4,8 +4,8 @@ import "C" import ( "unsafe" - "github.com/therecipe/qt" - "github.com/therecipe/qt/androidextras" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/androidextras" ) type Runnable struct { diff --git a/internal/examples/androidextras/notification/main.go b/internal/examples/androidextras/notification/main.go index ccc326d07..72e78dbeb 100644 --- a/internal/examples/androidextras/notification/main.go +++ b/internal/examples/androidextras/notification/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/androidextras/notification/notificationclient.go b/internal/examples/androidextras/notification/notificationclient.go index 1dc80e980..15618c21e 100644 --- a/internal/examples/androidextras/notification/notificationclient.go +++ b/internal/examples/androidextras/notification/notificationclient.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/androidextras" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/androidextras" + "github.com/bluszcz/cutego/core" ) type NotificationClient struct { diff --git a/internal/examples/androidextras/service/main.go b/internal/examples/androidextras/service/main.go index 05dadb5ef..0b5b63866 100644 --- a/internal/examples/androidextras/service/main.go +++ b/internal/examples/androidextras/service/main.go @@ -5,8 +5,8 @@ import ( "os" "time" - "github.com/therecipe/qt/androidextras" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/androidextras" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/bluetooth/picturetransfer/filetransfer.go b/internal/examples/bluetooth/picturetransfer/filetransfer.go index 0c0c51d4d..a1c55e654 100644 --- a/internal/examples/bluetooth/picturetransfer/filetransfer.go +++ b/internal/examples/bluetooth/picturetransfer/filetransfer.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/bluetooth" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/bluetooth" + "github.com/bluszcz/cutego/core" ) type FileTransfer struct { diff --git a/internal/examples/bluetooth/picturetransfer/main.go b/internal/examples/bluetooth/picturetransfer/main.go index 918da8567..7a15a998d 100644 --- a/internal/examples/bluetooth/picturetransfer/main.go +++ b/internal/examples/bluetooth/picturetransfer/main.go @@ -6,9 +6,9 @@ import ( "fmt" "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/bluetooth/pingpong/main.go b/internal/examples/bluetooth/pingpong/main.go index cb1b648e1..f7ffd01d0 100644 --- a/internal/examples/bluetooth/pingpong/main.go +++ b/internal/examples/bluetooth/pingpong/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/bluetooth/pingpong/pingpong.go b/internal/examples/bluetooth/pingpong/pingpong.go index 162a11d98..32f0ea976 100644 --- a/internal/examples/bluetooth/pingpong/pingpong.go +++ b/internal/examples/bluetooth/pingpong/pingpong.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/therecipe/qt/bluetooth" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/bluetooth" + "github.com/bluszcz/cutego/core" ) const ( diff --git a/internal/examples/bluetooth/scanner/qmlscanner.go b/internal/examples/bluetooth/scanner/qmlscanner.go index d05d34f60..712395214 100644 --- a/internal/examples/bluetooth/scanner/qmlscanner.go +++ b/internal/examples/bluetooth/scanner/qmlscanner.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/canvas3d/framebuffer/main.go b/internal/examples/canvas3d/framebuffer/main.go index c37caaf0c..4b0a5c900 100644 --- a/internal/examples/canvas3d/framebuffer/main.go +++ b/internal/examples/canvas3d/framebuffer/main.go @@ -7,9 +7,9 @@ import ( "os" "runtime" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/canvas3d/interaction/main.go b/internal/examples/canvas3d/interaction/main.go index cf55006bb..f839b1bc7 100644 --- a/internal/examples/canvas3d/interaction/main.go +++ b/internal/examples/canvas3d/interaction/main.go @@ -7,9 +7,9 @@ import ( "os" "runtime" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/canvas3d/jsonmodels/main.go b/internal/examples/canvas3d/jsonmodels/main.go index 754f84c99..c68881c50 100644 --- a/internal/examples/canvas3d/jsonmodels/main.go +++ b/internal/examples/canvas3d/jsonmodels/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/canvas3d/quickitemtexture/main.go b/internal/examples/canvas3d/quickitemtexture/main.go index c0196b643..ef4e1b383 100644 --- a/internal/examples/canvas3d/quickitemtexture/main.go +++ b/internal/examples/canvas3d/quickitemtexture/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/canvas3d/quickitemtexture_wear/main.go b/internal/examples/canvas3d/quickitemtexture_wear/main.go index c0196b643..ef4e1b383 100644 --- a/internal/examples/canvas3d/quickitemtexture_wear/main.go +++ b/internal/examples/canvas3d/quickitemtexture_wear/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/canvas3d/textureandlight/main.go b/internal/examples/canvas3d/textureandlight/main.go index 0f625e681..f77805db0 100644 --- a/internal/examples/canvas3d/textureandlight/main.go +++ b/internal/examples/canvas3d/textureandlight/main.go @@ -7,9 +7,9 @@ import ( "os" "runtime" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/canvas3d/threejs/cellphone/main.go b/internal/examples/canvas3d/threejs/cellphone/main.go index 9bac9f11b..08b769df3 100644 --- a/internal/examples/canvas3d/threejs/cellphone/main.go +++ b/internal/examples/canvas3d/threejs/cellphone/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/canvas3d/threejs/oneqt/main.go b/internal/examples/canvas3d/threejs/oneqt/main.go index 5e0603429..586323729 100644 --- a/internal/examples/canvas3d/threejs/oneqt/main.go +++ b/internal/examples/canvas3d/threejs/oneqt/main.go @@ -7,9 +7,9 @@ import ( "os" "runtime" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/canvas3d/threejs/planets/main.go b/internal/examples/canvas3d/threejs/planets/main.go index ceaa4e579..4f1737a9e 100644 --- a/internal/examples/canvas3d/threejs/planets/main.go +++ b/internal/examples/canvas3d/threejs/planets/main.go @@ -7,9 +7,9 @@ import ( "os" "runtime" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/charts/audio/main.go b/internal/examples/charts/audio/main.go index be8e3d2f5..3aa71d446 100644 --- a/internal/examples/charts/audio/main.go +++ b/internal/examples/charts/audio/main.go @@ -5,7 +5,7 @@ package main import ( "os" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/charts/audio/widget.go b/internal/examples/charts/audio/widget.go index be006b2f4..72d698752 100644 --- a/internal/examples/charts/audio/widget.go +++ b/internal/examples/charts/audio/widget.go @@ -1,10 +1,10 @@ package main import ( - "github.com/therecipe/qt/charts" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/multimedia" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/charts" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/multimedia" + "github.com/bluszcz/cutego/widgets" ) type Widget struct { diff --git a/internal/examples/charts/audio/xyseriesiodevice.go b/internal/examples/charts/audio/xyseriesiodevice.go index ec19b2d03..eb8c91900 100644 --- a/internal/examples/charts/audio/xyseriesiodevice.go +++ b/internal/examples/charts/audio/xyseriesiodevice.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/charts" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/charts" + "github.com/bluszcz/cutego/core" ) type XYSeriesIODevice struct { diff --git a/internal/examples/charts/dynamicspline/chart.go b/internal/examples/charts/dynamicspline/chart.go index 86a1dbe2f..61972b58f 100644 --- a/internal/examples/charts/dynamicspline/chart.go +++ b/internal/examples/charts/dynamicspline/chart.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/charts" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/charts" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type Chart struct { diff --git a/internal/examples/charts/dynamicspline/main.go b/internal/examples/charts/dynamicspline/main.go index 12e082d3d..c20aa216d 100644 --- a/internal/examples/charts/dynamicspline/main.go +++ b/internal/examples/charts/dynamicspline/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/charts" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/charts" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/charts/modeldata/customtablemodel.go b/internal/examples/charts/modeldata/customtablemodel.go index 1650e221b..d6d7810be 100644 --- a/internal/examples/charts/modeldata/customtablemodel.go +++ b/internal/examples/charts/modeldata/customtablemodel.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type CustomTableModel struct { diff --git a/internal/examples/charts/modeldata/main.go b/internal/examples/charts/modeldata/main.go index 95deafeb5..a6ff0051a 100644 --- a/internal/examples/charts/modeldata/main.go +++ b/internal/examples/charts/modeldata/main.go @@ -5,7 +5,7 @@ package main import ( "os" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/charts/modeldata/tablewidget.go b/internal/examples/charts/modeldata/tablewidget.go index 06cff415e..04282b989 100644 --- a/internal/examples/charts/modeldata/tablewidget.go +++ b/internal/examples/charts/modeldata/tablewidget.go @@ -4,10 +4,10 @@ import ( "strconv" "strings" - "github.com/therecipe/qt/charts" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/charts" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) func NewTableWidget() *widgets.QWidget { diff --git a/internal/examples/common/qml_demo/inputWidgets.go b/internal/examples/common/qml_demo/inputWidgets.go index 0aaef63f1..5559ca7f1 100644 --- a/internal/examples/common/qml_demo/inputWidgets.go +++ b/internal/examples/common/qml_demo/inputWidgets.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) func inputWidgets() { diff --git a/internal/examples/common/qml_demo/itemViews.go b/internal/examples/common/qml_demo/itemViews.go index 8435193f1..d267ab735 100644 --- a/internal/examples/common/qml_demo/itemViews.go +++ b/internal/examples/common/qml_demo/itemViews.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) func itemViews() { diff --git a/internal/examples/common/qml_demo/main.go b/internal/examples/common/qml_demo/main.go index 01537f988..baaaf839c 100644 --- a/internal/examples/common/qml_demo/main.go +++ b/internal/examples/common/qml_demo/main.go @@ -6,9 +6,9 @@ import ( "path/filepath" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) var ( diff --git a/internal/examples/common/widgets_demo/buttons.go b/internal/examples/common/widgets_demo/buttons.go index ae176d501..16326ee69 100644 --- a/internal/examples/common/widgets_demo/buttons.go +++ b/internal/examples/common/widgets_demo/buttons.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" ) func buttons() { diff --git a/internal/examples/common/widgets_demo/containers.go b/internal/examples/common/widgets_demo/containers.go index 7724d94df..5f0473108 100644 --- a/internal/examples/common/widgets_demo/containers.go +++ b/internal/examples/common/widgets_demo/containers.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" ) func containers() { diff --git a/internal/examples/common/widgets_demo/displayWidgets.go b/internal/examples/common/widgets_demo/displayWidgets.go index e4954503c..173a20788 100644 --- a/internal/examples/common/widgets_demo/displayWidgets.go +++ b/internal/examples/common/widgets_demo/displayWidgets.go @@ -6,10 +6,10 @@ import ( "path/filepath" "time" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) func displayWidgets() { diff --git a/internal/examples/common/widgets_demo/inputWidgets.go b/internal/examples/common/widgets_demo/inputWidgets.go index eb5ed5a5b..6d0bbf9f8 100644 --- a/internal/examples/common/widgets_demo/inputWidgets.go +++ b/internal/examples/common/widgets_demo/inputWidgets.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) func inputWidgets() { diff --git a/internal/examples/common/widgets_demo/itemViews.go b/internal/examples/common/widgets_demo/itemViews.go index 6c50978e9..9da111282 100644 --- a/internal/examples/common/widgets_demo/itemViews.go +++ b/internal/examples/common/widgets_demo/itemViews.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) func itemViews() { diff --git a/internal/examples/common/widgets_demo/itemWidgets.go b/internal/examples/common/widgets_demo/itemWidgets.go index 0a29e20b3..d2148c543 100644 --- a/internal/examples/common/widgets_demo/itemWidgets.go +++ b/internal/examples/common/widgets_demo/itemWidgets.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/widgets" ) func itemWidgets() { diff --git a/internal/examples/common/widgets_demo/layouts.go b/internal/examples/common/widgets_demo/layouts.go index 6cf47e5b5..3fcee61b6 100644 --- a/internal/examples/common/widgets_demo/layouts.go +++ b/internal/examples/common/widgets_demo/layouts.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" ) func layouts() { diff --git a/internal/examples/common/widgets_demo/main.go b/internal/examples/common/widgets_demo/main.go index 8f74d478f..d069a2b8b 100644 --- a/internal/examples/common/widgets_demo/main.go +++ b/internal/examples/common/widgets_demo/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) var ( @@ -38,7 +38,7 @@ func main() { mainWindow.SetCentralWidget(scrollWidget) mainWindow.ShowMaximized() - //->needed to work around some iOS issue: https://github.com/therecipe/qt/issues/451 + //->needed to work around some iOS issue: https://github.com/bluszcz/cutego/issues/451 gui.QGuiApplication_Screens()[0].SetOrientationUpdateMask(core.Qt__PrimaryOrientation | core.Qt__LandscapeOrientation | core.Qt__PortraitOrientation | core.Qt__InvertedLandscapeOrientation | core.Qt__InvertedPortraitOrientation) gui.QGuiApplication_Screens()[0].ConnectOrientationChanged(func(core.Qt__ScreenOrientation) { mainWindow.Hide() diff --git a/internal/examples/felgo/appdemos/basicapp/main.go b/internal/examples/felgo/appdemos/basicapp/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/appdemos/basicapp/main.go +++ b/internal/examples/felgo/appdemos/basicapp/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/cpp-backend-charts-qml/cppdatamodel.go b/internal/examples/felgo/appdemos/cpp-backend-charts-qml/cppdatamodel.go index f2e56f2da..bf1c3bab6 100644 --- a/internal/examples/felgo/appdemos/cpp-backend-charts-qml/cppdatamodel.go +++ b/internal/examples/felgo/appdemos/cpp-backend-charts-qml/cppdatamodel.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) type CppDataModel struct { diff --git a/internal/examples/felgo/appdemos/cpp-backend-charts-qml/filereader.go b/internal/examples/felgo/appdemos/cpp-backend-charts-qml/filereader.go index 7f2307a58..ba6dbe984 100644 --- a/internal/examples/felgo/appdemos/cpp-backend-charts-qml/filereader.go +++ b/internal/examples/felgo/appdemos/cpp-backend-charts-qml/filereader.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) type FileReader struct { diff --git a/internal/examples/felgo/appdemos/cpp-backend-charts-qml/main.go b/internal/examples/felgo/appdemos/cpp-backend-charts-qml/main.go index 1d20f21d7..99bcf387a 100644 --- a/internal/examples/felgo/appdemos/cpp-backend-charts-qml/main.go +++ b/internal/examples/felgo/appdemos/cpp-backend-charts-qml/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/cpp-qml-integration/main.go b/internal/examples/felgo/appdemos/cpp-qml-integration/main.go index 9fc2bc882..1f705ec1a 100644 --- a/internal/examples/felgo/appdemos/cpp-qml-integration/main.go +++ b/internal/examples/felgo/appdemos/cpp-qml-integration/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/cpp-qml-integration/myglobalobject.go b/internal/examples/felgo/appdemos/cpp-qml-integration/myglobalobject.go index ccbe8f88e..28fe5f3bc 100644 --- a/internal/examples/felgo/appdemos/cpp-qml-integration/myglobalobject.go +++ b/internal/examples/felgo/appdemos/cpp-qml-integration/myglobalobject.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) type MyGlobalObject struct { diff --git a/internal/examples/felgo/appdemos/cpp-qml-integration/myqmltype.go b/internal/examples/felgo/appdemos/cpp-qml-integration/myqmltype.go index 375410d7d..c3f0c5c10 100644 --- a/internal/examples/felgo/appdemos/cpp-qml-integration/myqmltype.go +++ b/internal/examples/felgo/appdemos/cpp-qml-integration/myqmltype.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) func init() { MyQMLType_QmlRegisterType2("com.yourcompany.xyz", 1, 0, "MyQMLType") } diff --git a/internal/examples/felgo/appdemos/maps/main.go b/internal/examples/felgo/appdemos/maps/main.go index 24134b9da..da7fd1014 100644 --- a/internal/examples/felgo/appdemos/maps/main.go +++ b/internal/examples/felgo/appdemos/maps/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/messaging/main.go b/internal/examples/felgo/appdemos/messaging/main.go index 4939603fe..21d9c0df6 100644 --- a/internal/examples/felgo/appdemos/messaging/main.go +++ b/internal/examples/felgo/appdemos/messaging/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/propertycross/main.go b/internal/examples/felgo/appdemos/propertycross/main.go index c9dd1c08d..a00b73e54 100644 --- a/internal/examples/felgo/appdemos/propertycross/main.go +++ b/internal/examples/felgo/appdemos/propertycross/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/qt-rest-client/main.go b/internal/examples/felgo/appdemos/qt-rest-client/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/appdemos/qt-rest-client/main.go +++ b/internal/examples/felgo/appdemos/qt-rest-client/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/qtws/cpp/cachereply.go b/internal/examples/felgo/appdemos/qtws/cpp/cachereply.go index 48f713dbf..18e78df31 100644 --- a/internal/examples/felgo/appdemos/qtws/cpp/cachereply.go +++ b/internal/examples/felgo/appdemos/qtws/cpp/cachereply.go @@ -3,8 +3,8 @@ package cpp import ( "unsafe" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" ) type CacheReply struct { diff --git a/internal/examples/felgo/appdemos/qtws/cpp/cachingnetworkaccessmanager.go b/internal/examples/felgo/appdemos/qtws/cpp/cachingnetworkaccessmanager.go index 7b928e533..4e09b04d4 100644 --- a/internal/examples/felgo/appdemos/qtws/cpp/cachingnetworkaccessmanager.go +++ b/internal/examples/felgo/appdemos/qtws/cpp/cachingnetworkaccessmanager.go @@ -1,8 +1,8 @@ package cpp import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" ) type CachingNetworkAccessManager struct { diff --git a/internal/examples/felgo/appdemos/qtws/cpp/diskcachefactory.go b/internal/examples/felgo/appdemos/qtws/cpp/diskcachefactory.go index 5efe40c1d..adad57526 100644 --- a/internal/examples/felgo/appdemos/qtws/cpp/diskcachefactory.go +++ b/internal/examples/felgo/appdemos/qtws/cpp/diskcachefactory.go @@ -1,9 +1,9 @@ package cpp import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/network" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "github.com/bluszcz/cutego/qml" ) type DiskCacheFactory struct { diff --git a/internal/examples/felgo/appdemos/qtws/main.go b/internal/examples/felgo/appdemos/qtws/main.go index 5a584b8c5..1b259e20f 100644 --- a/internal/examples/felgo/appdemos/qtws/main.go +++ b/internal/examples/felgo/appdemos/qtws/main.go @@ -4,14 +4,14 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" - "github.com/therecipe/qt/internal/examples/3rdparty/qzxing" + "github.com/bluszcz/cutego/internal/examples/3rdparty/qzxing" - "github.com/therecipe/qt/internal/examples/felgo/appdemos/qtws/cpp" + "github.com/bluszcz/cutego/internal/examples/felgo/appdemos/qtws/cpp" ) func main() { diff --git a/internal/examples/felgo/appdemos/showcase/main.go b/internal/examples/felgo/appdemos/showcase/main.go index ceeef5edd..0b14fbc6a 100644 --- a/internal/examples/felgo/appdemos/showcase/main.go +++ b/internal/examples/felgo/appdemos/showcase/main.go @@ -4,12 +4,12 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quickcontrols2" - "github.com/therecipe/qt/webview" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quickcontrols2" + "github.com/bluszcz/cutego/webview" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/twitter/main.go b/internal/examples/felgo/appdemos/twitter/main.go index 883c23f08..c3ee37efa 100644 --- a/internal/examples/felgo/appdemos/twitter/main.go +++ b/internal/examples/felgo/appdemos/twitter/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/weather/main.go b/internal/examples/felgo/appdemos/weather/main.go index 2a4d417fb..861ed7d8b 100644 --- a/internal/examples/felgo/appdemos/weather/main.go +++ b/internal/examples/felgo/appdemos/weather/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/appdemos/youtube-player/main.go b/internal/examples/felgo/appdemos/youtube-player/main.go index 37fa9c473..a70ba33e4 100644 --- a/internal/examples/felgo/appdemos/youtube-player/main.go +++ b/internal/examples/felgo/appdemos/youtube-player/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/demos/2048/main.go b/internal/examples/felgo/demos/2048/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/demos/2048/main.go +++ b/internal/examples/felgo/demos/2048/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/demos/BalloonPop/main.go b/internal/examples/felgo/demos/BalloonPop/main.go index cd3b0daff..0d5fc7f1f 100644 --- a/internal/examples/felgo/demos/BalloonPop/main.go +++ b/internal/examples/felgo/demos/BalloonPop/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/demos/CarChallenge/main.go b/internal/examples/felgo/demos/CarChallenge/main.go index b956dfeb8..16a31648e 100644 --- a/internal/examples/felgo/demos/CarChallenge/main.go +++ b/internal/examples/felgo/demos/CarChallenge/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/demos/ChickenOutbreak/main.go b/internal/examples/felgo/demos/ChickenOutbreak/main.go index cbb2495ce..9da54ddeb 100644 --- a/internal/examples/felgo/demos/ChickenOutbreak/main.go +++ b/internal/examples/felgo/demos/ChickenOutbreak/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/demos/CrazyCarousel/main.go b/internal/examples/felgo/demos/CrazyCarousel/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/demos/CrazyCarousel/main.go +++ b/internal/examples/felgo/demos/CrazyCarousel/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/demos/DoodleJump/main.go b/internal/examples/felgo/demos/DoodleJump/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/demos/DoodleJump/main.go +++ b/internal/examples/felgo/demos/DoodleJump/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/playground/AppPlayground/main.go b/internal/examples/felgo/playground/AppPlayground/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/playground/AppPlayground/main.go +++ b/internal/examples/felgo/playground/AppPlayground/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/felgo/playground/GamePlayground/main.go b/internal/examples/felgo/playground/GamePlayground/main.go index 75e8d97f4..266a4673f 100644 --- a/internal/examples/felgo/playground/GamePlayground/main.go +++ b/internal/examples/felgo/playground/GamePlayground/main.go @@ -4,10 +4,10 @@ import ( "os" "strings" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/felgo" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/felgo" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/go.mod b/internal/examples/go.mod index aa0fa8078..c41c35fe8 100644 --- a/internal/examples/go.mod +++ b/internal/examples/go.mod @@ -1 +1 @@ -module github.com/therecipe/qt/internal/examples +module github.com/StarAurryon/qt/internal/examples diff --git a/internal/examples/grpc/hello_world/hello_world.go b/internal/examples/grpc/hello_world/hello_world.go index ee930e34e..fc483b81e 100644 --- a/internal/examples/grpc/hello_world/hello_world.go +++ b/internal/examples/grpc/hello_world/hello_world.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) type HelloClientRPC struct { diff --git a/internal/examples/grpc/hello_world2/hello_world2.go b/internal/examples/grpc/hello_world2/hello_world2.go index 5d9777401..1ebef8f8a 100644 --- a/internal/examples/grpc/hello_world2/hello_world2.go +++ b/internal/examples/grpc/hello_world2/hello_world2.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) type HelloClientRPC struct { diff --git a/internal/examples/gui/advancedclock/main.go b/internal/examples/gui/advancedclock/main.go index 547e6dd79..7b54275e7 100644 --- a/internal/examples/gui/advancedclock/main.go +++ b/internal/examples/gui/advancedclock/main.go @@ -6,9 +6,9 @@ import ( "fmt" "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) type AnalogClockQwdgt struct { diff --git a/internal/examples/gui/analogclock/analogclock.go b/internal/examples/gui/analogclock/analogclock.go index e89fee3a9..ad4790a55 100644 --- a/internal/examples/gui/analogclock/analogclock.go +++ b/internal/examples/gui/analogclock/analogclock.go @@ -5,8 +5,8 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type AnalogClockWindow struct { diff --git a/internal/examples/gui/analogclock/rasterwindow.go b/internal/examples/gui/analogclock/rasterwindow.go index f0d6286a6..9d35c927d 100644 --- a/internal/examples/gui/analogclock/rasterwindow.go +++ b/internal/examples/gui/analogclock/rasterwindow.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type RasterWindow struct { diff --git a/internal/examples/gui/openglwindow/js.go b/internal/examples/gui/openglwindow/js.go index b5964e0ac..4301fe748 100644 --- a/internal/examples/gui/openglwindow/js.go +++ b/internal/examples/gui/openglwindow/js.go @@ -5,7 +5,7 @@ package main import ( "unsafe" - "github.com/therecipe/qt" + "github.com/bluszcz/cutego" ) var ( diff --git a/internal/examples/gui/openglwindow/main.go b/internal/examples/gui/openglwindow/main.go index e93b80add..545747be8 100644 --- a/internal/examples/gui/openglwindow/main.go +++ b/internal/examples/gui/openglwindow/main.go @@ -5,7 +5,7 @@ package main import ( "os" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/gui" ) const ( diff --git a/internal/examples/gui/openglwindow/openglwindow.go b/internal/examples/gui/openglwindow/openglwindow.go index 3933f3fbe..188ad8189 100644 --- a/internal/examples/gui/openglwindow/openglwindow.go +++ b/internal/examples/gui/openglwindow/openglwindow.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) const ( diff --git a/internal/examples/gui/rasterwindow/main.go b/internal/examples/gui/rasterwindow/main.go index ab6f9fe53..dc7ab37db 100644 --- a/internal/examples/gui/rasterwindow/main.go +++ b/internal/examples/gui/rasterwindow/main.go @@ -5,7 +5,7 @@ package main import ( "os" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/gui" ) func main() { diff --git a/internal/examples/gui/rasterwindow/rasterwindow.go b/internal/examples/gui/rasterwindow/rasterwindow.go index 4f8cfc680..19561d75c 100644 --- a/internal/examples/gui/rasterwindow/rasterwindow.go +++ b/internal/examples/gui/rasterwindow/rasterwindow.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type RasterWindow struct { diff --git a/internal/examples/opengl/2dpainting/glwidget.go b/internal/examples/opengl/2dpainting/glwidget.go index 28e49b23d..9f7adfc8c 100644 --- a/internal/examples/opengl/2dpainting/glwidget.go +++ b/internal/examples/opengl/2dpainting/glwidget.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) type GLWidget struct { diff --git a/internal/examples/opengl/2dpainting/helper.go b/internal/examples/opengl/2dpainting/helper.go index c16fcf08d..0a4e7516e 100644 --- a/internal/examples/opengl/2dpainting/helper.go +++ b/internal/examples/opengl/2dpainting/helper.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type Helper struct { diff --git a/internal/examples/opengl/2dpainting/main.go b/internal/examples/opengl/2dpainting/main.go index 35bf20296..4259f1d91 100644 --- a/internal/examples/opengl/2dpainting/main.go +++ b/internal/examples/opengl/2dpainting/main.go @@ -5,8 +5,8 @@ package main import ( "os" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/opengl/2dpainting/widget.go b/internal/examples/opengl/2dpainting/widget.go index 72d18fb95..e80dc1094 100644 --- a/internal/examples/opengl/2dpainting/widget.go +++ b/internal/examples/opengl/2dpainting/widget.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) type Widget struct { diff --git a/internal/examples/opengl/2dpainting/window.go b/internal/examples/opengl/2dpainting/window.go index 1059e9726..76ea25284 100644 --- a/internal/examples/opengl/2dpainting/window.go +++ b/internal/examples/opengl/2dpainting/window.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" ) type Window struct { diff --git a/internal/examples/plugins/go/main.go b/internal/examples/plugins/go/main.go index 5ecaa21ca..22cf3f1df 100644 --- a/internal/examples/plugins/go/main.go +++ b/internal/examples/plugins/go/main.go @@ -5,10 +5,10 @@ import ( "os" "plugin" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) //go:generate cp main.go ./plugin diff --git a/internal/examples/plugins/go/plugin/plugin.go b/internal/examples/plugins/go/plugin/plugin.go index 095ac3bb8..998fff30b 100644 --- a/internal/examples/plugins/go/plugin/plugin.go +++ b/internal/examples/plugins/go/plugin/plugin.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/plugins/mixed/main.go b/internal/examples/plugins/mixed/main.go index 155477627..37142db47 100644 --- a/internal/examples/plugins/mixed/main.go +++ b/internal/examples/plugins/mixed/main.go @@ -5,10 +5,10 @@ import ( "os" "plugin" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) //go:generate cp main.go ./plugin diff --git a/internal/examples/plugins/mixed/plugin/plugin.go b/internal/examples/plugins/mixed/plugin/plugin.go index a71e2541b..3b160b7eb 100644 --- a/internal/examples/plugins/mixed/plugin/plugin.go +++ b/internal/examples/plugins/mixed/plugin/plugin.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/plugins/qml/main.go b/internal/examples/plugins/qml/main.go index b236a6718..3c818d903 100644 --- a/internal/examples/plugins/qml/main.go +++ b/internal/examples/plugins/qml/main.go @@ -5,10 +5,10 @@ import ( "os" "plugin" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) //go:generate qtrcc desktop ./plugin diff --git a/internal/examples/qml/adding/main.go b/internal/examples/qml/adding/main.go index ddb8c4de2..1ab887cf7 100644 --- a/internal/examples/qml/adding/main.go +++ b/internal/examples/qml/adding/main.go @@ -5,8 +5,8 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/qml/adding/person.go b/internal/examples/qml/adding/person.go index 6b729badc..7cc535bdb 100644 --- a/internal/examples/qml/adding/person.go +++ b/internal/examples/qml/adding/person.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) type Person struct { diff --git a/internal/examples/qml/application/application.go b/internal/examples/qml/application/application.go index e4e12d542..f95cfa323 100644 --- a/internal/examples/qml/application/application.go +++ b/internal/examples/qml/application/application.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/qml/custom_scheme/main.go b/internal/examples/qml/custom_scheme/main.go index 78ad0d623..bcc041d7f 100644 --- a/internal/examples/qml/custom_scheme/main.go +++ b/internal/examples/qml/custom_scheme/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/network" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/qml/custom_scheme/reply.go b/internal/examples/qml/custom_scheme/reply.go index 6316448f8..1e0b57a7b 100644 --- a/internal/examples/qml/custom_scheme/reply.go +++ b/internal/examples/qml/custom_scheme/reply.go @@ -1,8 +1,8 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" ) //the custom QNetworkReply is partially modeled after diff --git a/internal/examples/qml/drawer_nav_x/applicationui.go b/internal/examples/qml/drawer_nav_x/applicationui.go index db6401c2e..7e584820d 100644 --- a/internal/examples/qml/drawer_nav_x/applicationui.go +++ b/internal/examples/qml/drawer_nav_x/applicationui.go @@ -1,6 +1,6 @@ package main -import "github.com/therecipe/qt/core" +import "github.com/bluszcz/cutego/core" var ( materialRed = []string{"#FFCDD2", "#F44336", "#D32F2F", "#000000", "#FFFFFF", "#FFFFFF", "black", "white", "white"} diff --git a/internal/examples/qml/drawer_nav_x/main.go b/internal/examples/qml/drawer_nav_x/main.go index 245382914..17fb8b268 100644 --- a/internal/examples/qml/drawer_nav_x/main.go +++ b/internal/examples/qml/drawer_nav_x/main.go @@ -5,10 +5,10 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quickcontrols2" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quickcontrols2" ) func main() { diff --git a/internal/examples/qml/extending/chapter1-basics/main.go b/internal/examples/qml/extending/chapter1-basics/main.go index b46534c68..37203aeb4 100644 --- a/internal/examples/qml/extending/chapter1-basics/main.go +++ b/internal/examples/qml/extending/chapter1-basics/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/qml/extending/chapter1-basics/piechart.go b/internal/examples/qml/extending/chapter1-basics/piechart.go index e3d47d55b..9d75fe035 100644 --- a/internal/examples/qml/extending/chapter1-basics/piechart.go +++ b/internal/examples/qml/extending/chapter1-basics/piechart.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/chapter2-methods/main.go b/internal/examples/qml/extending/chapter2-methods/main.go index b46534c68..37203aeb4 100644 --- a/internal/examples/qml/extending/chapter2-methods/main.go +++ b/internal/examples/qml/extending/chapter2-methods/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/qml/extending/chapter2-methods/piechart.go b/internal/examples/qml/extending/chapter2-methods/piechart.go index a22d55fa3..b90262bad 100644 --- a/internal/examples/qml/extending/chapter2-methods/piechart.go +++ b/internal/examples/qml/extending/chapter2-methods/piechart.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/chapter3-bindings/main.go b/internal/examples/qml/extending/chapter3-bindings/main.go index b46534c68..37203aeb4 100644 --- a/internal/examples/qml/extending/chapter3-bindings/main.go +++ b/internal/examples/qml/extending/chapter3-bindings/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/qml/extending/chapter3-bindings/piechart.go b/internal/examples/qml/extending/chapter3-bindings/piechart.go index 95a189539..6ee273961 100644 --- a/internal/examples/qml/extending/chapter3-bindings/piechart.go +++ b/internal/examples/qml/extending/chapter3-bindings/piechart.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/chapter4-customPropertyTypes/main.go b/internal/examples/qml/extending/chapter4-customPropertyTypes/main.go index b46534c68..37203aeb4 100644 --- a/internal/examples/qml/extending/chapter4-customPropertyTypes/main.go +++ b/internal/examples/qml/extending/chapter4-customPropertyTypes/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/qml/extending/chapter4-customPropertyTypes/piechart.go b/internal/examples/qml/extending/chapter4-customPropertyTypes/piechart.go index 8527e3f26..e5004e23d 100644 --- a/internal/examples/qml/extending/chapter4-customPropertyTypes/piechart.go +++ b/internal/examples/qml/extending/chapter4-customPropertyTypes/piechart.go @@ -1,7 +1,7 @@ package main import ( - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/chapter4-customPropertyTypes/pieslice.go b/internal/examples/qml/extending/chapter4-customPropertyTypes/pieslice.go index c3b3133e7..926a27f8f 100644 --- a/internal/examples/qml/extending/chapter4-customPropertyTypes/pieslice.go +++ b/internal/examples/qml/extending/chapter4-customPropertyTypes/pieslice.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_dir/component/piechart.go b/internal/examples/qml/extending/components/test_dir/component/piechart.go index eb95908e4..db8bf48d5 100644 --- a/internal/examples/qml/extending/components/test_dir/component/piechart.go +++ b/internal/examples/qml/extending/components/test_dir/component/piechart.go @@ -1,9 +1,9 @@ package component import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_dir/main.go b/internal/examples/qml/extending/components/test_dir/main.go index b66de952a..f424adf51 100644 --- a/internal/examples/qml/extending/components/test_dir/main.go +++ b/internal/examples/qml/extending/components/test_dir/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_dir/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_dir/component" ) func main() { diff --git a/internal/examples/qml/extending/components/test_dir_2/component/piechart.go b/internal/examples/qml/extending/components/test_dir_2/component/piechart.go index eb95908e4..db8bf48d5 100644 --- a/internal/examples/qml/extending/components/test_dir_2/component/piechart.go +++ b/internal/examples/qml/extending/components/test_dir_2/component/piechart.go @@ -1,9 +1,9 @@ package component import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_dir_2/main.go b/internal/examples/qml/extending/components/test_dir_2/main.go index d2c7eb1e2..636482ea4 100644 --- a/internal/examples/qml/extending/components/test_dir_2/main.go +++ b/internal/examples/qml/extending/components/test_dir_2/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_dir_2/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_dir_2/component" ) func main() { diff --git a/internal/examples/qml/extending/components/test_go/component/piechart.go b/internal/examples/qml/extending/components/test_go/component/piechart.go index eb95908e4..db8bf48d5 100644 --- a/internal/examples/qml/extending/components/test_go/component/piechart.go +++ b/internal/examples/qml/extending/components/test_go/component/piechart.go @@ -1,9 +1,9 @@ package component import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_go/main.go b/internal/examples/qml/extending/components/test_go/main.go index b4b3891ca..48516dd79 100644 --- a/internal/examples/qml/extending/components/test_go/main.go +++ b/internal/examples/qml/extending/components/test_go/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_go/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_go/component" ) func main() { diff --git a/internal/examples/qml/extending/components/test_module/component/piechart.go b/internal/examples/qml/extending/components/test_module/component/piechart.go index eb95908e4..db8bf48d5 100644 --- a/internal/examples/qml/extending/components/test_module/component/piechart.go +++ b/internal/examples/qml/extending/components/test_module/component/piechart.go @@ -1,9 +1,9 @@ package component import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_module/main.go b/internal/examples/qml/extending/components/test_module/main.go index a7015d0d3..604dc27a2 100644 --- a/internal/examples/qml/extending/components/test_module/main.go +++ b/internal/examples/qml/extending/components/test_module/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_module/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_module/component" ) func main() { diff --git a/internal/examples/qml/extending/components/test_module_2/component/piechart.go b/internal/examples/qml/extending/components/test_module_2/component/piechart.go index eb95908e4..db8bf48d5 100644 --- a/internal/examples/qml/extending/components/test_module_2/component/piechart.go +++ b/internal/examples/qml/extending/components/test_module_2/component/piechart.go @@ -1,9 +1,9 @@ package component import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_module_2/main.go b/internal/examples/qml/extending/components/test_module_2/main.go index 50b93e584..69f8a9516 100644 --- a/internal/examples/qml/extending/components/test_module_2/main.go +++ b/internal/examples/qml/extending/components/test_module_2/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_module_2/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_module_2/component" ) func main() { diff --git a/internal/examples/qml/extending/components/test_qml/main.go b/internal/examples/qml/extending/components/test_qml/main.go index 455bd680b..dc7698654 100644 --- a/internal/examples/qml/extending/components/test_qml/main.go +++ b/internal/examples/qml/extending/components/test_qml/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_qml/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_qml/component" ) func main() { diff --git a/internal/examples/qml/extending/components/test_qml_go/component/piechart.go b/internal/examples/qml/extending/components/test_qml_go/component/piechart.go index eb95908e4..db8bf48d5 100644 --- a/internal/examples/qml/extending/components/test_qml_go/component/piechart.go +++ b/internal/examples/qml/extending/components/test_qml_go/component/piechart.go @@ -1,9 +1,9 @@ package component import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func init() { diff --git a/internal/examples/qml/extending/components/test_qml_go/main.go b/internal/examples/qml/extending/components/test_qml_go/main.go index 17cda7350..9e88b78e1 100644 --- a/internal/examples/qml/extending/components/test_qml_go/main.go +++ b/internal/examples/qml/extending/components/test_qml_go/main.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" - _ "github.com/therecipe/qt/internal/examples/qml/extending/components/test_qml_go/component" + _ "github.com/bluszcz/cutego/internal/examples/qml/extending/components/test_qml_go/component" ) func main() { diff --git a/internal/examples/qml/gallery/gallery.go b/internal/examples/qml/gallery/gallery.go index ed2c2c0a2..b7d1c6d7a 100644 --- a/internal/examples/qml/gallery/gallery.go +++ b/internal/examples/qml/gallery/gallery.go @@ -3,10 +3,10 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quickcontrols2" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quickcontrols2" ) func main() { diff --git a/internal/examples/qml/gocv/gocv.go b/internal/examples/qml/gocv/gocv.go index 813c60974..c46dce353 100644 --- a/internal/examples/qml/gocv/gocv.go +++ b/internal/examples/qml/gocv/gocv.go @@ -1,9 +1,9 @@ package main import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" "fmt" "gocv.io/x/gocv" diff --git a/internal/examples/qml/gocv/main.go b/internal/examples/qml/gocv/main.go index 4f2c2a279..f539d4c4e 100644 --- a/internal/examples/qml/gocv/main.go +++ b/internal/examples/qml/gocv/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/qml/material/material.go b/internal/examples/qml/material/material.go index 90e825a0e..d74ba41d9 100644 --- a/internal/examples/qml/material/material.go +++ b/internal/examples/qml/material/material.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/qml/prop/prop.go b/internal/examples/qml/prop/prop.go index 527204e4c..07260d097 100644 --- a/internal/examples/qml/prop/prop.go +++ b/internal/examples/qml/prop/prop.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" ) func main() { diff --git a/internal/examples/qml/prop2/prop2.go b/internal/examples/qml/prop2/prop2.go index 9bf34a7c0..7ca09978d 100644 --- a/internal/examples/qml/prop2/prop2.go +++ b/internal/examples/qml/prop2/prop2.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" ) type QmlBride struct { diff --git a/internal/examples/qml/webview/webview.go b/internal/examples/qml/webview/webview.go index 5d890b10d..2e2f5fd22 100644 --- a/internal/examples/qml/webview/webview.go +++ b/internal/examples/qml/webview/webview.go @@ -5,10 +5,10 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/webview" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/webview" ) func main() { diff --git a/internal/examples/qt3d/audio-visualizer-qml/main.go b/internal/examples/qt3d/audio-visualizer-qml/main.go index 684e91d3a..a8918c6aa 100644 --- a/internal/examples/qt3d/audio-visualizer-qml/main.go +++ b/internal/examples/qt3d/audio-visualizer-qml/main.go @@ -5,9 +5,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/qt3d/audio-visualizer-qml/touchsettings.go b/internal/examples/qt3d/audio-visualizer-qml/touchsettings.go index 196380f82..b81060cb9 100644 --- a/internal/examples/qt3d/audio-visualizer-qml/touchsettings.go +++ b/internal/examples/qt3d/audio-visualizer-qml/touchsettings.go @@ -4,8 +4,8 @@ import ( "os" "runtime" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" ) type TouchSettings struct { diff --git a/internal/examples/quick/bridge/bridge.go b/internal/examples/quick/bridge/bridge.go index f83b2e09c..7e185c23e 100644 --- a/internal/examples/quick/bridge/bridge.go +++ b/internal/examples/quick/bridge/bridge.go @@ -8,9 +8,9 @@ import ( "os" "time" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) var ( diff --git a/internal/examples/quick/bridge2/bridge2.go b/internal/examples/quick/bridge2/bridge2.go index 09b899cb1..0ed9eea45 100644 --- a/internal/examples/quick/bridge2/bridge2.go +++ b/internal/examples/quick/bridge2/bridge2.go @@ -7,9 +7,9 @@ import ( "os" "time" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) type QmlBridge struct { diff --git a/internal/examples/quick/calc/calc.go b/internal/examples/quick/calc/calc.go index 3398f4e78..6fa8ee995 100644 --- a/internal/examples/quick/calc/calc.go +++ b/internal/examples/quick/calc/calc.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/quick/cookies/cookies.go b/internal/examples/quick/cookies/cookies.go index f1c775a87..155cf715e 100644 --- a/internal/examples/quick/cookies/cookies.go +++ b/internal/examples/quick/cookies/cookies.go @@ -3,11 +3,11 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/network" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/webengine" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/network" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/webengine" ) type bridge struct { diff --git a/internal/examples/quick/dialog/dialog.go b/internal/examples/quick/dialog/dialog.go index dd3cfbd56..b4a3b6ee3 100644 --- a/internal/examples/quick/dialog/dialog.go +++ b/internal/examples/quick/dialog/dialog.go @@ -3,9 +3,9 @@ package main import ( "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/quick/dynamic/dynamic.go b/internal/examples/quick/dynamic/dynamic.go index 277bb2186..60685f457 100644 --- a/internal/examples/quick/dynamic/dynamic.go +++ b/internal/examples/quick/dynamic/dynamic.go @@ -4,10 +4,10 @@ import ( "fmt" "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) func main() { diff --git a/internal/examples/quick/errors/main.go b/internal/examples/quick/errors/main.go index 29d879392..8d250915f 100644 --- a/internal/examples/quick/errors/main.go +++ b/internal/examples/quick/errors/main.go @@ -4,10 +4,10 @@ import ( "fmt" "os" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) //this example demonstrates one possible way to deal with qml errors/warnings diff --git a/internal/examples/quick/hotreload/hotreload.go b/internal/examples/quick/hotreload/hotreload.go index 7500790d2..016066c29 100644 --- a/internal/examples/quick/hotreload/hotreload.go +++ b/internal/examples/quick/hotreload/hotreload.go @@ -4,9 +4,9 @@ import ( "os" "path/filepath" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/quick" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/quick" + "github.com/bluszcz/cutego/widgets" ) func initQQuickView(path string) *quick.QQuickView { diff --git a/internal/examples/quick/listview/main.go b/internal/examples/quick/listview/main.go index 07a030823..2e99c9135 100644 --- a/internal/examples/quick/listview/main.go +++ b/internal/examples/quick/listview/main.go @@ -4,9 +4,9 @@ import ( "os" "time" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" ) func main() { diff --git a/internal/examples/quick/listview/personmodel.go b/internal/examples/quick/listview/personmodel.go index 1bcf84ce8..4f0e64f95 100644 --- a/internal/examples/quick/listview/personmodel.go +++ b/internal/examples/quick/listview/personmodel.go @@ -1,6 +1,6 @@ package main -import "github.com/therecipe/qt/core" +import "github.com/bluszcz/cutego/core" const ( FirstName = int(core.Qt__UserRole) + 1< diff --git a/internal/examples/widgets/xkcd/main.go b/internal/examples/widgets/xkcd/main.go index 14b01a769..efb8c793a 100644 --- a/internal/examples/widgets/xkcd/main.go +++ b/internal/examples/widgets/xkcd/main.go @@ -11,9 +11,9 @@ import ( "strconv" "time" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" ) var data_struct struct { diff --git a/internal/utils/env.go b/internal/utils/env.go index fc9b4d72d..703f0a82d 100644 --- a/internal/utils/env.go +++ b/internal/utils/env.go @@ -423,7 +423,7 @@ func QT_GEN_QUICK_EXTRAS() bool { func GoList(args ...string) *exec.Cmd { cmd := exec.Command("go", "list") if UseGOMOD("") { - if !(strings.Contains(strings.Join(args, "|"), "github.com/therecipe/qt/internal") && !strings.Contains(strings.Join(args, "|"), "github.com/therecipe/qt/internal/binding/runtime")) { + if !(strings.Contains(strings.Join(args, "|"), "github.com/bluszcz/cutego/internal") && !strings.Contains(strings.Join(args, "|"), "github.com/bluszcz/cutego/internal/binding/runtime")) { cmd.Args = append(cmd.Args, GOFLAGS()) } else if GOVERSION_NUM() >= 114 { cmd.Args = append(cmd.Args, "-mod=mod") diff --git a/internal/utils/gopath.go b/internal/utils/gopath.go index 5a445df08..b91859635 100644 --- a/internal/utils/gopath.go +++ b/internal/utils/gopath.go @@ -9,7 +9,7 @@ import ( "sync" ) -const PackageName = "github.com/therecipe/qt" +const PackageName = "github.com/bluszcz/cutego" var ( mustGoPath string diff --git a/internal/vagrant/docker/Vagrantfile b/internal/vagrant/docker/Vagrantfile index f4459737b..307ce4b5e 100644 --- a/internal/vagrant/docker/Vagrantfile +++ b/internal/vagrant/docker/Vagrantfile @@ -13,85 +13,85 @@ Vagrant.configure("2") do |config| config.vm.define "linux" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:linux" + d.pull_images "bluszcz/cutego:linux" end end config.vm.define "android" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:android" + d.pull_images "bluszcz/cutego:android" end end config.vm.define "windows_32_shared" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:windows_32_shared" + d.pull_images "bluszcz/cutego:windows_32_shared" end end config.vm.define "windows_32_static" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:windows_32_static" + d.pull_images "bluszcz/cutego:windows_32_static" end end config.vm.define "windows_64_shared" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:windows_64_shared" + d.pull_images "bluszcz/cutego:windows_64_shared" end end config.vm.define "windows_64_static" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:windows_64_static" + d.pull_images "bluszcz/cutego:windows_64_static" end end config.vm.define "rpi1" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:rpi1" + d.pull_images "bluszcz/cutego:rpi1" end end config.vm.define "rpi2" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:rpi2" + d.pull_images "bluszcz/cutego:rpi2" end end config.vm.define "rpi3" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:rpi3" + d.pull_images "bluszcz/cutego:rpi3" end end config.vm.define "sailfish" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:sailfish" + d.pull_images "bluszcz/cutego:sailfish" end end config.vm.define "ubports_arm_vivid" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:ubports_arm_vivid" + d.pull_images "bluszcz/cutego:ubports_arm_vivid" end end config.vm.define "ubports_64_vivid" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:ubports_64_vivid" + d.pull_images "bluszcz/cutego:ubports_64_vivid" end end config.vm.define "ubports_arm_xenial" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:ubports_arm_xenial" + d.pull_images "bluszcz/cutego:ubports_arm_xenial" end end config.vm.define "ubports_64_xenial" do |m| config.vm.provision "docker" do |d| - d.pull_images "therecipe/qt:ubports_64_xenial" + d.pull_images "bluszcz/cutego:ubports_64_xenial" end end diff --git a/internal/vagrant/freebsd/freebsd.sh b/internal/vagrant/freebsd/freebsd.sh index ca378525f..5e08ce0fa 100755 --- a/internal/vagrant/freebsd/freebsd.sh +++ b/internal/vagrant/freebsd/freebsd.sh @@ -8,7 +8,7 @@ sudo sysrc dbus_enable=YES && sudo sysrc hald_enable=YES && sudo sysrc slim_enab sudo service dbus start && sudo service hald start && sudo service slim start sudo pkg ins -y git go pkgconf qt5 -go get -v github.com/therecipe/qt/cmd/... +go get -v github.com/StarAurryon/qt/cmd/... QT_PKG_CONFIG=true $(go env GOPATH)/bin/qtsetup test exit 0 \ No newline at end of file diff --git a/internal/vagrant/pre.bat b/internal/vagrant/pre.bat index c5b7e5c32..be097c508 100644 --- a/internal/vagrant/pre.bat +++ b/internal/vagrant/pre.bat @@ -44,7 +44,7 @@ set GOPATH=C:\gopath setx /M GOROOT "C:\go" set GOROOT=C:\go -go get -v -tags=no_env github.com/therecipe/qt/cmd/... +go get -v -tags=no_env github.com/StarAurryon/qt/cmd/... ::install VC++ 2015 Redis diff --git a/internal/vagrant/pre.sh b/internal/vagrant/pre.sh index a954cb3a6..3e28ba07a 100755 --- a/internal/vagrant/pre.sh +++ b/internal/vagrant/pre.sh @@ -49,7 +49,7 @@ if [[ "$OS" == "darwin" ]]; then ln -s $HOME/gopath $HOME/Desktop/GOPATH fi -go get -v -tags=no_env github.com/therecipe/qt/cmd/... +go get -v -tags=no_env github.com/StarAurryon/qt/cmd/... if [[ "$OS" == "darwin" ]]; then sudo xcode-select -s /Applications/Xcode.app/Contents/Developer diff --git a/interop/dart/dart.go b/interop/dart/dart.go index 6f9cf0284..04bb2d828 100644 --- a/interop/dart/dart.go +++ b/interop/dart/dart.go @@ -17,7 +17,7 @@ import "C" import ( "unsafe" - "github.com/therecipe/qt/interop" + "github.com/bluszcz/cutego/interop" ) var ( diff --git a/interop/gow/gow.go b/interop/gow/gow.go index 61494a5c5..6f27deef8 100644 --- a/interop/gow/gow.go +++ b/interop/gow/gow.go @@ -1,6 +1,6 @@ package gow -import "github.com/therecipe/qt/internal" +import "github.com/bluszcz/cutego/internal" var ( InitProcess = internal.InitProcess diff --git a/interop/haxe/haxe.go b/interop/haxe/haxe.go index a5c2f5938..007952e36 100644 --- a/interop/haxe/haxe.go +++ b/interop/haxe/haxe.go @@ -1,6 +1,6 @@ package haxe -import "github.com/therecipe/qt/interop" +import "github.com/bluszcz/cutego/interop" func init() { interop.ReturnPointersAsStrings = true diff --git a/interop/interop.go b/interop/interop.go index 9c8f7df0f..2931e0407 100644 --- a/interop/interop.go +++ b/interop/interop.go @@ -10,8 +10,8 @@ import ( "sync" "unsafe" - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" ) var ( diff --git a/interop/interop_api.go b/interop/interop_api.go index b4eee7412..455dc9889 100644 --- a/interop/interop_api.go +++ b/interop/interop_api.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sync" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) var ( diff --git a/interop/interop_api_helper.go b/interop/interop_api_helper.go index 0abd6f11b..02e4be20e 100644 --- a/interop/interop_api_helper.go +++ b/interop/interop_api_helper.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strings" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) func genPseudoIn(s string) *PseudoQJSValue { diff --git a/interop/pseudo.go b/interop/pseudo.go index e5366a127..752ff69a6 100644 --- a/interop/pseudo.go +++ b/interop/pseudo.go @@ -1,6 +1,6 @@ package interop -import "github.com/therecipe/qt" +import "github.com/bluszcz/cutego" func init() { qt.ItfMap["interop.PseudoQJSEngine_ITF"] = PseudoQJSEngine{} diff --git a/interop/pseudo_engine.go b/interop/pseudo_engine.go index c65c2ee52..7cff628a1 100644 --- a/interop/pseudo_engine.go +++ b/interop/pseudo_engine.go @@ -3,9 +3,9 @@ package interop import ( "unsafe" - "github.com/therecipe/qt" + "github.com/bluszcz/cutego" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" ) //TODO: this == nil checks diff --git a/interop/pseudo_value.go b/interop/pseudo_value.go index 15da0ffcb..ffccddcea 100644 --- a/interop/pseudo_value.go +++ b/interop/pseudo_value.go @@ -3,9 +3,9 @@ package interop import ( "encoding/json" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego/core" - "github.com/therecipe/qt" + "github.com/bluszcz/cutego" ) //TODO: this == nil checks diff --git a/interop/swift/swift.go b/interop/swift/swift.go index e019f4dad..23af624de 100644 --- a/interop/swift/swift.go +++ b/interop/swift/swift.go @@ -1,6 +1,6 @@ package swift -import "github.com/therecipe/qt/interop" +import "github.com/bluszcz/cutego/interop" func init() { interop.ReturnPointersAsStrings = true diff --git a/location/location.go b/location/location.go index b893c1e21..ffabb0d41 100644 --- a/location/location.go +++ b/location/location.go @@ -3,9 +3,10 @@ package location import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/positioning" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/positioning" + "strings" "unsafe" ) diff --git a/macextras/macextras.go b/macextras/macextras.go index c7c1521d8..0602765bd 100644 --- a/macextras/macextras.go +++ b/macextras/macextras.go @@ -3,9 +3,10 @@ package macextras import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "strings" "unsafe" ) diff --git a/multimedia/multimedia.go b/multimedia/multimedia.go index bd1bb13ee..7c66a16e6 100644 --- a/multimedia/multimedia.go +++ b/multimedia/multimedia.go @@ -3,11 +3,12 @@ package multimedia import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/network" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/network/network.go b/network/network.go index a45df6ee0..573ee21e4 100644 --- a/network/network.go +++ b/network/network.go @@ -3,8 +3,10 @@ package network import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "reflect" + "strings" "unsafe" ) diff --git a/nfc/nfc.go b/nfc/nfc.go index f86f15539..6c4a70b7b 100644 --- a/nfc/nfc.go +++ b/nfc/nfc.go @@ -3,8 +3,9 @@ package nfc import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/positioning/positioning.go b/positioning/positioning.go index a885b7ae0..8bb089a22 100644 --- a/positioning/positioning.go +++ b/positioning/positioning.go @@ -3,8 +3,9 @@ package positioning import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/printsupport/printsupport.go b/printsupport/printsupport.go index b3db69a85..bce1845d5 100644 --- a/printsupport/printsupport.go +++ b/printsupport/printsupport.go @@ -3,10 +3,11 @@ package printsupport import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/purchasing/purchasing.go b/purchasing/purchasing.go index 06bfa4f2d..a0a2ec7a2 100644 --- a/purchasing/purchasing.go +++ b/purchasing/purchasing.go @@ -3,8 +3,9 @@ package purchasing import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/qml/qml.go b/qml/qml.go index 98109a81e..44d3b09c3 100644 --- a/qml/qml.go +++ b/qml/qml.go @@ -3,9 +3,12 @@ package qml import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "strconv" + "strings" + "sync" "unsafe" ) diff --git a/qml/utils-qml.go b/qml/utils-qml.go index a8b269c5d..f453d676c 100644 --- a/qml/utils-qml.go +++ b/qml/utils-qml.go @@ -10,8 +10,8 @@ import ( "sync" "unsafe" - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" ) var ( diff --git a/quick/quick.go b/quick/quick.go index 57a6e3b59..8177708c9 100644 --- a/quick/quick.go +++ b/quick/quick.go @@ -3,11 +3,12 @@ package quick import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/qml" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/qml" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/quickcontrols2/quickcontrols2.go b/quickcontrols2/quickcontrols2.go index 084d67d07..1341c10e6 100644 --- a/quickcontrols2/quickcontrols2.go +++ b/quickcontrols2/quickcontrols2.go @@ -3,7 +3,9 @@ package quickcontrols2 import ( - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/remoteobjects/remoteobjects.go b/remoteobjects/remoteobjects.go index 7b3243292..b968e348f 100644 --- a/remoteobjects/remoteobjects.go +++ b/remoteobjects/remoteobjects.go @@ -3,8 +3,9 @@ package remoteobjects import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/sailfish/sailfish.go b/sailfish/sailfish.go index d546c54c0..d6edf5ffa 100644 --- a/sailfish/sailfish.go +++ b/sailfish/sailfish.go @@ -3,10 +3,11 @@ package sailfish import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" + "strings" "unsafe" ) diff --git a/sailfish/sailfish_sailfish.go b/sailfish/sailfish_sailfish.go index 8cc34b45d..c9ef8de9a 100644 --- a/sailfish/sailfish_sailfish.go +++ b/sailfish/sailfish_sailfish.go @@ -3,10 +3,11 @@ package sailfish import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/quick" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/quick" + "strings" "unsafe" ) diff --git a/script/script.go b/script/script.go index 57e7e239c..4b70ba2b1 100644 --- a/script/script.go +++ b/script/script.go @@ -3,8 +3,9 @@ package script import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/scripttools/scripttools.go b/scripttools/scripttools.go index 16b2a46ea..09fc3c46c 100644 --- a/scripttools/scripttools.go +++ b/scripttools/scripttools.go @@ -3,10 +3,11 @@ package scripttools import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/script" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/script" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/scxml/scxml.go b/scxml/scxml.go index e550b171d..6d75086cd 100644 --- a/scxml/scxml.go +++ b/scxml/scxml.go @@ -3,8 +3,9 @@ package scxml import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/sensors/sensors.go b/sensors/sensors.go index b24dc064a..29a0da13f 100644 --- a/sensors/sensors.go +++ b/sensors/sensors.go @@ -3,8 +3,9 @@ package sensors import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/serialbus/serialbus.go b/serialbus/serialbus.go index 2389313ee..309867458 100644 --- a/serialbus/serialbus.go +++ b/serialbus/serialbus.go @@ -3,9 +3,10 @@ package serialbus import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "strings" "unsafe" ) diff --git a/serialport/serialport.go b/serialport/serialport.go index fa5c8f0b7..42f034d57 100644 --- a/serialport/serialport.go +++ b/serialport/serialport.go @@ -3,8 +3,10 @@ package serialport import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "reflect" + "strings" "unsafe" ) diff --git a/speech/speech.go b/speech/speech.go index c8894ed12..82ea9dd06 100644 --- a/speech/speech.go +++ b/speech/speech.go @@ -3,8 +3,9 @@ package speech import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/sql/sql.go b/sql/sql.go index 607e2f94d..b1ba5b656 100644 --- a/sql/sql.go +++ b/sql/sql.go @@ -3,10 +3,11 @@ package sql import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/svg/svg.go b/svg/svg.go index b2e82c70c..09a9ab910 100644 --- a/svg/svg.go +++ b/svg/svg.go @@ -3,10 +3,11 @@ package svg import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/testlib/testlib.go b/testlib/testlib.go index 89734e57f..b6c1c159f 100644 --- a/testlib/testlib.go +++ b/testlib/testlib.go @@ -3,9 +3,10 @@ package testlib import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/uitools/uitools.go b/uitools/uitools.go index a97b3e681..60e57a3bb 100644 --- a/uitools/uitools.go +++ b/uitools/uitools.go @@ -3,9 +3,10 @@ package uitools import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/virtualkeyboard/virtualkeyboard.go b/virtualkeyboard/virtualkeyboard.go index b956ca624..6772553e5 100644 --- a/virtualkeyboard/virtualkeyboard.go +++ b/virtualkeyboard/virtualkeyboard.go @@ -3,8 +3,9 @@ package virtualkeyboard import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/webchannel/webchannel.go b/webchannel/webchannel.go index c06c03c09..a4789a81d 100644 --- a/webchannel/webchannel.go +++ b/webchannel/webchannel.go @@ -3,8 +3,9 @@ package webchannel import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/webengine/webengine.go b/webengine/webengine.go index 4dc0d3068..e202ef26e 100644 --- a/webengine/webengine.go +++ b/webengine/webengine.go @@ -3,13 +3,14 @@ package webengine import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" - "github.com/therecipe/qt/printsupport" - "github.com/therecipe/qt/webchannel" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/network" + "github.com/bluszcz/cutego/printsupport" + "github.com/bluszcz/cutego/webchannel" + "github.com/bluszcz/cutego/widgets" + "strings" "unsafe" ) diff --git a/webkit/webkit.go b/webkit/webkit.go index 5849fbb84..fad345586 100644 --- a/webkit/webkit.go +++ b/webkit/webkit.go @@ -8,12 +8,12 @@ package webkit //#include "webkit.h" import "C" import ( - "github.com/therecipe/qt" - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/network" - "github.com/therecipe/qt/printsupport" - "github.com/therecipe/qt/widgets" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "github.com/bluszcz/cutego/network" + "github.com/bluszcz/cutego/printsupport" + "github.com/bluszcz/cutego/widgets" "runtime" "strings" "unsafe" diff --git a/websockets/websockets.go b/websockets/websockets.go index e37e78303..067f6ef23 100644 --- a/websockets/websockets.go +++ b/websockets/websockets.go @@ -3,9 +3,10 @@ package websockets import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "strings" "unsafe" ) diff --git a/webview/webview.go b/webview/webview.go index 15b09cc8c..d8f72db9f 100644 --- a/webview/webview.go +++ b/webview/webview.go @@ -3,7 +3,9 @@ package webview import ( - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/widgets/widgets.go b/widgets/widgets.go index e323bbe46..dc11ad989 100644 --- a/widgets/widgets.go +++ b/widgets/widgets.go @@ -3,10 +3,10 @@ package widgets import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/gui" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/interop/gow" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/gui" + "strings" "unsafe" ) @@ -19,6 +19,23 @@ type QAbstractButton_ITF interface { QAbstractButton_PTR() *QAbstractButton } +func interfaceToStringArray(i interface{}) []string { + switch i.(type) { + case interface{}: + return i.([]string) + + case []interface{}: + ifs := i.([]interface{}) + o := []string{} + for _, fn := range ifs { + o = append(o, fn.(string)) + } + return o + default: + panic("expected interface or []interface, but got something else") + } +} + func (ptr *QAbstractButton) QAbstractButton_PTR() *QAbstractButton { return ptr } @@ -13049,12 +13066,12 @@ func (ptr *QFileDialog) GetOpenFileName(parent QWidget_ITF, caption string, dir func QFileDialog_GetOpenFileNames(parent QWidget_ITF, caption string, dir string, filter string, selectedFilter string, options QFileDialog__Option) []string { - return internal.CallLocalFunction([]interface{}{"", "", "widgets.QFileDialog_GetOpenFileNames", "", parent, caption, dir, filter, selectedFilter, options}).([]string) + return interfaceToStringArray(internal.CallLocalFunction([]interface{}{"", "", "widgets.QFileDialog_GetOpenFileNames", "", parent, caption, dir, filter, selectedFilter, options})) } func (ptr *QFileDialog) GetOpenFileNames(parent QWidget_ITF, caption string, dir string, filter string, selectedFilter string, options QFileDialog__Option) []string { - return internal.CallLocalFunction([]interface{}{"", "", "widgets.QFileDialog_GetOpenFileNames", "", parent, caption, dir, filter, selectedFilter, options}).([]string) + return interfaceToStringArray(internal.CallLocalFunction([]interface{}{"", "", "widgets.QFileDialog_GetOpenFileNames", "", parent, caption, dir, filter, selectedFilter, options})) } func QFileDialog_GetOpenFileUrl(parent QWidget_ITF, caption string, dir core.QUrl_ITF, filter string, selectedFilter string, options QFileDialog__Option, supportedSchemes []string) *core.QUrl { @@ -13189,7 +13206,7 @@ func (ptr *QFileDialog) SelectUrl(url core.QUrl_ITF) { func (ptr *QFileDialog) SelectedFiles() []string { - return internal.CallLocalFunction([]interface{}{"", uintptr(ptr.Pointer()), ptr.ClassNameInternalF(), "SelectedFiles"}).([]string) + return interfaceToStringArray(internal.CallLocalFunction([]interface{}{"", uintptr(ptr.Pointer()), ptr.ClassNameInternalF(), "SelectedFiles"})) } func (ptr *QFileDialog) SelectedMimeTypeFilter() string { diff --git a/xml/xml.go b/xml/xml.go index 3ead3d874..d72cc46c1 100644 --- a/xml/xml.go +++ b/xml/xml.go @@ -3,8 +3,9 @@ package xml import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "strings" "unsafe" ) diff --git a/xmlpatterns/xmlpatterns.go b/xmlpatterns/xmlpatterns.go index f3c83ebb3..aa795e3c7 100644 --- a/xmlpatterns/xmlpatterns.go +++ b/xmlpatterns/xmlpatterns.go @@ -3,9 +3,10 @@ package xmlpatterns import ( - "github.com/therecipe/qt/core" - "github.com/therecipe/qt/internal" - "github.com/therecipe/qt/network" + "github.com/bluszcz/cutego" + "github.com/bluszcz/cutego/core" + "github.com/bluszcz/cutego/network" + "strings" "unsafe" )