summaryrefslogtreecommitdiff
path: root/src/plugins/android/javalanguageserver.h
blob: 11fb75a9e81009173fb3de9f11b1aa7adee8d9b4 (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
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <languageclient/languageclientsettings.h>

namespace Android {
namespace Internal {

class JLSSettings final : public LanguageClient::StdIOSettings
{
public:
    JLSSettings();

    bool applyFromSettingsWidget(QWidget *widget) final;
    QWidget *createSettingsWidget(QWidget *parent) const final;
    bool isValid() const final;
    QVariantMap toMap() const final;
    void fromMap(const QVariantMap &map) final;
    LanguageClient::BaseSettings *copy() const final;
    LanguageClient::Client *createClient(LanguageClient::BaseClientInterface *interface) const final;
    LanguageClient::BaseClientInterface *createInterface(
        ProjectExplorer::Project *project) const final;

    Utils::FilePath m_languageServer;

private:
    JLSSettings(const JLSSettings &other) = default;
};

} // namespace Internal
} // namespace Android