kmail

KMail::ACLJobs Namespace Reference


Detailed Description

This namespace contains functions that return jobs for ACL operations.

The current implementation is tied to IMAP. If someone wants to extend this to other protocols, turn the class into a namespace and use virtual methods.


Classes

class  GetACLJob
 List all ACLs for a given url. More...
class  GetUserRightsJob
 Get the users' rights for a given url. More...
class  DeleteACLJob
 Delete the permissions for a given user on a given url This class only exists to store the userid in the job. More...
class  MultiSetACLJob
 Set and delete a list of permissions for different users on a given url. More...

Enumerations

enum  ACLFetchState { NotFetchedYet, Ok, FetchFailed }
enum  ACLPermissions {
  List = 1, Read = 2, WriteFlags = 4, Insert = 8,
  Create = 16, Delete = 32, Administer = 64, Post = 128,
  WriteSeenFlag = 256, AllWrite = List | Read | WriteFlags | Insert | Post | Create | Delete | WriteSeenFlag, All = List | Read | WriteFlags | Insert | Post | Create | Delete | Administer | WriteSeenFlag
}

Functions

KIO::SimpleJob * setACL (KIO::Slave *slave, const KURL &url, const QString &user, unsigned int permissions)
DeleteACLJobdeleteACL (KIO::Slave *slave, const KURL &url, const QString &user)
GetACLJobgetACL (KIO::Slave *slave, const KURL &url)
GetUserRightsJobgetUserRights (KIO::Slave *slave, const KURL &url)
MultiSetACLJobmultiSetACL (KIO::Slave *slave, const KURL &url, const ACLList &acl)
QString permissionsToString (unsigned int permissions)

Enumeration Type Documentation

Enumerator:
NotFetchedYet  The user rights/ACL have not been fetched from the server yet, we don't know them.
Ok  The user rights/ACL have been fetched from the server sucessfully.
FetchFailed  The attempt to fetch the user rights/ACL from the server failed.

Definition at line 64 of file acljobs.h.

Bitfield modelling the possible permissions.

This is modelled after the imap4 permissions except that Read is "rs". The semantics of the bits is protocol-dependent.

Definition at line 73 of file acljobs.h.


Function Documentation

ACLJobs::DeleteACLJob * KMail::ACLJobs::deleteACL ( KIO::Slave *  slave,
const KURL &  url,
const QString &  user 
)

Delete the permissions for a given user on a given url.

Definition at line 136 of file acljobs.cpp.

ACLJobs::GetACLJob * KMail::ACLJobs::getACL ( KIO::Slave *  slave,
const KURL &  url 
)

List all ACLs for a given url.

Definition at line 147 of file acljobs.cpp.

ACLJobs::GetUserRightsJob * KMail::ACLJobs::getUserRights ( KIO::Slave *  slave,
const KURL &  url 
)

Get the users' rights for a given url.

Definition at line 158 of file acljobs.cpp.

ACLJobs::MultiSetACLJob * KMail::ACLJobs::multiSetACL ( KIO::Slave *  slave,
const KURL &  url,
const ACLList &  acl 
)

Set and delete a list of permissions for different users on a given url.

Definition at line 258 of file acljobs.cpp.

KIO::SimpleJob * KMail::ACLJobs::setACL ( KIO::Slave *  slave,
const KURL &  url,
const QString &  user,
unsigned int  permissions 
)

Set the permissions for a given user on a given url.

Definition at line 123 of file acljobs.cpp.

KDE Home | KDE Accessibility Home | Description of Access Keys