KIMAP

logoutjob.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Kevin Ottens <[email protected]>
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 
15 namespace KIMAP
16 {
17 class LogoutJobPrivate : public JobPrivate
18 {
19 public:
20  LogoutJobPrivate(Session *session, const QString &name)
21  : JobPrivate(session, name)
22  {
23  }
24  ~LogoutJobPrivate()
25  {
26  }
27 };
28 }
29 
30 using namespace KIMAP;
31 
32 LogoutJob::LogoutJob(Session *session)
33  : Job(*new LogoutJobPrivate(session, i18n("Logout")))
34 {
35 }
36 
37 LogoutJob::~LogoutJob()
38 {
39 }
40 
41 void LogoutJob::doStart()
42 {
43  Q_D(LogoutJob);
44  d->tags << d->sessionInternal()->sendCommand("LOGOUT");
45 }
46 
47 void LogoutJob::connectionLost()
48 {
49  emitResult();
50 }
51 
52 #include "moc_logoutjob.cpp"
QString i18n(const char *text, const TYPE &arg...)
const char * name(StandardAction id)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 10 2023 03:48:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.