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
10namespace newlsp {
11
12class JsonRpcParser;
13class StdoutJsonRpcParser : public QObject
14{
15 Q_OBJECT
16 JsonRpcParser *const d;
17public:
18 explicit StdoutJsonRpcParser(QObject *parent = nullptr);
19 virtual ~StdoutJsonRpcParser();
20
21public Q_SLOTS:
22 void doReadedLine(const QByteArray &line);
23
24Q_SIGNALS:
25 void readedJsonObject(const QJsonObject &);
26};
27
28}
29
30#endif // STDOUTJSONRPCPARSER_H
31