Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qlanguageserver_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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// Qt-Security score:significant reason:default
4
5#ifndef QLANGUAGESERVER_P_P_H
6#define QLANGUAGESERVER_P_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qlanguageserver_p.h>
20#include <QtLanguageServer/private/qlanguageserverprotocol_p.h>
21#include <QtCore/QMutex>
22#include <QtCore/QHash>
23#include <QtCore/private/qobject_p.h>
24#include <QtLanguageServer/private/qlspnotifysignals_p.h>
25
26#include <memory>
27
28QT_BEGIN_NAMESPACE
29
30class QRequestInProgress
31{
32public:
33 bool canceled = false;
34};
35
37{
38public:
39 QLanguageServerPrivate(const QJsonRpcTransport::DataHandler &h);
40
41 // The order of the class members matters here. ShutdownResponse holds and uses a pointer to
42 // protocol in its destructor, so shutdownResponse has to be destroyed after protocol in
43 // ~QLanguageServerPrivate(). This happens only when protocol is defined above/before
44 // shutdownResponse.
46
47 mutable QMutex mutex;
48 // mutex gated, monotonically increasing
51 bool clientInitialized = false; // mutex gated
52 QLspSpecification::InitializeParams clientInfo; // immutable after runStatus > DidInitialize
53 QLspSpecification::InitializeResult serverInfo; // immutable after runStatus > DidInitialize
57};
58
59QT_END_NAMESPACE
60#endif // QLANGUAGESERVER_P_P_H
QLspSpecification::Responses::ShutdownResponseType shutdownResponse
QHash< QJsonValue, QRequestInProgress > requestsInProgress
QLspSpecification::InitializeParams clientInfo
QLspNotifySignals notifySignals
QLspSpecification::InitializeResult serverInfo
QHash< QString, QLanguageServerModule * > modules
QLanguageServerProtocol protocol
QLanguageServerPrivate(const QJsonRpcTransport::DataHandler &h)
QLanguageServer::RunStatus runStatus
Combined button and popup list for selecting options.