aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlls/lspcustomtypes.h
blob: f46b36e578fea3cd3b681fb55399871cd9198bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef LSPCUSTOMTYPES_H
#define LSPCUSTOMTYPES_H
#include <QtLanguageServer/private/qlanguageserverspec_p.h>

QT_BEGIN_NAMESPACE

namespace QLspSpecification {

class UriToBuildDirs
{
public:
    QByteArray baseUri = {};
    QList<QByteArray> buildDirs = {};

    template<typename W>
    void walk(W &w)
    {
        field(w, "baseUri", baseUri);
        field(w, "buildDirs", buildDirs);
    }
};

namespace Notifications {
constexpr auto AddBuildDirsMethod = "$/addBuildDirs";

class AddBuildDirsParams
{
public:
    QList<UriToBuildDirs> buildDirsToSet = {};

    template<typename W>
    void walk(W &w)
    {
        field(w, "buildDirsToSet", buildDirsToSet);
    }
};
} // namespace Notifications
} // namespace QLspSpecification

QT_END_NAMESPACE

#endif // LSPCUSTOMTYPES_H