1 | /* |
2 | Copyright (c) 2009 Andras Mantia <amantia@kde.org> |
3 | |
4 | This library is free software; you can redistribute it and/or modify it |
5 | under the terms of the GNU Library General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or (at your |
7 | option) any later version. |
8 | |
9 | This library is distributed in the hope that it will be useful, but WITHOUT |
10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public |
12 | License for more details. |
13 | |
14 | You should have received a copy of the GNU Library General Public License |
15 | along with this library; see the file COPYING.LIB. If not, write to the |
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
17 | 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef KIMAP_DELETEACLJOB_H |
21 | #define KIMAP_DELETEACLJOB_H |
22 | |
23 | #include "kimap_export.h" |
24 | |
25 | #include "acljobbase.h" |
26 | |
27 | namespace KIMAP { |
28 | |
29 | class Session; |
30 | struct Message; |
31 | class DeleteAclJobPrivate; |
32 | |
33 | /** |
34 | * Removes an identifier from the ACL of a mailbox. |
35 | * |
36 | * This job can only be run when the session is in the |
37 | * authenticated (or selected) state. |
38 | * |
39 | * The user must have the Acl::Admin permission |
40 | * on the mailbox for this job to succeed (see |
41 | * MyRightsJob). |
42 | * |
43 | * This job requires that the server supports the ACL |
44 | * capability, defined in |
45 | * <a href="http://www.apps.ietf.org/rfc/rfc4314.html">RFC 4314</a>. |
46 | */ |
47 | class KIMAP_EXPORT DeleteAclJob : public AclJobBase |
48 | { |
49 | Q_OBJECT |
50 | Q_DECLARE_PRIVATE( DeleteAclJob ) |
51 | |
52 | friend class SessionPrivate; |
53 | |
54 | public: |
55 | explicit DeleteAclJob( Session *session ); |
56 | virtual ~DeleteAclJob(); |
57 | |
58 | /** |
59 | * Sets the identifier to remove |
60 | */ |
61 | void setIdentifier( const QByteArray &identifier ); |
62 | /** |
63 | * The identifier that will be removed |
64 | */ |
65 | QByteArray identifier(); |
66 | |
67 | protected: |
68 | virtual void doStart(); |
69 | |
70 | }; |
71 | |
72 | } |
73 | |
74 | #endif |
75 | |