SshConnection::SshConnection(const SshConnectionParameters &serverInfo, QObject *parent) : QObject(parent) { doStaticInitializationsIfNecessary(); d = new Internal::SshConnectionPrivate(this, serverInfo); connect(d, SIGNAL(connected()), this, SIGNAL(connected()), Qt::QueuedConnection); connect(d, SIGNAL(dataAvailable(QString)), this, SIGNAL(dataAvailable(QString)), Qt::QueuedConnection); connect(d, SIGNAL(disconnected()), this, SIGNAL(disconnected()), Qt::QueuedConnection); connect(d, SIGNAL(error(QSsh::SshError)), this, SIGNAL(error(QSsh::SshError)), Qt::QueuedConnection); }
SshConnection::Ptr SshConnection::create(const SshConnectionParameters &serverInfo) { doStaticInitializationsIfNecessary(); return Ptr(new SshConnection(serverInfo)); }