summaryrefslogtreecommitdiff
path: root/migrationutility/imapsourceaccount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'migrationutility/imapsourceaccount.cpp')
-rw-r--r--migrationutility/imapsourceaccount.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/migrationutility/imapsourceaccount.cpp b/migrationutility/imapsourceaccount.cpp
index 91a4e2b..3e470e6 100644
--- a/migrationutility/imapsourceaccount.cpp
+++ b/migrationutility/imapsourceaccount.cpp
@@ -158,9 +158,16 @@ void IMAPSourceAccount::prepareConnection(QString host, qint16 port, const QStri
mAuthenticationMode = authenticationMode;
}
+void IMAPSourceAccount::onSessionStateChanged(KIMAP::Session::State oldstate, KIMAP::Session::State newstate)
+{
+ Debug() << "session state changed " << oldstate << newstate;
+}
+
KJob *IMAPSourceAccount::login()
{
mSession = createSession(mHost, mPort, this);
+ QObject::connect(mSession, SIGNAL(stateChanged(KIMAP::Session::State,KIMAP::Session::State)),
+ this, SLOT(onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)) );
KIMAP::LoginJob *loginJob = new KIMAP::LoginJob(mSession);
if (mAuthorizationName != mUsername) {