Revision control

+ /**
+ * Qt6 Common library
+ *
+ * Copyright (C) 2026 The Qt Company Ltd.
+ * SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit the class manually.
+ */
+
+ #ifndef QOAI_OBJECT_H
+ #define QOAI_OBJECT_H
+
+ #include "qoaicmakecommonlibgeneratedclientcommonexports.h"
+
+ #include <QtCore/qjsonvalue.h>
+ #include <QtCore/qstring.h>
+
+ #include <memory>
+
+ QT_BEGIN_NAMESPACE
+
+ namespace QtOpenApiCommon {
+
+ class QOAIObjectPrivate;
+
+ class CMAKECOMMONLIBGENERATEDCLIENT_COMMON_EXPORT QOAIObject {
+ public:
+ QOAIObject();
+ QOAIObject(const QOAIObject &other);
+ QOAIObject &operator=(const QOAIObject &other);
+ QOAIObject(QOAIObject &&) noexcept;
+ QOAIObject &operator=(QOAIObject &&) noexcept;
+ virtual ~QOAIObject();
+
+ virtual QJsonValue asJsonValue() const;
+ virtual QString asJson() const;
+ virtual void fromJson(const QString &jsonString);
+ virtual void fromJsonValue(const QJsonValue &json);
+ virtual bool isSet() const;
+ virtual bool isValid() const;
+
+ private:
+ friend bool operator==(const QOAIObject &lhs, const QOAIObject &rhs)
+ { return lhs.asJsonValue() == rhs.asJsonValue(); }
+ friend bool operator!=(const QOAIObject &lhs, const QOAIObject &rhs)
+ { return !operator==(lhs, rhs); }
+
+ friend size_t qHash(const QOAIObject &obj, size_t seed)
+ { return qHash(obj.asJsonValue(), seed); }
+ friend size_t qHash(const QOAIObject &obj)
+ { return qHash(obj, 0); }
+
+ private:
+ // Note that d_ptr refers to QObjectPrivate, which we cannot use because
+ // we do not want to link to CorePrivate
+ friend class QOAIObjectPrivate;
+ std::unique_ptr<QOAIObjectPrivate> d;
+ };
+
+ } // namespace QtOpenApiCommon
+
+ QT_END_NAMESPACE
+
+ #endif // QOAI_OBJECT_H