mirror of https://github.com/qt/qtgrpc.git
54 lines
2.5 KiB
C++
54 lines
2.5 KiB
C++
/* This file is autogenerated. DO NOT CHANGE. All changes will be lost */
|
|
|
|
#include <QtQml/qqmlextensionplugin.h>
|
|
#include <QtQml/qqml.h>
|
|
#include <QtQml/qqmlengine.h>
|
|
#include <QtProtobuf/qtprotobuftypes.h>
|
|
#include "basicmessages.qpb.h"
|
|
#include "enummessages.qpb.h"
|
|
#include "repeatedmessages.qpb.h"
|
|
|
|
#if defined(QT_SHARED) || !defined(QT_STATIC)
|
|
# define QPB_QML_EXPORT Q_DECL_EXPORT
|
|
#else
|
|
# define QPB_QML_EXPORT
|
|
#endif
|
|
|
|
extern void qml_register_types_qtprotobufnamespace_tests();
|
|
Q_GHS_KEEP_REFERENCE(qml_register_types_qtprotobufnamespace_tests);
|
|
|
|
class QPB_QML_EXPORT QtprotobufnamespaceTestsPlugin : public QQmlExtensionPlugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
|
|
|
|
public:
|
|
QtprotobufnamespaceTestsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
|
|
|
|
void registerTypes(const char *uri) override
|
|
{
|
|
Q_ASSERT(uri == QLatin1String("qtprotobufnamespace.tests"));
|
|
volatile auto registration = &qml_register_types_qtprotobufnamespace_tests;
|
|
Q_UNUSED(registration);
|
|
qmlRegisterModule(uri, 1, 0);
|
|
qmlRegisterUncreatableMetaObject(
|
|
qtprotobufnamespace::tests::SimpleEnumMessage::staticMetaObject,
|
|
uri, 1, 0, "SimpleEnumMessage", "You can only use the nested enums of SimpleEnumMessage, but not create its instances in QML scope.");
|
|
qmlRegisterUncreatableMetaObject(
|
|
qtprotobufnamespace::tests::RepeatedEnumMessage::staticMetaObject,
|
|
uri, 1, 0, "RepeatedEnumMessage", "You can only use the nested enums of RepeatedEnumMessage, but not create its instances in QML scope.");
|
|
qmlRegisterUncreatableMetaObject(
|
|
qtprotobufnamespace::tests::MixedEnumUsageMessage::staticMetaObject,
|
|
uri, 1, 0, "MixedEnumUsageMessage", "You can only use the nested enums of MixedEnumUsageMessage, but not create its instances in QML scope.");
|
|
qmlRegisterUncreatableMetaObject(
|
|
qtprotobufnamespace::tests::TestEnumGadget::staticMetaObject,
|
|
uri, 1, 0, "TestEnum", "You can only use the nested enums of TestEnum, but not create its instances in QML scope.");
|
|
qmlRegisterUncreatableMetaObject(
|
|
qtprotobufnamespace::tests::TestEnumSecondInFileGadget::staticMetaObject,
|
|
uri, 1, 0, "TestEnumSecondInFile", "You can only use the nested enums of TestEnumSecondInFile, but not create its instances in QML scope.");
|
|
qRegisterProtobufTypes();
|
|
}
|
|
|
|
};
|
|
#include "qtprotobufnamespace_testsplugin.moc"
|