1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef STDINLISTENER_H |
5 | #define STDINLISTENER_H |
6 | |
7 | #include <QtCore/QSocketNotifier> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class StdInListener : public QSocketNotifier |
12 | { |
13 | Q_OBJECT |
14 | |
15 | public: |
16 | StdInListener(QObject *parent); |
17 | ~StdInListener(); |
18 | |
19 | public slots: |
20 | void start(); |
21 | |
22 | signals: |
23 | void receivedCommand(const QString &cmd); |
24 | |
25 | private slots: |
26 | void receivedData(); |
27 | }; |
28 | |
29 | QT_END_NAMESPACE |
30 | |
31 | #endif |
32 |