1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef LSPCLIENTKEEPER_H |
6 | #define LSPCLIENTKEEPER_H |
7 | |
8 | #include "common/common.h" |
9 | |
10 | class LSPClientKeeper final |
11 | { |
12 | Q_DISABLE_COPY(LSPClientKeeper) |
13 | public: |
14 | LSPClientKeeper(); |
15 | |
16 | virtual ~LSPClientKeeper(); |
17 | |
18 | static LSPClientKeeper *instance(); |
19 | |
20 | newlsp::Client *get(const newlsp::ProjectKey &key); |
21 | |
22 | private: |
23 | QList<newlsp::ProjectKey> projectKeys; |
24 | newlsp::Client* client{nullptr}; |
25 | }; |
26 | |
27 | #endif // LSPCLIENTKEEPER_H |
28 |