KIMAP

getacljob.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_GETACLJOB_H
8 #define KIMAP_GETACLJOB_H
9 
10 #include "kimap_export.h"
11 
12 #include "acljobbase.h"
13 
14 namespace KIMAP
15 {
16 
17 class Session;
18 struct Response;
19 class GetAclJobPrivate;
20 
50 class KIMAP_EXPORT GetAclJob : public AclJobBase
51 {
52  Q_OBJECT
53  Q_DECLARE_PRIVATE(GetAclJob)
54 
55  friend class SessionPrivate;
56 
57 public:
58  explicit GetAclJob(Session *session);
59  ~GetAclJob() override;
60 
71  QList<QByteArray> identifiers() const;
89  bool hasRightEnabled(const QByteArray &identifier, Acl::Right right) const;
106  Acl::Rights rights(const QByteArray &identifier) const;
107 
118  QMap<QByteArray, Acl::Rights> allRights() const;
119 
120 protected:
121  void doStart() override;
122  void handleResponse(const Response &response) override;
123 
124 };
125 
126 }
127 
128 #endif
Right
Possible rights that can be held on a mailbox.
Definition: acl.h:26
Gets the ACL for a mailbox.
Definition: getacljob.h:50
Definition: acl.cpp:12
Base class for jobs that operate on mailbox ACLs.
Definition: acljobbase.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 28 2020 23:16:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.