KIMAP

closejob.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "closejob.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 CloseJobPrivate : public JobPrivate
18 {
19 public:
20  CloseJobPrivate(Session *session, const QString &name) : JobPrivate(session, name) { }
21  ~CloseJobPrivate() { }
22 };
23 }
24 
25 using namespace KIMAP;
26 
27 CloseJob::CloseJob(Session *session)
28  : Job(*new CloseJobPrivate(session, i18n("Close")))
29 {
30 }
31 
32 CloseJob::~CloseJob()
33 {
34 }
35 
36 void CloseJob::doStart()
37 {
38  Q_D(CloseJob);
39  d->tags << d->sessionInternal()->sendCommand("CLOSE");
40 }
Closes the current mailbox.
Definition: closejob.h:40
QString i18n(const char *text, const TYPE &arg...)
Definition: acl.cpp:12
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Oct 24 2020 23:16:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.