1 #ifndef QTBACKGROUNDPROCESS_TERMINAL_H 2 #define QTBACKGROUNDPROCESS_TERMINAL_H 4 #include "QtBackgroundProcess/qtbackgroundprocess_global.h" 6 #include <QtCore/qcommandlineparser.h> 7 #include <QtCore/qiodevice.h> 8 #include <QtCore/qsharedpointer.h> 14 class TerminalPrivate;
21 Q_PROPERTY(
bool starter READ isStarter CONSTANT)
25 Q_PROPERTY(
bool autoDelete READ isAutoDelete WRITE setAutoDelete)
34 bool isStarter() const;
38 bool isAutoDelete() const;
41 bool isSequential() const override;
43 void close() override;
45 qint64 bytesAvailable() const override;
49 void disconnectTerminal();
51 void setAutoDelete(
bool autoDelete);
54 void writeLine(const
QByteArray &line,
bool flush = true);
60 void terminalDisconnected();
62 void terminalError(
int errorCode);
66 qint64 readData(
char *data, qint64 maxlen) override;
68 qint64 writeData(const
char *data, qint64 len) override;
73 bool open(OpenMode mode) override;
78 #endif // QTBACKGROUNDPROCESS_TERMINAL_H
Represents a connection to a terminal in the master process.
The Namespace containing all classes of the QtBackgroundProcess module.