forked from qt-creator/qt-creator
SSH: SshRemoteProcessRunner does not need to be a shared pointer.
Change-Id: I49cf2e113d23ebebe0939adbf90a1a88c84998a5 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -234,24 +234,16 @@ void SshRemoteProcessRunnerPrivate::assertState(State allowedState,
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
SshRemoteProcessRunner::Ptr SshRemoteProcessRunner::create(const SshConnectionParameters ¶ms)
|
||||
{
|
||||
return SshRemoteProcessRunner::Ptr(new SshRemoteProcessRunner(params));
|
||||
}
|
||||
|
||||
SshRemoteProcessRunner::Ptr SshRemoteProcessRunner::create(const SshConnection::Ptr &connection)
|
||||
{
|
||||
return SshRemoteProcessRunner::Ptr(new SshRemoteProcessRunner(connection));
|
||||
}
|
||||
|
||||
SshRemoteProcessRunner::SshRemoteProcessRunner(const SshConnectionParameters ¶ms)
|
||||
: d(new Internal::SshRemoteProcessRunnerPrivate(params, this))
|
||||
SshRemoteProcessRunner::SshRemoteProcessRunner(const SshConnectionParameters ¶ms,
|
||||
QObject *parent)
|
||||
: QObject(parent), d(new Internal::SshRemoteProcessRunnerPrivate(params, this))
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
SshRemoteProcessRunner::SshRemoteProcessRunner(const SshConnection::Ptr &connection)
|
||||
: d(new Internal::SshRemoteProcessRunnerPrivate(connection, this))
|
||||
SshRemoteProcessRunner::SshRemoteProcessRunner(const SshConnection::Ptr &connection,
|
||||
QObject *parent)
|
||||
: QObject(parent), d(new Internal::SshRemoteProcessRunnerPrivate(connection, this))
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
@@ -46,10 +46,8 @@ class QTCREATOR_UTILS_EXPORT SshRemoteProcessRunner : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
typedef QSharedPointer<SshRemoteProcessRunner> Ptr;
|
||||
|
||||
static Ptr create(const SshConnectionParameters ¶ms);
|
||||
static Ptr create(const SshConnection::Ptr &connection);
|
||||
SshRemoteProcessRunner(const SshConnectionParameters ¶ms, QObject *parent = 0);
|
||||
SshRemoteProcessRunner(const SshConnection::Ptr &connection, QObject *parent = 0);
|
||||
|
||||
void run(const QByteArray &command);
|
||||
void runInTerminal(const QByteArray &command,
|
||||
@@ -67,8 +65,6 @@ signals:
|
||||
void processClosed(int exitStatus); // values are of type SshRemoteProcess::ExitStatus
|
||||
|
||||
private:
|
||||
SshRemoteProcessRunner(const SshConnectionParameters ¶ms);
|
||||
SshRemoteProcessRunner(const SshConnection::Ptr &connection);
|
||||
void init();
|
||||
|
||||
Internal::SshRemoteProcessRunnerPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user