diff options
author | Christian Kandeler <[email protected]> | 2012-07-26 09:02:34 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2012-08-01 11:55:53 +0200 |
commit | 1d85d8e706cd2f0af3731d71781caaa8d528dc68 (patch) | |
tree | bb15350bb3a15d01987f77b477bdf67ffbb9cb3f /src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h | |
parent | 93756975e1960052f0d6f17b4f63ba22007e967b (diff) |
ProjectExplorer: Introduce generic application runner.
This class aims to be a flexible worker class for SSH-based
run controls. It supersedes AbstractRemoteLinuxApplicationRunner
as well as all of its derived classes, while having no
RemoteLinux dependencies itself.
Change-Id: If24f03a32126b36fc3d0b253a1615ad0af5f2b46
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h')
-rw-r--r-- | src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h b/src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h index 5f178edc422..6d0a766aff8 100644 --- a/src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h +++ b/src/plugins/qmlprofiler/remotelinuxqmlprofilerrunner.h @@ -32,8 +32,16 @@ #define REMOTELINUXQMLPROFILERRUNNER_H #include "abstractqmlprofilerrunner.h" -#include <remotelinux/remotelinuxrunconfiguration.h> -#include <remotelinux/remotelinuxruncontrol.h> + +#include <projectexplorer/devicesupport/idevice.h> + +#include <QString> + +namespace ProjectExplorer { +class DeviceApplicationRunner; +class DeviceUsedPortsGatherer; +} +namespace RemoteLinux { class RemoteLinuxRunConfiguration; } namespace QmlProfiler { namespace Internal { @@ -54,19 +62,24 @@ public: virtual quint16 debugPort() const; private slots: - void getPorts(); void handleError(const QString &msg); void handleStdErr(const QByteArray &msg); void handleStdOut(const QByteArray &msg); - void handleRemoteProcessStarted(); - void handleRemoteProcessFinished(qint64); + void handleRemoteProcessFinished(bool success); void handleProgressReport(const QString &progressString); + void handlePortsGathererError(const QString &message); + void handlePortListReady(); private: - RemoteLinux::AbstractRemoteLinuxApplicationRunner *runner() const; + void getPorts(); - quint16 m_port; - RemoteLinux::AbstractRemoteLinuxRunControl *m_runControl; + ProjectExplorer::DeviceUsedPortsGatherer * const m_portsGatherer; + ProjectExplorer::DeviceApplicationRunner * const m_runner; + const ProjectExplorer::IDevice::ConstPtr m_device; + const QString m_remoteExecutable; + const QString m_arguments; + const QString m_commandPrefix; + int m_port; }; } // namespace Internal |