diff options
author | Aurindam Jana <aurindam.jana@digia.com> | 2013-07-19 16:13:10 +0200 |
---|---|---|
committer | Aurindam Jana <aurindam.jana@digia.com> | 2013-07-23 16:19:21 +0200 |
commit | d53609d27b1a2e552586ef4965826a96a681fb0d (patch) | |
tree | afcfdc88f0fc47cbefcbf09ac152185d2a9c7749 /src/plugins/qmlprofiler/localqmlprofilerrunner.h | |
parent | c57160eda676b7cefd9375191054a0df0c8d4408 (diff) | |
download | qt-creator-d53609d27b1a2e552586ef4965826a96a681fb0d.tar.gz |
QmlProfiler: Separate out LocalQmlProfilerRunner from engine
Change-Id: I6f9245179090bebb98b6d9849a7a696105e43a3a
Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/localqmlprofilerrunner.h')
-rw-r--r-- | src/plugins/qmlprofiler/localqmlprofilerrunner.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.h b/src/plugins/qmlprofiler/localqmlprofilerrunner.h index 26a9b45161..37591917da 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.h +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.h @@ -35,9 +35,13 @@ #include <utils/environment.h> #include <projectexplorer/applicationlauncher.h> +namespace ProjectExplorer { class RunConfiguration; } +namespace Analyzer { class AnalyzerStartParameters; } + namespace QmlProfiler { namespace Internal { +class QmlProfilerEngine; class LocalQmlProfilerRunner : public AbstractQmlProfilerRunner { Q_OBJECT @@ -51,7 +55,11 @@ public: Utils::Environment environment; }; - explicit LocalQmlProfilerRunner(const Configuration &configuration, QObject *parent = 0); + static LocalQmlProfilerRunner *createLocalRunner(ProjectExplorer::RunConfiguration *runConfiguration, + const Analyzer::AnalyzerStartParameters &sp, + QString *errorMessage, + QmlProfilerEngine *engine); + ~LocalQmlProfilerRunner(); // AbstractQmlProfilerRunner @@ -59,14 +67,16 @@ public: virtual void stop(); virtual quint16 debugPort() const; - bool hasExecutable() const { return !m_configuration.executable.isEmpty(); } - private slots: void spontaneousStop(int exitCode); private: + LocalQmlProfilerRunner(const Configuration &configuration, QmlProfilerEngine *engine); + +private: Configuration m_configuration; ProjectExplorer::ApplicationLauncher m_launcher; + QmlProfilerEngine *m_engine; }; } // namespace Internal |