1 | // Copyright (C) 2022 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 | #ifndef QLSPCUSTOMTYPES_P_H |
4 | #define QLSPCUSTOMTYPES_P_H |
5 | |
6 | // |
7 | // W A R N I N G |
8 | // ------------- |
9 | // |
10 | // This file is not part of the Qt API. It exists purely as an |
11 | // implementation detail. This header file may change from version to |
12 | // version without notice, or even be removed. |
13 | // |
14 | // We mean it. |
15 | // |
16 | |
17 | #include <QtLanguageServer/private/qlanguageserverspec_p.h> |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | namespace QLspSpecification { |
22 | |
23 | class UriToBuildDirs |
24 | { |
25 | public: |
26 | QByteArray baseUri = {}; |
27 | QList<QByteArray> buildDirs = {}; |
28 | |
29 | template<typename W> |
30 | void walk(W &w) |
31 | { |
32 | field(w, "baseUri" , baseUri); |
33 | field(w, "buildDirs" , buildDirs); |
34 | } |
35 | }; |
36 | |
37 | namespace Notifications { |
38 | constexpr auto AddBuildDirsMethod = "$/addBuildDirs" ; |
39 | |
40 | class AddBuildDirsParams |
41 | { |
42 | public: |
43 | QList<UriToBuildDirs> buildDirsToSet = {}; |
44 | |
45 | template<typename W> |
46 | void walk(W &w) |
47 | { |
48 | field(w, "buildDirsToSet" , buildDirsToSet); |
49 | } |
50 | }; |
51 | } // namespace Notifications |
52 | } // namespace QLspSpecification |
53 | |
54 | QT_END_NAMESPACE |
55 | |
56 | #endif // QLSPCUSTOMTYPES_P_H |
57 | |