Commit 904dd68e authored by Aurindam Jana's avatar Aurindam Jana Committed by hjk

QmlProfiler: Remove StartQmlRemote start mode

Change-Id: I7a4ef54a02fcc8dedb28e843a2f05d737324a877
Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 56bdb0d1
......@@ -43,8 +43,7 @@ namespace Analyzer {
enum StartMode
{
StartLocal = -1,
StartRemote = -2,
StartQmlRemote = -4 // TODO: remove this enum and make it generic
StartRemote = -2
};
namespace Constants {
......
......@@ -47,7 +47,7 @@ namespace Analyzer {
class ANALYZER_EXPORT AnalyzerStartParameters
{
public:
AnalyzerStartParameters()
AnalyzerStartParameters() : analyzerPort(0)
{}
StartMode startMode;
......
......@@ -65,7 +65,7 @@ RunControl *AndroidAnalyzeSupport::createAnalyzeRunControl(AndroidRunConfigurati
QTC_ASSERT(server.listen(QHostAddress::LocalHost)
|| server.listen(QHostAddress::LocalHostIPv6), return 0);
params.analyzerHost = server.serverAddress().toString();
params.startMode = StartQmlRemote;
params.startMode = StartLocal;
}
AnalyzerRunControl *analyzerRunControl = AnalyzerManager::createRunControl(params, runConfig);
......
......@@ -120,7 +120,7 @@ bool QmlProfilerRunControl::startEngine()
}
}
if (startParameters().startMode == StartQmlRemote || startParameters().startMode == StartLocal) {
if (startParameters().startMode == StartLocal) {
d->m_noDebugOutputTimer.start();
} else {
emit processRunning(startParameters().analyzerPort);
......@@ -267,7 +267,7 @@ void QmlProfilerRunControl::processIsRunning(quint16 port)
{
d->m_noDebugOutputTimer.stop();
if (port > 0 && mode() != StartQmlRemote)
if (port > 0 && startParameters().analyzerPort != 0)
emit processRunning(port);
}
......
......@@ -125,7 +125,7 @@ static AnalyzerStartParameters createAnalyzerStartParameters(const QnxRunConfigu
return params;
if (mode == QmlProfilerRunMode)
params.startMode = StartQmlRemote;
params.startMode = StartLocal;
params.debuggee = runConfig->remoteExecutableFilePath();
params.debuggeeArgs = runConfig->arguments();
params.connParams = DeviceKitInformation::device(runConfig->target()->kit())->sshParameters();
......
......@@ -78,7 +78,7 @@ AnalyzerStartParameters RemoteLinuxAnalyzeSupport::startParameters(const RemoteL
{
AnalyzerStartParameters params;
if (runMode == QmlProfilerRunMode)
params.startMode = StartQmlRemote;
params.startMode = StartLocal;
params.runMode = runMode;
params.connParams = DeviceKitInformation::device(runConfig->target()->kit())->sshParameters();
params.analyzerCmdPrefix = runConfig->commandPrefix();
......@@ -114,9 +114,6 @@ void RemoteLinuxAnalyzeSupport::showMessage(const QString &msg, Utils::OutputFor
void RemoteLinuxAnalyzeSupport::handleRemoteSetupRequested()
{
if (d->runControl->mode() != Analyzer::StartQmlRemote)
return;
QTC_ASSERT(state() == Inactive, return);
showMessage(tr("Checking available ports...\n"), Utils::NormalMessageFormat);
......@@ -169,8 +166,6 @@ void RemoteLinuxAnalyzeSupport::handleAppRunnerFinished(bool success)
void RemoteLinuxAnalyzeSupport::handleProfilingFinished()
{
if (d->runControl->mode() != Analyzer::StartQmlRemote)
return;
setFinished();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment