kmail Library API Documentation

KMail::ACLJobs Namespace Reference

This namespace contains functions that return jobs for ACL operations. More...


Classes

class  KMail::ACLJobs::GetACLJob
 List all ACLs for a given url. More...

class  KMail::ACLJobs::GetUserRightsJob
 Get the users' rights for a given url. More...

class  KMail::ACLJobs::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  KMail::ACLJobs::MultiSetACLJob
 Set and delete a list of permissions for different users on a given url. More...


Enumerations

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

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)


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.


Enumeration Type Documentation

enum KMail::ACLJobs::ACLPermissions
 

Bitfield modelling the possible permissions.

This is modelled after the imap4 permissions except that Read is "rs" and "p" (post) isn't there. The semantics of the bits is protocol-dependent.

Definition at line 65 of file acljobs.h.


Function Documentation

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

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

DeleteACLJob* deleteACL KIO::Slave *  slave,
const KURL &  url,
const QString user
 

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

GetACLJob* getACL KIO::Slave *  slave,
const KURL &  url
 

List all ACLs for a given url.

GetUserRightsJob* getUserRights KIO::Slave *  slave,
const KURL &  url
 

Get the users' rights for a given url.

MultiSetACLJob* multiSetACL KIO::Slave *  slave,
const KURL &  url,
const ACLList acl
 

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

KDE Logo
This file is part of the documentation for kmail Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:52 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003