KIMAP

logoutjob.cpp
1/*
2 SPDX-FileCopyrightText: 2009 Kevin Ottens <ervin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "logoutjob.h"
8
9#include <KLocalizedString>
10
11#include "job_p.h"
12#include "response_p.h"
13#include "session_p.h"
14
15namespace KIMAP
16{
17class LogoutJobPrivate : public JobPrivate
18{
19public:
20 LogoutJobPrivate(Session *session, const QString &name)
21 : JobPrivate(session, name)
22 {
23 }
24 ~LogoutJobPrivate()
25 {
26 }
27};
28}
29
30using namespace KIMAP;
31
32LogoutJob::LogoutJob(Session *session)
33 : Job(*new LogoutJobPrivate(session, i18n("Logout")))
34{
35}
36
37LogoutJob::~LogoutJob()
38{
39}
40
41void LogoutJob::doStart()
42{
43 Q_D(LogoutJob);
44 d->tags << d->sessionInternal()->sendCommand("LOGOUT");
45}
46
47void LogoutJob::connectionLost()
48{
49 emitResult();
50}
51
52#include "moc_logoutjob.cpp"
void emitResult()
QString i18n(const char *text, const TYPE &arg...)
QString name(StandardAction id)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.