2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_GEN_QJSONVALUE_H
|
|
|
|
#define MIQT_QT6_GEN_QJSONVALUE_H
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QJsonArray;
|
|
|
|
class QJsonObject;
|
|
|
|
class QJsonValue;
|
|
|
|
class QJsonValueConstRef;
|
|
|
|
class QJsonValueRef;
|
|
|
|
class QVariant;
|
|
|
|
#else
|
|
|
|
typedef struct QJsonArray QJsonArray;
|
|
|
|
typedef struct QJsonObject QJsonObject;
|
|
|
|
typedef struct QJsonValue QJsonValue;
|
|
|
|
typedef struct QJsonValueConstRef QJsonValueConstRef;
|
|
|
|
typedef struct QJsonValueRef QJsonValueRef;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonValue* QJsonValue_new();
|
|
|
|
QJsonValue* QJsonValue_new2(bool b);
|
|
|
|
QJsonValue* QJsonValue_new3(double n);
|
|
|
|
QJsonValue* QJsonValue_new4(int n);
|
|
|
|
QJsonValue* QJsonValue_new5(long long v);
|
|
|
|
QJsonValue* QJsonValue_new6(struct miqt_string s);
|
|
|
|
QJsonValue* QJsonValue_new7(const char* s);
|
|
|
|
QJsonValue* QJsonValue_new8(QJsonArray* a);
|
|
|
|
QJsonValue* QJsonValue_new9(QJsonObject* o);
|
|
|
|
QJsonValue* QJsonValue_new10(QJsonValue* other);
|
|
|
|
QJsonValue* QJsonValue_new11(int param1);
|
2024-10-20 05:21:03 +00:00
|
|
|
void QJsonValue_OperatorAssign(QJsonValue* self, QJsonValue* other);
|
|
|
|
void QJsonValue_Swap(QJsonValue* self, QJsonValue* other);
|
|
|
|
QJsonValue* QJsonValue_FromVariant(QVariant* variant);
|
|
|
|
QVariant* QJsonValue_ToVariant(const QJsonValue* self);
|
|
|
|
int QJsonValue_Type(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsNull(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsBool(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsDouble(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsString(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsArray(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsObject(const QJsonValue* self);
|
|
|
|
bool QJsonValue_IsUndefined(const QJsonValue* self);
|
|
|
|
bool QJsonValue_ToBool(const QJsonValue* self);
|
|
|
|
int QJsonValue_ToInt(const QJsonValue* self);
|
|
|
|
long long QJsonValue_ToInteger(const QJsonValue* self);
|
|
|
|
double QJsonValue_ToDouble(const QJsonValue* self);
|
|
|
|
struct miqt_string QJsonValue_ToString(const QJsonValue* self);
|
|
|
|
struct miqt_string QJsonValue_ToStringWithDefaultValue(const QJsonValue* self, struct miqt_string defaultValue);
|
|
|
|
QJsonArray* QJsonValue_ToArray(const QJsonValue* self);
|
|
|
|
QJsonArray* QJsonValue_ToArrayWithDefaultValue(const QJsonValue* self, QJsonArray* defaultValue);
|
|
|
|
QJsonObject* QJsonValue_ToObject(const QJsonValue* self);
|
|
|
|
QJsonObject* QJsonValue_ToObjectWithDefaultValue(const QJsonValue* self, QJsonObject* defaultValue);
|
|
|
|
QJsonValue* QJsonValue_OperatorSubscript(const QJsonValue* self, struct miqt_string key);
|
|
|
|
QJsonValue* QJsonValue_OperatorSubscriptWithQsizetype(const QJsonValue* self, ptrdiff_t i);
|
|
|
|
bool QJsonValue_OperatorEqual(const QJsonValue* self, QJsonValue* other);
|
|
|
|
bool QJsonValue_OperatorNotEqual(const QJsonValue* self, QJsonValue* other);
|
|
|
|
bool QJsonValue_ToBool1(const QJsonValue* self, bool defaultValue);
|
|
|
|
int QJsonValue_ToInt1(const QJsonValue* self, int defaultValue);
|
|
|
|
long long QJsonValue_ToInteger1(const QJsonValue* self, long long defaultValue);
|
|
|
|
double QJsonValue_ToDouble1(const QJsonValue* self, double defaultValue);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonValue_Delete(QJsonValue* self, bool isSubclass);
|
2024-10-20 05:21:03 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonValueConstRef* QJsonValueConstRef_new(QJsonValueConstRef* param1);
|
2024-10-20 05:21:03 +00:00
|
|
|
QVariant* QJsonValueConstRef_ToVariant(const QJsonValueConstRef* self);
|
|
|
|
int QJsonValueConstRef_Type(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsNull(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsBool(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsDouble(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsString(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsArray(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsObject(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_IsUndefined(const QJsonValueConstRef* self);
|
|
|
|
bool QJsonValueConstRef_ToBool(const QJsonValueConstRef* self);
|
|
|
|
int QJsonValueConstRef_ToInt(const QJsonValueConstRef* self);
|
|
|
|
long long QJsonValueConstRef_ToInteger(const QJsonValueConstRef* self);
|
|
|
|
double QJsonValueConstRef_ToDouble(const QJsonValueConstRef* self);
|
|
|
|
struct miqt_string QJsonValueConstRef_ToString(const QJsonValueConstRef* self);
|
|
|
|
QJsonArray* QJsonValueConstRef_ToArray(const QJsonValueConstRef* self);
|
|
|
|
QJsonObject* QJsonValueConstRef_ToObject(const QJsonValueConstRef* self);
|
|
|
|
QJsonValue* QJsonValueConstRef_OperatorSubscriptWithQsizetype(const QJsonValueConstRef* self, ptrdiff_t i);
|
|
|
|
bool QJsonValueConstRef_OperatorEqual(const QJsonValueConstRef* self, QJsonValue* other);
|
|
|
|
bool QJsonValueConstRef_OperatorNotEqual(const QJsonValueConstRef* self, QJsonValue* other);
|
|
|
|
bool QJsonValueConstRef_ToBool1(const QJsonValueConstRef* self, bool defaultValue);
|
|
|
|
int QJsonValueConstRef_ToInt1(const QJsonValueConstRef* self, int defaultValue);
|
|
|
|
long long QJsonValueConstRef_ToInteger1(const QJsonValueConstRef* self, long long defaultValue);
|
|
|
|
double QJsonValueConstRef_ToDouble1(const QJsonValueConstRef* self, double defaultValue);
|
|
|
|
struct miqt_string QJsonValueConstRef_ToString1(const QJsonValueConstRef* self, struct miqt_string defaultValue);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonValueConstRef_Delete(QJsonValueConstRef* self, bool isSubclass);
|
2024-10-20 05:21:03 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QJsonValueRef* QJsonValueRef_new(QJsonValueRef* param1);
|
|
|
|
QJsonValueRef* QJsonValueRef_new2(QJsonArray* array, ptrdiff_t idx);
|
|
|
|
QJsonValueRef* QJsonValueRef_new3(QJsonObject* object, ptrdiff_t idx);
|
|
|
|
void QJsonValueRef_virtbase(QJsonValueRef* src, QJsonValueConstRef** outptr_QJsonValueConstRef);
|
2024-10-20 05:21:03 +00:00
|
|
|
void QJsonValueRef_OperatorAssign(QJsonValueRef* self, QJsonValue* val);
|
|
|
|
void QJsonValueRef_OperatorAssignWithVal(QJsonValueRef* self, QJsonValueRef* val);
|
|
|
|
QVariant* QJsonValueRef_ToVariant(const QJsonValueRef* self);
|
|
|
|
int QJsonValueRef_Type(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsNull(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsBool(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsDouble(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsString(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsArray(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsObject(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_IsUndefined(const QJsonValueRef* self);
|
|
|
|
bool QJsonValueRef_ToBool(const QJsonValueRef* self);
|
|
|
|
int QJsonValueRef_ToInt(const QJsonValueRef* self);
|
|
|
|
long long QJsonValueRef_ToInteger(const QJsonValueRef* self);
|
|
|
|
double QJsonValueRef_ToDouble(const QJsonValueRef* self);
|
|
|
|
struct miqt_string QJsonValueRef_ToString(const QJsonValueRef* self);
|
|
|
|
QJsonArray* QJsonValueRef_ToArray(const QJsonValueRef* self);
|
|
|
|
QJsonObject* QJsonValueRef_ToObject(const QJsonValueRef* self);
|
|
|
|
QJsonValue* QJsonValueRef_OperatorSubscriptWithQsizetype(const QJsonValueRef* self, ptrdiff_t i);
|
|
|
|
bool QJsonValueRef_OperatorEqual(const QJsonValueRef* self, QJsonValue* other);
|
|
|
|
bool QJsonValueRef_OperatorNotEqual(const QJsonValueRef* self, QJsonValue* other);
|
|
|
|
bool QJsonValueRef_ToBool1(const QJsonValueRef* self, bool defaultValue);
|
|
|
|
int QJsonValueRef_ToInt1(const QJsonValueRef* self, int defaultValue);
|
|
|
|
long long QJsonValueRef_ToInteger1(const QJsonValueRef* self, long long defaultValue);
|
|
|
|
double QJsonValueRef_ToDouble1(const QJsonValueRef* self, double defaultValue);
|
|
|
|
struct miqt_string QJsonValueRef_ToString1(const QJsonValueRef* self, struct miqt_string defaultValue);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QJsonValueRef_Delete(QJsonValueRef* self, bool isSubclass);
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|