Commit d46ceceb authored by hjk's avatar hjk

DeviceProcess: Add write(const QByteArray &) function

Change-Id: Ia8e00c354056b96b966e7cdb86e51f838e70e738
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 8bffed4d
......@@ -121,5 +121,10 @@ QByteArray DesktopDeviceProcess::readAllStandardError()
return m_process->readAllStandardError();
}
qint64 DesktopDeviceProcess::write(const QByteArray &data)
{
return m_process->write(data);
}
} // namespace Internal
} // namespace ProjectExplorer
......@@ -60,6 +60,8 @@ public:
QByteArray readAllStandardOutput();
QByteArray readAllStandardError();
qint64 write(const QByteArray &data);
private:
QProcess * const m_process;
};
......
......@@ -66,6 +66,8 @@ public:
virtual QByteArray readAllStandardOutput() = 0;
virtual QByteArray readAllStandardError() = 0;
virtual qint64 write(const QByteArray &data) = 0;
signals:
void started();
void finished();
......
......@@ -326,4 +326,9 @@ void SshDeviceProcess::SshDeviceProcessPrivate::setState(SshDeviceProcess::SshDe
}
}
qint64 SshDeviceProcess::write(const QByteArray &data)
{
return d->process->write(data);
}
} // namespace ProjectExplorer
......@@ -61,6 +61,8 @@ public:
QByteArray readAllStandardOutput();
QByteArray readAllStandardError();
qint64 write(const QByteArray &data);
// Default is "false" due to OpenSSH not implementing this feature for some reason.
void setSshServerSupportsSignals(bool signalsSupported);
......
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