1 | // Copyright (C) 2024 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QPROTOBUFPROPERTYORDERINGBUILDER_P_H |
5 | #define QPROTOBUFPROPERTYORDERINGBUILDER_P_H |
6 | |
7 | // Source is in qprotobufpropertyordering.cpp |
8 | // The intent is to share some of the code |
9 | |
10 | // |
11 | // W A R N I N G |
12 | // ------------- |
13 | // |
14 | // This file is not part of the Qt API. It exists for the convenience |
15 | // of other Qt classes. This header file may change from version to |
16 | // version without notice, or even be removed. |
17 | // |
18 | // We mean it. |
19 | // |
20 | |
21 | #include <QtProtobuf/qprotobufpropertyordering.h> |
22 | #include <QtProtobuf/qtprotobufexports.h> |
23 | |
24 | #include <QtCore/qbytearray.h> |
25 | #include <QtCore/qtclasshelpermacros.h> |
26 | |
27 | QT_BEGIN_NAMESPACE |
28 | |
29 | namespace QtProtobufPrivate { |
30 | |
31 | class QProtobufPropertyOrderingBuilderPrivate; |
32 | class QProtobufPropertyOrderingBuilder |
33 | { |
34 | public: |
35 | Q_PROTOBUF_EXPORT explicit QProtobufPropertyOrderingBuilder(QByteArray packageName); |
36 | Q_PROTOBUF_EXPORT ~QProtobufPropertyOrderingBuilder(); |
37 | |
38 | Q_PROTOBUF_EXPORT void addV0Field(QByteArray jsonName, uint fieldNumber, uint propertyIndex, |
39 | FieldFlags flags); |
40 | Q_PROTOBUF_EXPORT QProtobufPropertyOrdering::Data *build() const; |
41 | |
42 | private: |
43 | QProtobufPropertyOrderingBuilderPrivate *d_ptr; |
44 | Q_DECLARE_PRIVATE(QProtobufPropertyOrderingBuilder) |
45 | Q_DISABLE_COPY_MOVE(QProtobufPropertyOrderingBuilder) |
46 | }; |
47 | |
48 | } // namespace QtProtobufPrivate |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #endif // QPROTOBUFPROPERTYORDERINGBUILDER_P_H |
53 |