KIMAP2::MyRightsJob
#include <myrightsjob.h>
Public Member Functions | |
MyRightsJob (Session *session) | |
bool | hasRightEnabled (Acl::Right right) |
Acl::Rights | rights () |
Public Member Functions inherited from KIMAP2::AclJobBase | |
AclJobBase (Session *session) | |
QString | mailBox () const |
void | setMailBox (const QString &mailBox) |
Protected Member Functions | |
void | doStart () override |
void | handleResponse (const Message &response) override |
Protected Member Functions inherited from KIMAP2::AclJobBase | |
AclJobBase (JobPrivate &dd) | |
Additional Inherited Members | |
Public Types inherited from KIMAP2::AclJobBase | |
enum | AclModifier { Add = 0 , Remove , Change } |
Detailed Description
Determine the rights the currently-logged-in user has on the current mailbox.
This should take into account the full access control list.
This job can only be run when the session is in the authenticated (or selected) state.
The current user must have one of the following rights on the mailbox for this job to succeed:
This job requires that the server supports the ACL capability, defined in RFC 4314.
Definition at line 57 of file myrightsjob.h.
Constructor & Destructor Documentation
◆ MyRightsJob()
|
explicit |
Definition at line 41 of file myrightsjob.cpp.
◆ ~MyRightsJob()
|
virtual |
Definition at line 46 of file myrightsjob.cpp.
Member Function Documentation
◆ doStart()
|
overrideprotected |
Definition at line 50 of file myrightsjob.cpp.
◆ handleResponse()
|
overrideprotected |
Definition at line 57 of file myrightsjob.cpp.
◆ hasRightEnabled()
bool MyRightsJob::hasRightEnabled | ( | Acl::Right | right | ) |
Check whether the current user has the a particular right on the mailbox.
The result of this method is undefined if the job has not yet completed.
- Parameters
-
right the right to check for
Definition at line 69 of file myrightsjob.cpp.
◆ rights()
Acl::Rights MyRightsJob::rights | ( | ) |
Get the rights for the current user on the mailbox.
The result of this method is undefined if the job has not yet completed.
Definition at line 75 of file myrightsjob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.