diff options
Diffstat (limited to 'src/libs/ssh/sshconnectionmanager.h')
-rw-r--r-- | src/libs/ssh/sshconnectionmanager.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/libs/ssh/sshconnectionmanager.h b/src/libs/ssh/sshconnectionmanager.h index a38e4c7ba8..65dab048a4 100644 --- a/src/libs/ssh/sshconnectionmanager.h +++ b/src/libs/ssh/sshconnectionmanager.h @@ -32,32 +32,16 @@ #include "ssh_global.h" -#include <QScopedPointer> - namespace QSsh { + class SshConnection; class SshConnectionParameters; -namespace Internal { class SshConnectionManagerPrivate; } - -class QSSH_EXPORT SshConnectionManager -{ - friend class Internal::SshConnectionManagerPrivate; -public: - static SshConnectionManager &instance(); - - SshConnection *acquireConnection(const SshConnectionParameters &sshParams); - void releaseConnection(SshConnection *connection); - // Make sure the next acquireConnection with the given parameters will return a new connection. - void forceNewConnection(const SshConnectionParameters &sshParams); -private: - explicit SshConnectionManager(); - virtual ~SshConnectionManager(); - SshConnectionManager(const SshConnectionManager &); - SshConnectionManager &operator=(const SshConnectionManager &); +QSSH_EXPORT SshConnection *acquireConnection(const SshConnectionParameters &sshParams); +QSSH_EXPORT void releaseConnection(SshConnection *connection); - const QScopedPointer<Internal::SshConnectionManagerPrivate> d; -}; +// Make sure the next acquireConnection with the given parameters will return a new connection. +QSSH_EXPORT void forceNewConnection(const SshConnectionParameters &sshParams); } // namespace QSsh |