forked from qt-creator/qt-creator
RemoteLinux: Let application runners set the device configuration.
Could conceivably make sense during doDeviceSetup(). Change-Id: I6a30d44561dbe75566e48c6db9604ff72075b8dd Reviewed-on: http://codereview.qt.nokia.com/3114 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -73,7 +73,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
RemoteLinuxUsedPortsGatherer portsGatherer;
|
RemoteLinuxUsedPortsGatherer portsGatherer;
|
||||||
const LinuxDeviceConfiguration::ConstPtr devConfig;
|
LinuxDeviceConfiguration::ConstPtr devConfig;
|
||||||
const QString remoteExecutable;
|
const QString remoteExecutable;
|
||||||
const QString appArguments;
|
const QString appArguments;
|
||||||
const QString commandPrefix;
|
const QString commandPrefix;
|
||||||
@@ -366,6 +366,11 @@ bool AbstractRemoteLinuxApplicationRunner::canRun(QString &whyNot) const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AbstractRemoteLinuxApplicationRunner::setDeviceConfiguration(const LinuxDeviceConfiguration::ConstPtr &deviceConfig)
|
||||||
|
{
|
||||||
|
m_d->devConfig = deviceConfig;
|
||||||
|
}
|
||||||
|
|
||||||
void AbstractRemoteLinuxApplicationRunner::handleDeviceSetupDone(bool success)
|
void AbstractRemoteLinuxApplicationRunner::handleDeviceSetupDone(bool success)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(m_d->state == SettingUpDevice, return);
|
QTC_ASSERT(m_d->state == SettingUpDevice, return);
|
||||||
|
@@ -87,6 +87,8 @@ protected:
|
|||||||
// Override to to additional checks.
|
// Override to to additional checks.
|
||||||
virtual bool canRun(QString &whyNot) const;
|
virtual bool canRun(QString &whyNot) const;
|
||||||
|
|
||||||
|
void setDeviceConfiguration(const QSharedPointer<const LinuxDeviceConfiguration> &deviceConfig);
|
||||||
|
|
||||||
void handleDeviceSetupDone(bool success);
|
void handleDeviceSetupDone(bool success);
|
||||||
void handleInitialCleanupDone(bool success);
|
void handleInitialCleanupDone(bool success);
|
||||||
void handleInitializationsDone(bool success);
|
void handleInitializationsDone(bool success);
|
||||||
|
Reference in New Issue
Block a user