Commit 9beba557 authored by Kai Koehne's avatar Kai Koehne

RemoteLinux: Add hooks for QmlProfiler

Allow QmlProfiler to manipulate run configuration arguments
and accessing the runner. Also, fix logic in Factory::canClone() to
handle Run Configurations without the ".profilepath" suffix in the id.

Change-Id: I848f9e3620fa5c3a78d398a6d929bcf7813140dd
Reviewed-on: http://codereview.qt.nokia.com/783Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent d147a0b2
......@@ -90,7 +90,9 @@ bool MaemoRunConfigurationFactory::canRestore(Target *parent,
bool MaemoRunConfigurationFactory::canClone(Target *parent,
RunConfiguration *source) const
{
return canCreate(parent, source->id());
const RemoteLinuxRunConfiguration * const rlrc
= qobject_cast<RemoteLinuxRunConfiguration *>(source);
return rlrc && canCreate(parent, source->id() + QLatin1Char('.') + rlrc->proFilePath());
}
QStringList MaemoRunConfigurationFactory::availableCreationIds(Target *parent) const
......
......@@ -99,6 +99,7 @@ public:
QString localExecutableFilePath() const;
QString remoteExecutableFilePath() const;
QString arguments() const;
void setArguments(const QString &args);
QSharedPointer<const LinuxDeviceConfiguration> deviceConfig() const;
QString gdbCmd() const;
......@@ -143,7 +144,6 @@ private slots:
private:
void init();
void setArguments(const QString &args);
void setBaseEnvironmentType(BaseEnvironmentType env);
void setUserEnvironmentChanges(const QList<Utils::EnvironmentItem> &diff);
void setSystemEnvironment(const Utils::Environment &environment);
......
......@@ -84,7 +84,9 @@ bool RemoteLinuxRunConfigurationFactory::canRestore(Target *parent, const QVaria
bool RemoteLinuxRunConfigurationFactory::canClone(Target *parent, RunConfiguration *source) const
{
return canCreate(parent, source->id());
const RemoteLinuxRunConfiguration * const rlrc
= qobject_cast<RemoteLinuxRunConfiguration *>(source);
return rlrc && canCreate(parent, source->id() + QLatin1Char('.') + rlrc->proFilePath());
}
QStringList RemoteLinuxRunConfigurationFactory::availableCreationIds(Target *parent) const
......
......@@ -53,6 +53,8 @@ public:
virtual bool isRunning() const;
virtual QIcon icon() const;
virtual RemoteLinuxApplicationRunner *runner() const=0;
private slots:
void startExecution();
void handleSshError(const QString &error);
......@@ -63,7 +65,6 @@ private slots:
void handleProgressReport(const QString &progressString);
private:
virtual RemoteLinuxApplicationRunner *runner() const=0;
void setFinished();
void handleError(const QString &errString);
......
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