From 051a0be95cbe4fe5eb0c7431e13987a2aa56bcc0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 10 Jan 2017 20:44:08 +0100 Subject: Logout after synchronization --- examples/imapresource/imapserverproxy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/imapresource/imapserverproxy.cpp') 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 @@ #include #include #include +#include #include #include #include @@ -150,6 +151,12 @@ KAsync::Job ImapServerProxy::login(const QString &username, const QString }); } +KAsync::Job ImapServerProxy::logout() +{ + auto logoutJob = new KIMAP2::LogoutJob(mSession); + return runJob(logoutJob); +} + KAsync::Job ImapServerProxy::select(const QString &mailbox) { auto select = new KIMAP2::SelectJob(mSession); -- cgit v1.2.3