make the enums of QProcess known to the meta object system

This enables users to construct enum values from strings
and provides useful qDebug operators.

Task-number: QTBUG-10777
Change-Id: Ia3592f00d559b980b4875ee8fb5e8ffb4328d464
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Joerg Bornemann 2015-06-04 11:34:26 +02:00
parent 4bb00d9d06
commit 896da75550

View File

@ -104,15 +104,21 @@ public:
WriteError,
UnknownError
};
Q_ENUM(ProcessError)
enum ProcessState {
NotRunning,
Starting,
Running
};
Q_ENUM(ProcessState)
enum ProcessChannel {
StandardOutput,
StandardError
};
Q_ENUM(ProcessChannel)
enum ProcessChannelMode {
SeparateChannels,
MergedChannels,
@ -120,14 +126,19 @@ public:
ForwardedOutputChannel,
ForwardedErrorChannel
};
Q_ENUM(ProcessChannelMode)
enum InputChannelMode {
ManagedInputChannel,
ForwardedInputChannel
};
Q_ENUM(InputChannelMode)
enum ExitStatus {
NormalExit,
CrashExit
};
Q_ENUM(ExitStatus)
explicit QProcess(QObject *parent = 0);
virtual ~QProcess();