Source code
Revision control
Copy as Markdown
/* This file is autogenerated. DO NOT CHANGE. All changes will be lost */
#ifndef QTGRPCGEN_QPB_H
#define QTGRPCGEN_QPB_H
#include "tst_qtgrpcgen_qml_exports.qpb.h"
#include <QtProtobuf/qprotobuflazymessagepointer.h>
#include <QtProtobuf/qprotobufmessage.h>
#include <QtProtobuf/qprotobufobject.h>
#include <QtProtobuf/qtprotobuftypes.h>
#include <QtQml/qqmllist.h>
#include <QtQml/qqmlregistration.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qlist.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qshareddata.h>
#include <QtCore/qstring.h>
namespace qtgrpc::tests {
class IntMessage;
namespace IntMessage_QtProtobufNested {
enum class QtProtobufFieldEnum;
} // namespace IntMessage_QtProtobufNested
#ifdef QT_USE_PROTOBUF_LIST_ALIASES
using IntMessageRepeated = QList<IntMessage>;
#endif // QT_USE_PROTOBUF_LIST_ALIASES
class IntMessage_QtProtobufData;
class IntMessage final : public QProtobufMessage
{
Q_PROTOBUF_OBJECT_EXPORT(QPB_TST_QTGRPCGEN_QML_EXPORT)
QML_STRUCTURED_VALUE
QML_VALUE_TYPE(intMessage)
Q_PROPERTY(QtProtobuf::sint32 field READ field WRITE setField SCRIPTABLE true FINAL)
public:
using QtProtobufFieldEnum = IntMessage_QtProtobufNested::QtProtobufFieldEnum;
QPB_TST_QTGRPCGEN_QML_EXPORT IntMessage();
QPB_TST_QTGRPCGEN_QML_EXPORT ~IntMessage();
QPB_TST_QTGRPCGEN_QML_EXPORT IntMessage(const IntMessage &other);
QPB_TST_QTGRPCGEN_QML_EXPORT IntMessage &operator =(const IntMessage &other);
QPB_TST_QTGRPCGEN_QML_EXPORT IntMessage(IntMessage &&other) noexcept;
IntMessage &operator =(IntMessage &&other) noexcept
{
swap(other);
return *this;
}
void swap(IntMessage &other) noexcept
{
QProtobufMessage::swap(other);
dptr.swap(other.dptr);
}
QPB_TST_QTGRPCGEN_QML_EXPORT Q_IMPLICIT operator QVariant() const;
QPB_TST_QTGRPCGEN_QML_EXPORT QtProtobuf::sint32 field() const;
QPB_TST_QTGRPCGEN_QML_EXPORT void setField(QtProtobuf::sint32 field);
QPB_TST_QTGRPCGEN_QML_EXPORT static void registerTypes();
private:
friend QPB_TST_QTGRPCGEN_QML_EXPORT bool comparesEqual(const IntMessage &lhs, const IntMessage &rhs) noexcept;
friend bool operator==(const IntMessage &lhs, const IntMessage &rhs) noexcept
{
return comparesEqual(lhs, rhs);
}
friend bool operator!=(const IntMessage &lhs, const IntMessage &rhs) noexcept
{
return !comparesEqual(lhs, rhs);
}
QExplicitlySharedDataPointer<IntMessage_QtProtobufData> dptr;
};
namespace IntMessage_QtProtobufNested {
Q_NAMESPACE_EXPORT(QPB_TST_QTGRPCGEN_QML_EXPORT)
QML_NAMED_ELEMENT(IntMessage)
enum class QtProtobufFieldEnum {
FieldProtoFieldNumber = 1,
};
Q_ENUM_NS(QtProtobufFieldEnum)
} // namespace IntMessage_QtProtobufNested
} // namespace qtgrpc::tests
#endif // QTGRPCGEN_QPB_H