KIMAP

renamejob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "kimap_export.h"
10 
11 #include "job.h"
12 
13 namespace KIMAP
14 {
15 class Session;
16 class RenameJobPrivate;
17 
18 class KIMAP_EXPORT RenameJob : public Job
19 {
20  Q_OBJECT
21  Q_DECLARE_PRIVATE(RenameJob)
22 
23  friend class SessionPrivate;
24 
25 public:
26  explicit RenameJob(Session *session);
27  ~RenameJob() override;
28 
29  /**
30  * Set the name of the mailbox that will be renamed.
31  * @param mailBox the original name of the mailbox
32  */
33  void setSourceMailBox(const QString &mailBox);
34  [[nodiscard]] QString sourceMailBox() const;
35 
36  /**
37  * The new name of the mailbox, see setMailBox.
38  * @param mailBox the new mailbox name
39  */
40  void setDestinationMailBox(const QString &mailBox);
41  [[nodiscard]] QString destinationMailBox() const;
42 
43 protected:
44  void doStart() override;
45 };
46 
47 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:51:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.