1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef STDOUTJSONRPCPARSER_H |
6 | #define STDOUTJSONRPCPARSER_H |
7 | |
8 | #include <QThread> |
9 | |
10 | namespace newlsp { |
11 | |
12 | class JsonRpcParser; |
13 | class StdoutJsonRpcParser : public QObject |
14 | { |
15 | Q_OBJECT |
16 | JsonRpcParser *const d; |
17 | public: |
18 | explicit StdoutJsonRpcParser(QObject *parent = nullptr); |
19 | virtual ~StdoutJsonRpcParser(); |
20 | |
21 | public Q_SLOTS: |
22 | void doReadedLine(const QByteArray &line); |
23 | |
24 | Q_SIGNALS: |
25 | void readedJsonObject(const QJsonObject &); |
26 | }; |
27 | |
28 | } |
29 | |
30 | #endif // STDOUTJSONRPCPARSER_H |
31 | |