diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-10 20:44:08 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-10 20:44:08 +0100 |
commit | 051a0be95cbe4fe5eb0c7431e13987a2aa56bcc0 (patch) | |
tree | 14b8400e9012da5aecfae67653e187b090bfb51c /examples/imapresource/imapserverproxy.cpp | |
parent | 1aefcdb05bbf39d510235ba05095b35ada1ed5cb (diff) | |
download | sink-051a0be95cbe4fe5eb0c7431e13987a2aa56bcc0.tar.gz sink-051a0be95cbe4fe5eb0c7431e13987a2aa56bcc0.zip |
Logout after synchronization
Diffstat (limited to 'examples/imapresource/imapserverproxy.cpp')
-rw-r--r-- | examples/imapresource/imapserverproxy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/imapresource/imapserverproxy.cpp b/examples/imapresource/imapserverproxy.cpp index dd1be69..6f8d18b 100644 --- a/examples/imapresource/imapserverproxy.cpp +++ b/examples/imapresource/imapserverproxy.cpp | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <QTcpSocket> | 23 | #include <QTcpSocket> |
24 | #include <QTimer> | 24 | #include <QTimer> |
25 | #include <KIMAP2/LoginJob> | 25 | #include <KIMAP2/LoginJob> |
26 | #include <KIMAP2/LogoutJob> | ||
26 | #include <KIMAP2/NamespaceJob> | 27 | #include <KIMAP2/NamespaceJob> |
27 | #include <KIMAP2/SelectJob> | 28 | #include <KIMAP2/SelectJob> |
28 | #include <KIMAP2/AppendJob> | 29 | #include <KIMAP2/AppendJob> |
@@ -150,6 +151,12 @@ KAsync::Job<void> ImapServerProxy::login(const QString &username, const QString | |||
150 | }); | 151 | }); |
151 | } | 152 | } |
152 | 153 | ||
154 | KAsync::Job<void> ImapServerProxy::logout() | ||
155 | { | ||
156 | auto logoutJob = new KIMAP2::LogoutJob(mSession); | ||
157 | return runJob(logoutJob); | ||
158 | } | ||
159 | |||
153 | KAsync::Job<SelectResult> ImapServerProxy::select(const QString &mailbox) | 160 | KAsync::Job<SelectResult> ImapServerProxy::select(const QString &mailbox) |
154 | { | 161 | { |
155 | auto select = new KIMAP2::SelectJob(mSession); | 162 | auto select = new KIMAP2::SelectJob(mSession); |