forked from qt-creator/qt-creator
LocalApplicationRunControl: De-noise a bit
Change-Id: If4e5eebea2502bba3a85b8f8f87a9a81514f4fb5 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -44,9 +44,9 @@ class LocalApplicationRunControlFactory : public IRunControlFactory
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
LocalApplicationRunControlFactory ();
|
LocalApplicationRunControlFactory ();
|
||||||
virtual ~LocalApplicationRunControlFactory();
|
~LocalApplicationRunControlFactory();
|
||||||
virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const;
|
bool canRun(RunConfiguration *runConfiguration, RunMode mode) const;
|
||||||
virtual RunControl* create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage);
|
RunControl* create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage);
|
||||||
};
|
};
|
||||||
|
|
||||||
class LocalApplicationRunControl : public RunControl
|
class LocalApplicationRunControl : public RunControl
|
||||||
@@ -54,10 +54,10 @@ class LocalApplicationRunControl : public RunControl
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
LocalApplicationRunControl(LocalApplicationRunConfiguration *runConfiguration, RunMode mode);
|
LocalApplicationRunControl(LocalApplicationRunConfiguration *runConfiguration, RunMode mode);
|
||||||
virtual ~LocalApplicationRunControl();
|
~LocalApplicationRunControl();
|
||||||
virtual void start();
|
void start();
|
||||||
virtual StopResult stop();
|
StopResult stop();
|
||||||
virtual bool isRunning() const;
|
bool isRunning() const;
|
||||||
private slots:
|
private slots:
|
||||||
void processStarted();
|
void processStarted();
|
||||||
void processExited(int exitCode, QProcess::ExitStatus status);
|
void processExited(int exitCode, QProcess::ExitStatus status);
|
||||||
@@ -67,7 +67,6 @@ private:
|
|||||||
QString m_executable;
|
QString m_executable;
|
||||||
QString m_commandLineArguments;
|
QString m_commandLineArguments;
|
||||||
ApplicationLauncher::Mode m_runMode;
|
ApplicationLauncher::Mode m_runMode;
|
||||||
ProcessHandle m_applicationProcessHandle;
|
|
||||||
bool m_running;
|
bool m_running;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user