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