KIMAP

renamejob.h
1/*
2 SPDX-FileCopyrightText: 2009 Andras Mantia <amantia@kde.org>
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
13namespace KIMAP
14{
15class Session;
16class RenameJobPrivate;
17
18class KIMAP_EXPORT RenameJob : public Job
19{
20 Q_OBJECT
21 Q_DECLARE_PRIVATE(RenameJob)
22
23 friend class SessionPrivate;
24
25public:
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
43protected:
44 void doStart() override;
45};
46
47}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.