KIMAP

setmetadatajob.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_SETMETADATAJOB_H
8 #define KIMAP_SETMETADATAJOB_H
9 
10 #include "kimap_export.h"
11 
12 #include "metadatajobbase.h"
13 
14 namespace KIMAP
15 {
16 
17 class Session;
18 struct Response;
19 class SetMetaDataJobPrivate;
20 
56 class KIMAP_EXPORT SetMetaDataJob : public MetaDataJobBase
57 {
58  Q_OBJECT
59  Q_DECLARE_PRIVATE(SetMetaDataJob)
60 
61  friend class SessionPrivate;
62 
63 public:
64  explicit SetMetaDataJob(Session *session);
65  ~SetMetaDataJob() override;
66 
128  // KDE5: drop ANNOTATEMORE support
129  void addMetaData(const QByteArray &name, const QByteArray &value);
130 
162  // KDE5: remove
163  KIMAP_DEPRECATED void setEntry(const QByteArray &entry);
164 
169  NoError = 0,
170  TooMany = 1,
171  TooBig = 2,
172  NoPrivate = 4
173  };
174 
175  // Q_DECLARE_WHATEVER_THAT_WAS missing
176  Q_DECLARE_FLAGS(MetaDataErrors, MetaDataError)
177 
178 
183  Q_REQUIRED_RESULT MetaDataErrors metaDataErrors() const;
193  Q_REQUIRED_RESULT qint64 maxAcceptedSize();
194 
195 protected:
196  void doStart() override;
197  void handleResponse(const Response &response) override;
198 
199 };
200 
201 }
202 
203 Q_DECLARE_OPERATORS_FOR_FLAGS(KIMAP::SetMetaDataJob::MetaDataErrors)
204 
205 #endif
Base class for jobs that operate on mailbox metadata.
Sets mailbox metadata.
MetaDataError
Possible error codes that may be returned by the server.
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.