Device support: Introduce IDevice helper classes.

These are for configuration of process and ports gathering activities,
respectively.
This couples related functionality more tightly, while keeping
the number of IDevice methods at a reasonable level.
For ports gathering, the patch also adds the ability to configure
both the command and the parsing function; the latter used to be
hardcoded in the PortsGatherer class.

Change-Id: I1b8940397a51efa7ddc05dd15cf861777d118c1a
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kandeler
2012-08-01 16:26:27 +02:00
committed by hjk
parent ac8150624a
commit 753c62d75e
31 changed files with 269 additions and 232 deletions

View File

@@ -35,7 +35,6 @@
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h>
#include <remotelinux/remotelinuxrunconfiguration.h>
#include <remotelinux/remotelinuxutils.h>
#include <utils/portlist.h>
#include <utils/qtcassert.h>
@@ -81,7 +80,8 @@ void RemoteLinuxQmlProfilerRunner::stop()
if (m_port == 0)
m_portsGatherer->stop();
else
m_runner->stop(RemoteLinuxUtils::killApplicationCommandLine(m_remoteExecutable).toUtf8());
m_runner->stop(m_device->processSupport()
->killProcessByNameCommandLine(m_remoteExecutable).toUtf8());
m_port = 0;
}