2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonObject>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QJsonObject__const_iterator
|
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QJsonObject__iterator
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonValue>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QJsonValuePtr>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonValueRef>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QJsonValueRefPtr>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QList>
|
2024-11-04 07:59:22 +00:00
|
|
|
#include <QMap>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-11-04 07:59:22 +00:00
|
|
|
#include <QVariant>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qjsonobject.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qjsonobject.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject_new(QJsonObject** outptr_QJsonObject) {
|
|
|
|
QJsonObject* ret = new QJsonObject();
|
|
|
|
*outptr_QJsonObject = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject_new2(QJsonObject* other, QJsonObject** outptr_QJsonObject) {
|
|
|
|
QJsonObject* ret = new QJsonObject(*other);
|
|
|
|
*outptr_QJsonObject = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonObject_OperatorAssign(QJsonObject* self, QJsonObject* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonObject_Swap(QJsonObject* self, QJsonObject* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
QJsonObject* QJsonObject_FromVariantMap(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QVariantMap mapVal_QMap;
|
|
|
|
struct miqt_string* mapVal_karr = static_cast<struct miqt_string*>(mapVal.keys);
|
|
|
|
QVariant** mapVal_varr = static_cast<QVariant**>(mapVal.values);
|
|
|
|
for(size_t i = 0; i < mapVal.len; ++i) {
|
|
|
|
QString mapVal_karr_i_QString = QString::fromUtf8(mapVal_karr[i].data, mapVal_karr[i].len);
|
|
|
|
mapVal_QMap[mapVal_karr_i_QString] = *(mapVal_varr[i]);
|
|
|
|
}
|
|
|
|
return new QJsonObject(QJsonObject::fromVariantMap(mapVal_QMap));
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantMap(const QJsonObject* self) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QVariantMap _ret = self->toVariantMap();
|
|
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
|
|
struct miqt_string* _karr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.size()));
|
|
|
|
QVariant** _varr = static_cast<QVariant**>(malloc(sizeof(QVariant*) * _ret.size()));
|
|
|
|
int _ctr = 0;
|
|
|
|
for (auto _itr = _ret.keyValueBegin(); _itr != _ret.keyValueEnd(); ++_itr) {
|
|
|
|
QString _mapkey_ret = _itr->first;
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _mapkey_b = _mapkey_ret.toUtf8();
|
|
|
|
struct miqt_string _mapkey_ms;
|
|
|
|
_mapkey_ms.len = _mapkey_b.length();
|
|
|
|
_mapkey_ms.data = static_cast<char*>(malloc(_mapkey_ms.len));
|
|
|
|
memcpy(_mapkey_ms.data, _mapkey_b.data(), _mapkey_ms.len);
|
|
|
|
_karr[_ctr] = _mapkey_ms;
|
|
|
|
_varr[_ctr] = new QVariant(_itr->second);
|
|
|
|
_ctr++;
|
|
|
|
}
|
|
|
|
struct miqt_map _out;
|
|
|
|
_out.len = _ret.size();
|
|
|
|
_out.keys = static_cast<void*>(_karr);
|
|
|
|
_out.values = static_cast<void*>(_varr);
|
|
|
|
return _out;
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
QJsonObject* QJsonObject_FromVariantHash(struct miqt_map /* of struct miqt_string to QVariant* */ mapVal) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QVariantHash mapVal_QMap;
|
|
|
|
mapVal_QMap.reserve(mapVal.len);
|
|
|
|
struct miqt_string* mapVal_karr = static_cast<struct miqt_string*>(mapVal.keys);
|
|
|
|
QVariant** mapVal_varr = static_cast<QVariant**>(mapVal.values);
|
|
|
|
for(size_t i = 0; i < mapVal.len; ++i) {
|
|
|
|
QString mapVal_karr_i_QString = QString::fromUtf8(mapVal_karr[i].data, mapVal_karr[i].len);
|
|
|
|
mapVal_QMap[mapVal_karr_i_QString] = *(mapVal_varr[i]);
|
|
|
|
}
|
|
|
|
return new QJsonObject(QJsonObject::fromVariantHash(mapVal_QMap));
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_map /* of struct miqt_string to QVariant* */ QJsonObject_ToVariantHash(const QJsonObject* self) {
|
2024-11-04 07:59:22 +00:00
|
|
|
QVariantHash _ret = self->toVariantHash();
|
|
|
|
// Convert QMap<> from C++ memory to manually-managed C memory
|
|
|
|
struct miqt_string* _karr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.size()));
|
|
|
|
QVariant** _varr = static_cast<QVariant**>(malloc(sizeof(QVariant*) * _ret.size()));
|
|
|
|
int _ctr = 0;
|
|
|
|
for (auto _itr = _ret.keyValueBegin(); _itr != _ret.keyValueEnd(); ++_itr) {
|
|
|
|
QString _hashkey_ret = _itr->first;
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _hashkey_b = _hashkey_ret.toUtf8();
|
|
|
|
struct miqt_string _hashkey_ms;
|
|
|
|
_hashkey_ms.len = _hashkey_b.length();
|
|
|
|
_hashkey_ms.data = static_cast<char*>(malloc(_hashkey_ms.len));
|
|
|
|
memcpy(_hashkey_ms.data, _hashkey_b.data(), _hashkey_ms.len);
|
|
|
|
_karr[_ctr] = _hashkey_ms;
|
|
|
|
_varr[_ctr] = new QVariant(_itr->second);
|
|
|
|
_ctr++;
|
|
|
|
}
|
|
|
|
struct miqt_map _out;
|
|
|
|
_out.len = _ret.size();
|
|
|
|
_out.keys = static_cast<void*>(_karr);
|
|
|
|
_out.values = static_cast<void*>(_varr);
|
|
|
|
return _out;
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QJsonObject_Keys(const QJsonObject* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QStringList _ret = self->keys();
|
2024-09-17 06:29:11 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string* _arr = static_cast<struct miqt_string*>(malloc(sizeof(struct miqt_string) * _ret.length()));
|
2024-09-14 22:29:05 +00:00
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
QString _lv_ret = _ret[i];
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _lv_b = _lv_ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _lv_ms;
|
|
|
|
_lv_ms.len = _lv_b.length();
|
|
|
|
_lv_ms.data = static_cast<char*>(malloc(_lv_ms.len));
|
|
|
|
memcpy(_lv_ms.data, _lv_b.data(), _lv_ms.len);
|
|
|
|
_arr[i] = _lv_ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-11-04 07:18:27 +00:00
|
|
|
struct miqt_array _out;
|
|
|
|
_out.len = _ret.length();
|
|
|
|
_out.data = static_cast<void*>(_arr);
|
2024-09-14 22:29:05 +00:00
|
|
|
return _out;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonObject_Size(const QJsonObject* self) {
|
|
|
|
return self->size();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonObject_Count(const QJsonObject* self) {
|
|
|
|
return self->count();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonObject_Length(const QJsonObject* self) {
|
|
|
|
return self->length();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject_IsEmpty(const QJsonObject* self) {
|
|
|
|
return self->isEmpty();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonValue* QJsonObject_Value(const QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->value(key_QString));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonValue* QJsonObject_OperatorSubscript(const QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->operator[](key_QString));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonValueRef* QJsonObject_OperatorSubscriptWithKey(QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->operator[](key_QString));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
void QJsonObject_Remove(QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->remove(key_QString);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonValue* QJsonObject_Take(QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->take(key_QString));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QJsonObject_Contains(const QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->contains(key_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject_OperatorEqual(const QJsonObject* self, QJsonObject* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject_OperatorNotEqual(const QJsonObject* self, QJsonObject* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__iterator* QJsonObject_Begin(QJsonObject* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->begin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject_Begin2(const QJsonObject* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->begin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject_ConstBegin(const QJsonObject* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->constBegin());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__iterator* QJsonObject_End(QJsonObject* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->end());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject_End2(const QJsonObject* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->end());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject_ConstEnd(const QJsonObject* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->constEnd());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__iterator* QJsonObject_Erase(QJsonObject* self, QJsonObject__iterator* it) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->erase(*it));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonObject__iterator* QJsonObject_Find(QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->find(key_QString));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject_FindWithKey(const QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->find(key_QString));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject_ConstFind(const QJsonObject* self, struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->constFind(key_QString));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QJsonObject__iterator* QJsonObject_Insert(QJsonObject* self, struct miqt_string key, QJsonValue* value) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->insert(key_QString, *value));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject_Empty(const QJsonObject* self) {
|
|
|
|
return self->empty();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject_Delete(QJsonObject* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QJsonObject*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__iterator_new(QJsonObject__iterator** outptr_QJsonObject__iterator) {
|
|
|
|
QJsonObject::iterator* ret = new QJsonObject::iterator();
|
|
|
|
*outptr_QJsonObject__iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__iterator_new2(QJsonObject* obj, int index, QJsonObject__iterator** outptr_QJsonObject__iterator) {
|
|
|
|
QJsonObject::iterator* ret = new QJsonObject::iterator(obj, static_cast<int>(index));
|
|
|
|
*outptr_QJsonObject__iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__iterator_new3(QJsonObject__iterator* param1, QJsonObject__iterator** outptr_QJsonObject__iterator) {
|
|
|
|
QJsonObject::iterator* ret = new QJsonObject::iterator(*param1);
|
|
|
|
*outptr_QJsonObject__iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QJsonObject__iterator_Key(const QJsonObject__iterator* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->key();
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValueRef* QJsonObject__iterator_Value(const QJsonObject__iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->value());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValueRef* QJsonObject__iterator_OperatorMultiply(const QJsonObject__iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->operator*());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValueRefPtr* QJsonObject__iterator_OperatorMinusGreater(const QJsonObject__iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRefPtr(self->operator->());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonObject__iterator_OperatorSubscript(QJsonObject__iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValueRef(self->operator[](static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorEqual(const QJsonObject__iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorNotEqual(const QJsonObject__iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorLesser(const QJsonObject__iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorLesserOrEqual(const QJsonObject__iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorGreater(const QJsonObject__iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorGreaterOrEqual(const QJsonObject__iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorPlusPlus(QJsonObject__iterator* self) {
|
|
|
|
QJsonObject::iterator& _ret = self->operator++();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorPlusPlusWithInt(QJsonObject__iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->operator++(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorMinusMinus(QJsonObject__iterator* self) {
|
|
|
|
QJsonObject::iterator& _ret = self->operator--();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorMinusMinusWithInt(QJsonObject__iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->operator--(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorPlus(const QJsonObject__iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->operator+(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorMinus(const QJsonObject__iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::iterator(self->operator-(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorPlusAssign(QJsonObject__iterator* self, int j) {
|
|
|
|
QJsonObject::iterator& _ret = self->operator+=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__iterator* QJsonObject__iterator_OperatorMinusAssign(QJsonObject__iterator* self, int j) {
|
|
|
|
QJsonObject::iterator& _ret = self->operator-=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonObject__iterator_OperatorMinusWithQJsonObjectiterator(const QJsonObject__iterator* self, QJsonObject__iterator* j) {
|
|
|
|
return self->operator-(*j);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorNotEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorLesserWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorLesserOrEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorGreaterWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__iterator_Delete(QJsonObject__iterator* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QJsonObject::iterator*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__const_iterator_new(QJsonObject__const_iterator** outptr_QJsonObject__const_iterator) {
|
|
|
|
QJsonObject::const_iterator* ret = new QJsonObject::const_iterator();
|
|
|
|
*outptr_QJsonObject__const_iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__const_iterator_new2(QJsonObject* obj, int index, QJsonObject__const_iterator** outptr_QJsonObject__const_iterator) {
|
|
|
|
QJsonObject::const_iterator* ret = new QJsonObject::const_iterator(obj, static_cast<int>(index));
|
|
|
|
*outptr_QJsonObject__const_iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__const_iterator_new3(QJsonObject__iterator* other, QJsonObject__const_iterator** outptr_QJsonObject__const_iterator) {
|
|
|
|
QJsonObject::const_iterator* ret = new QJsonObject::const_iterator(*other);
|
|
|
|
*outptr_QJsonObject__const_iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__const_iterator_new4(QJsonObject__const_iterator* param1, QJsonObject__const_iterator** outptr_QJsonObject__const_iterator) {
|
|
|
|
QJsonObject::const_iterator* ret = new QJsonObject::const_iterator(*param1);
|
|
|
|
*outptr_QJsonObject__const_iterator = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QJsonObject__const_iterator_Key(const QJsonObject__const_iterator* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->key();
|
2024-08-29 07:01:51 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonObject__const_iterator_Value(const QJsonObject__const_iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->value());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValue* QJsonObject__const_iterator_OperatorMultiply(const QJsonObject__const_iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->operator*());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonValuePtr* QJsonObject__const_iterator_OperatorMinusGreater(const QJsonObject__const_iterator* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValuePtr(self->operator->());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonObject__const_iterator_OperatorSubscript(QJsonObject__const_iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonValue(self->operator[](static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorEqual(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorNotEqual(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorLesser(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorLesserOrEqual(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorGreater(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorGreaterOrEqual(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorPlusPlus(QJsonObject__const_iterator* self) {
|
|
|
|
QJsonObject::const_iterator& _ret = self->operator++();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorPlusPlusWithInt(QJsonObject__const_iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->operator++(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorMinusMinus(QJsonObject__const_iterator* self) {
|
|
|
|
QJsonObject::const_iterator& _ret = self->operator--();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorMinusMinusWithInt(QJsonObject__const_iterator* self, int param1) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->operator--(static_cast<int>(param1)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorPlus(const QJsonObject__const_iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->operator+(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorMinus(const QJsonObject__const_iterator* self, int j) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QJsonObject::const_iterator(self->operator-(static_cast<int>(j)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorPlusAssign(QJsonObject__const_iterator* self, int j) {
|
|
|
|
QJsonObject::const_iterator& _ret = self->operator+=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject__const_iterator* QJsonObject__const_iterator_OperatorMinusAssign(QJsonObject__const_iterator* self, int j) {
|
|
|
|
QJsonObject::const_iterator& _ret = self->operator-=(static_cast<int>(j));
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &_ret;
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QJsonObject__const_iterator_OperatorMinusWithQJsonObjectconstIterator(const QJsonObject__const_iterator* self, QJsonObject__const_iterator* j) {
|
|
|
|
return self->operator-(*j);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorNotEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorLesserWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self < *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorLesserOrEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self <= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorGreaterWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self > *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QJsonObject__const_iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self >= *other);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QJsonObject::const_iterator*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|