Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmltyperegistrar_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QMLTYPEREGISTRAR_P_H
5#define QMLTYPEREGISTRAR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qcbormap.h>
19#include <QtCore/qversionnumber.h>
20
21#include <cstdlib>
22
24
26
28{
29 QString m_module;
30 QString m_targetNamespace;
31 QTypeRevision m_moduleVersion;
32 QList<quint8> m_pastMajorVersions;
33 QList<QString> m_includes;
34 bool m_followForeignVersioning = false;
35 QVector<MetaType> m_types;
36 QVector<MetaType> m_foreignTypes;
37 QList<QAnyStringView> m_referencedTypes;
38
39 MetaType findType(QAnyStringView name) const;
40 MetaType findTypeForeign(QAnyStringView name) const;
41
42public:
43 void write(QTextStream &os, QAnyStringView outFileName) const;
44 bool generatePluginTypes(const QString &pluginTypesFile);
45 void setModuleNameAndNamespace(const QString &module, const QString &targetNamespace);
46 void setModuleVersions(QTypeRevision moduleVersion, const QList<quint8> &pastMajorVersions,
47 bool followForeignVersioning);
48 void setIncludes(const QList<QString> &includes);
49 void setTypes(const QVector<MetaType> &types, const QVector<MetaType> &foreignTypes);
50 void setReferencedTypes(const QList<QAnyStringView> &referencedTypes);
51
52 static bool argumentsFromCommandLineAndFile(QStringList &allArguments,
53 const QStringList &arguments);
54 static int runExtract(const QString &baseName, const MetaTypesJsonProcessor &processor);
55};
56
58#endif // QMLTYPEREGISTRAR_P_H
\inmodule QtCore
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
\inmodule QtCore
void setModuleNameAndNamespace(const QString &module, const QString &targetNamespace)
static bool argumentsFromCommandLineAndFile(QStringList &allArguments, const QStringList &arguments)
void setTypes(const QVector< MetaType > &types, const QVector< MetaType > &foreignTypes)
void setIncludes(const QList< QString > &includes)
void write(QTextStream &os, QAnyStringView outFileName) const
void setModuleVersions(QTypeRevision moduleVersion, const QList< quint8 > &pastMajorVersions, bool followForeignVersioning)
bool generatePluginTypes(const QString &pluginTypesFile)
void setReferencedTypes(const QList< QAnyStringView > &referencedTypes)
static int runExtract(const QString &baseName, const MetaTypesJsonProcessor &processor)
QList< QVariant > arguments
Combined button and popup list for selecting options.
GLsizei GLenum GLenum * types
GLuint name