2024-08-25 04:08:24 +00:00
|
|
|
#include <QJsonArray>
|
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QJsonValue>
|
|
|
|
#include <QJsonValuePtr>
|
|
|
|
#include <QJsonValueRef>
|
|
|
|
#include <QJsonValueRefPtr>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QVariant>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qjsonvalue.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qjsonvalue.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new() {
|
|
|
|
return new QJsonValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonValue_new2(bool b) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(b);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new3(double n) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(static_cast<double>(n));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new4(int n) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(static_cast<int>(n));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new5(long long v) {
|
|
|
|
return new QJsonValue(static_cast<qint64>(v));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new6(const char* s, size_t s_Strlen) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QString s_QString = QString::fromUtf8(s, s_Strlen);
|
|
|
|
return new QJsonValue(s_QString);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new7(const char* s) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(s);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new8(QJsonArray* a) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(*a);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new9(QJsonObject* o) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(*o);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new10(QJsonValue* other) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QJsonValue(*other);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue* QJsonValue_new11(uintptr_t param1) {
|
|
|
|
return new QJsonValue(static_cast<QJsonValue::Type>(param1));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QJsonValue_OperatorAssign(QJsonValue* self, QJsonValue* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValue_Swap(QJsonValue* self, QJsonValue* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonValue_FromVariant(QVariant* variant) {
|
|
|
|
QJsonValue ret = QJsonValue::fromVariant(*variant);
|
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonValue*>(new QJsonValue(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QJsonValue_ToVariant(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QVariant ret = const_cast<const QJsonValue*>(self)->toVariant();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QVariant*>(new QVariant(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QJsonValue_Type(QJsonValue* self) {
|
|
|
|
QJsonValue::Type ret = const_cast<const QJsonValue*>(self)->type();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QJsonValue_IsNull(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isNull();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_IsBool(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isBool();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_IsDouble(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isDouble();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_IsString(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isString();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_IsArray(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isArray();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_IsObject(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_IsUndefined(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->isUndefined();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_ToBool(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->toBool();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QJsonValue_ToInt(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->toInt();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double QJsonValue_ToDouble(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->toDouble();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValue_ToString(QJsonValue* self, char** _out, int* _out_Strlen) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QString ret = const_cast<const QJsonValue*>(self)->toString();
|
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
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValue_ToStringWithDefaultValue(QJsonValue* self, const char* defaultValue, size_t defaultValue_Strlen, char** _out, int* _out_Strlen) {
|
|
|
|
QString defaultValue_QString = QString::fromUtf8(defaultValue, defaultValue_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
QString ret = const_cast<const QJsonValue*>(self)->toString(defaultValue_QString);
|
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
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray* QJsonValue_ToArray(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonArray ret = const_cast<const QJsonValue*>(self)->toArray();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonArray*>(new QJsonArray(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray* QJsonValue_ToArrayWithDefaultValue(QJsonValue* self, QJsonArray* defaultValue) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonArray ret = const_cast<const QJsonValue*>(self)->toArray(*defaultValue);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonArray*>(new QJsonArray(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject* QJsonValue_ToObject(QJsonValue* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonObject ret = const_cast<const QJsonValue*>(self)->toObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonObject*>(new QJsonObject(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject* QJsonValue_ToObjectWithDefaultValue(QJsonValue* self, QJsonObject* defaultValue) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonObject ret = const_cast<const QJsonValue*>(self)->toObject(*defaultValue);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonObject*>(new QJsonObject(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonValue_OperatorSubscript(QJsonValue* self, const char* key, size_t key_Strlen) {
|
|
|
|
QString key_QString = QString::fromUtf8(key, key_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue ret = const_cast<const QJsonValue*>(self)->operator[](key_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonValue*>(new QJsonValue(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonValue_OperatorSubscriptWithInt(QJsonValue* self, int i) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonValue ret = const_cast<const QJsonValue*>(self)->operator[](static_cast<int>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonValue*>(new QJsonValue(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_OperatorEqual(QJsonValue* self, QJsonValue* other) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->operator==(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_OperatorNotEqual(QJsonValue* self, QJsonValue* other) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValue*>(self)->operator!=(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValue_ToBool1(QJsonValue* self, bool defaultValue) {
|
|
|
|
return self->toBool(defaultValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
int QJsonValue_ToInt1(QJsonValue* self, int defaultValue) {
|
|
|
|
return self->toInt(static_cast<int>(defaultValue));
|
|
|
|
}
|
|
|
|
|
|
|
|
double QJsonValue_ToDouble1(QJsonValue* self, double defaultValue) {
|
|
|
|
return self->toDouble(static_cast<double>(defaultValue));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValue_Delete(QJsonValue* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonValueRef_new(QJsonValueRef* param1) {
|
|
|
|
return new QJsonValueRef(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonValueRef_new2(QJsonArray* array, int idx) {
|
|
|
|
return new QJsonValueRef(array, static_cast<int>(idx));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonValueRef_new3(QJsonObject* object, int idx) {
|
|
|
|
return new QJsonValueRef(object, static_cast<int>(idx));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRef_OperatorAssign(QJsonValueRef* self, QJsonValue* val) {
|
|
|
|
self->operator=(*val);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRef_OperatorAssignWithVal(QJsonValueRef* self, QJsonValueRef* val) {
|
|
|
|
self->operator=(*val);
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QJsonValueRef_ToVariant(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QVariant ret = const_cast<const QJsonValueRef*>(self)->toVariant();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QVariant*>(new QVariant(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QJsonValueRef_Type(QJsonValueRef* self) {
|
|
|
|
QJsonValue::Type ret = const_cast<const QJsonValueRef*>(self)->type();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QJsonValueRef_IsNull(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isNull();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_IsBool(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isBool();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_IsDouble(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isDouble();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_IsString(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isString();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_IsArray(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isArray();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_IsObject(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_IsUndefined(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->isUndefined();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_ToBool(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->toBool();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QJsonValueRef_ToInt(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->toInt();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double QJsonValueRef_ToDouble(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->toDouble();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRef_ToString(QJsonValueRef* self, char** _out, int* _out_Strlen) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QString ret = const_cast<const QJsonValueRef*>(self)->toString();
|
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
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonArray* QJsonValueRef_ToArray(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonArray ret = const_cast<const QJsonValueRef*>(self)->toArray();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonArray*>(new QJsonArray(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject* QJsonValueRef_ToObject(QJsonValueRef* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QJsonObject ret = const_cast<const QJsonValueRef*>(self)->toObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QJsonObject*>(new QJsonObject(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_ToBoolWithDefaultValue(QJsonValueRef* self, bool defaultValue) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->toBool(defaultValue);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QJsonValueRef_ToIntWithDefaultValue(QJsonValueRef* self, int defaultValue) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->toInt(static_cast<int>(defaultValue));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double QJsonValueRef_ToDoubleWithDefaultValue(QJsonValueRef* self, double defaultValue) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->toDouble(static_cast<double>(defaultValue));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRef_ToStringWithDefaultValue(QJsonValueRef* self, const char* defaultValue, size_t defaultValue_Strlen, char** _out, int* _out_Strlen) {
|
|
|
|
QString defaultValue_QString = QString::fromUtf8(defaultValue, defaultValue_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
QString ret = const_cast<const QJsonValueRef*>(self)->toString(defaultValue_QString);
|
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
|
|
|
|
QByteArray b = ret.toUtf8();
|
|
|
|
*_out = static_cast<char*>(malloc(b.length()));
|
|
|
|
memcpy(*_out, b.data(), b.length());
|
|
|
|
*_out_Strlen = b.length();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_OperatorEqual(QJsonValueRef* self, QJsonValue* other) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->operator==(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QJsonValueRef_OperatorNotEqual(QJsonValueRef* self, QJsonValue* other) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QJsonValueRef*>(self)->operator!=(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRef_Delete(QJsonValueRef* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValuePtr* QJsonValuePtr_new(QJsonValue* val) {
|
|
|
|
return new QJsonValuePtr(*val);
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValuePtr* QJsonValuePtr_new2(QJsonValuePtr* param1) {
|
|
|
|
return new QJsonValuePtr(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonValuePtr_OperatorMultiply(QJsonValuePtr* self) {
|
|
|
|
QJsonValue& ret = self->operator*();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValue* QJsonValuePtr_OperatorMinusGreater(QJsonValuePtr* self) {
|
|
|
|
return self->operator->();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValuePtr_OperatorAssign(QJsonValuePtr* self, QJsonValuePtr* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValuePtr_Delete(QJsonValuePtr* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRefPtr* QJsonValueRefPtr_new(QJsonArray* array, int idx) {
|
|
|
|
return new QJsonValueRefPtr(array, static_cast<int>(idx));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRefPtr* QJsonValueRefPtr_new2(QJsonObject* object, int idx) {
|
|
|
|
return new QJsonValueRefPtr(object, static_cast<int>(idx));
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRefPtr* QJsonValueRefPtr_new3(QJsonValueRefPtr* param1) {
|
|
|
|
return new QJsonValueRefPtr(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonValueRefPtr_OperatorMultiply(QJsonValueRefPtr* self) {
|
|
|
|
QJsonValueRef& ret = self->operator*();
|
|
|
|
// Cast returned reference into pointer
|
|
|
|
return &ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonValueRef* QJsonValueRefPtr_OperatorMinusGreater(QJsonValueRefPtr* self) {
|
|
|
|
return self->operator->();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRefPtr_OperatorAssign(QJsonValueRefPtr* self, QJsonValueRefPtr* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QJsonValueRefPtr_Delete(QJsonValueRefPtr* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|