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:
parent
4bb00d9d06
commit
896da75550
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user