#include #include #include #include #include #include #include #include "gen_qabstractfileiconprovider.h" #include "_cgo_export.h" QAbstractFileIconProvider* QAbstractFileIconProvider_new() { return new QAbstractFileIconProvider(); } QIcon* QAbstractFileIconProvider_Icon(const QAbstractFileIconProvider* self, int param1) { return new QIcon(self->icon(static_cast(param1))); } QIcon* QAbstractFileIconProvider_IconWithQFileInfo(const QAbstractFileIconProvider* self, QFileInfo* param1) { return new QIcon(self->icon(*param1)); } struct miqt_string QAbstractFileIconProvider_Type(const QAbstractFileIconProvider* self, QFileInfo* param1) { QString _ret = self->type(*param1); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QAbstractFileIconProvider_SetOptions(QAbstractFileIconProvider* self, int options) { self->setOptions(static_cast(options)); } int QAbstractFileIconProvider_Options(const QAbstractFileIconProvider* self) { QAbstractFileIconProvider::Options _ret = self->options(); return static_cast(_ret); } void QAbstractFileIconProvider_Delete(QAbstractFileIconProvider* self) { delete self; }