OSDN Git Service

SSH: Declare signal parameter with full namespace.
authorChristian Kandeler <christian.kandeler@nokia.com>
Wed, 6 Oct 2010 08:08:39 +0000 (10:08 +0200)
committerChristian Kandeler <christian.kandeler@nokia.com>
Wed, 6 Oct 2010 08:10:11 +0000 (10:10 +0200)
Otherwise we can't sensibly declare slots with a matching parameter.

src/plugins/coreplugin/ssh/sshconnection.cpp
src/plugins/coreplugin/ssh/sshconnection.h
src/plugins/coreplugin/ssh/sshconnection_p.h
tests/manual/ssh/sftp/sftptest.cpp

index 73721a3..3d8258d 100644 (file)
@@ -59,7 +59,7 @@ namespace {
             staticInitMutex.lock();
             if (!staticInitializationsDone) {
                 Botan::LibraryInitializer::initialize("thread_safe=true");
-                qRegisterMetaType<SshError>("SshError");
+                qRegisterMetaType<Core::SshError>("Core::SshError");
                 qRegisterMetaType<Core::SftpJobId>("Core::SftpJobId");
                 staticInitializationsDone = true;
             }
@@ -109,8 +109,8 @@ SshConnection::SshConnection() : d(new Internal::SshConnectionPrivate(this))
         SIGNAL(dataAvailable(QString)), Qt::QueuedConnection);
     connect(d, SIGNAL(disconnected()), this, SIGNAL(disconnected()),
         Qt::QueuedConnection);
-    connect(d, SIGNAL(error(SshError)), this, SIGNAL(error(SshError)),
-        Qt::QueuedConnection);
+    connect(d, SIGNAL(error(Core::SshError)), this,
+        SIGNAL(error(Core::SshError)), Qt::QueuedConnection);
 }
 
 void SshConnection::connectToHost(const SshConnectionParameters &serverInfo)
index 73987ba..b262b3e 100644 (file)
@@ -95,7 +95,7 @@ signals:
     void connected();
     void disconnected();
     void dataAvailable(const QString &message);
-    void error(SshError);
+    void error(Core::SshError);
 
 private:
     SshConnection();
index 2dd3c5c..95339cd 100644 (file)
@@ -90,7 +90,7 @@ signals:
     void connected();
     void disconnected();
     void dataAvailable(const QString &message);
-    void error(SshError);
+    void error(Core::SshError);
 
 private:
     Q_SLOT void handleSocketConnected();
index e26f8db..f80e629 100644 (file)
@@ -28,7 +28,7 @@ void SftpTest::run()
     m_connection = SshConnection::create();
     connect(m_connection.data(), SIGNAL(connected()), this,
         SLOT(handleConnected()));
-    connect(m_connection.data(), SIGNAL(error(SshError)), this,
+    connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
         SLOT(handleError()));
     connect(m_connection.data(), SIGNAL(disconnected()), this,
         SLOT(handleDisconnected()));