File indexing completed on 2024-05-12 05:17:15
0001 /* 0002 SPDX-FileCopyrightText: 2009 Andras Mantia <amantia@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kimap_export.h" 0010 0011 #include "job.h" 0012 0013 namespace KIMAP 0014 { 0015 class Session; 0016 class RenameJobPrivate; 0017 0018 class KIMAP_EXPORT RenameJob : public Job 0019 { 0020 Q_OBJECT 0021 Q_DECLARE_PRIVATE(RenameJob) 0022 0023 friend class SessionPrivate; 0024 0025 public: 0026 explicit RenameJob(Session *session); 0027 ~RenameJob() override; 0028 0029 /** 0030 * Set the name of the mailbox that will be renamed. 0031 * @param mailBox the original name of the mailbox 0032 */ 0033 void setSourceMailBox(const QString &mailBox); 0034 [[nodiscard]] QString sourceMailBox() const; 0035 0036 /** 0037 * The new name of the mailbox, see setMailBox. 0038 * @param mailBox the new mailbox name 0039 */ 0040 void setDestinationMailBox(const QString &mailBox); 0041 [[nodiscard]] QString destinationMailBox() const; 0042 0043 protected: 0044 void doStart() override; 0045 }; 0046 0047 }