KIMAP

copyjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KIMAP_COPYJOB_H
8 #define KIMAP_COPYJOB_H
9 
10 #include "kimap_export.h"
11 
12 #include "job.h"
13 #include "imapset.h"
14 
15 namespace KIMAP
16 {
17 
18 class Session;
19 struct Message;
20 class CopyJobPrivate;
21 
34 class KIMAP_EXPORT CopyJob : public Job
35 {
36  Q_OBJECT
37  Q_DECLARE_PRIVATE(CopyJob)
38 
39  friend class SessionPrivate;
40 
41 public:
42  explicit CopyJob(Session *session);
43  ~CopyJob() override;
44 
55  void setMailBox(const QString &mailBox);
59  Q_REQUIRED_RESULT QString mailBox() const;
60 
72  void setSequenceSet(const ImapSet &set);
81  Q_REQUIRED_RESULT ImapSet sequenceSet() const;
82 
90  void setUidBased(bool uidBased);
98  Q_REQUIRED_RESULT bool isUidBased() const;
99 
106  Q_REQUIRED_RESULT ImapSet resultingUids() const;
107 
108 protected:
109  void doStart() override;
110  void handleResponse(const Response &response) override;
111 };
112 
113 }
114 
115 #endif
Represents a set of natural numbers (1->∞) in a as compact as possible form.
Definition: imapset.h:128
Definition: acl.cpp:12
Copies one or more messages to another mailbox.
Definition: copyjob.h:34
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.