Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
28
QT_BEGIN_NAMESPACE
29
30
class
QRequestInProgress
31
{
32
public
:
33
bool
canceled =
false
;
34
};
35
36
class
QLanguageServerPrivate
:
public
QObjectPrivate
37
{
38
public
:
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.
45
QLanguageServerProtocol
protocol
;
46
47
mutable
QMutex
mutex
;
48
// mutex gated, monotonically increasing
49
QLanguageServer
::
RunStatus
runStatus
=
QLanguageServer
::
RunStatus
::
NotInitialized
;
50
QLspSpecification
::
InitializeParams
clientInfo
;
// immutable after runStatus > Initialized
51
QLspSpecification
::
InitializeResult
serverInfo
;
// immutable after runStatus > Initialized
52
QLspSpecification
::
Responses
::
ShutdownResponseType
shutdownResponse
;
53
QLspNotifySignals
notifySignals
;
54
};
55
56
QT_END_NAMESPACE
57
#
endif
// QLANGUAGESERVER_P_P_H
QLanguageServerPrivate
Definition
qlanguageserver_p_p.h:37
QLanguageServerPrivate::shutdownResponse
QLspSpecification::Responses::ShutdownResponseType shutdownResponse
Definition
qlanguageserver_p_p.h:52
QLanguageServerPrivate::clientInfo
QLspSpecification::InitializeParams clientInfo
Definition
qlanguageserver_p_p.h:50
QLanguageServerPrivate::notifySignals
QLspNotifySignals notifySignals
Definition
qlanguageserver_p_p.h:53
QLanguageServerPrivate::serverInfo
QLspSpecification::InitializeResult serverInfo
Definition
qlanguageserver_p_p.h:51
QLanguageServerPrivate::protocol
QLanguageServerProtocol protocol
Definition
qlanguageserver_p_p.h:45
QLanguageServerPrivate::QLanguageServerPrivate
QLanguageServerPrivate(const QJsonRpcTransport::DataHandler &h)
Definition
qlanguageserver.cpp:17
QLanguageServerPrivate::mutex
QMutex mutex
Definition
qlanguageserver_p_p.h:47
QLanguageServerPrivate::runStatus
QLanguageServer::RunStatus runStatus
Definition
qlanguageserver_p_p.h:49
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
qmlls
qlanguageserver_p_p.h
Generated on
for Qt by
1.18.0