KIO
#include <kacl.h>
Public Member Functions | |
| KACL (const QString &aclString) | |
| KACL (const KACL &rhs) | |
| KACL (mode_t basicPermissions) | |
| KACL () | |
| virtual | ~KACL () |
| ACLGroupPermissionsList | allGroupPermissions () const |
| ACLUserPermissionsList | allUserPermissions () const |
| QString | asString () const |
| mode_t | basePermissions () const |
| bool | isExtended () const |
| bool | isValid () const |
| unsigned short | maskPermissions (bool &exists) const |
| unsigned short | namedGroupPermissions (const QString &name, bool *exists) const |
| unsigned short | namedUserPermissions (const QString &name, bool *exists) const |
| bool | operator!= (const KACL &rhs) const |
| KACL & | operator= (const KACL &rhs) |
| bool | operator== (const KACL &rhs) const |
| unsigned short | othersPermissions () const |
| unsigned short | ownerPermissions () const |
| unsigned short | owningGroupPermissions () const |
| bool | setACL (const QString &aclStr) |
| bool | setAllGroupPermissions (const ACLGroupPermissionsList &) |
| bool | setAllUserPermissions (const ACLUserPermissionsList &list) |
| bool | setMaskPermissions (unsigned short) |
| bool | setNamedGroupPermissions (const QString &name, unsigned short) |
| bool | setNamedUserPermissions (const QString &name, unsigned short) |
| bool | setOthersPermissions (unsigned short) |
| bool | setOwnerPermissions (unsigned short) |
| bool | setOwningGroupPermissions (unsigned short) |
Protected Member Functions | |
| virtual void | virtual_hook (int id, void *data) |
Friends | |
| QDataStream & | operator<< (QDataStream &s, const KACL &a) |
| QDataStream & | operator>> (QDataStream &s, KACL &a) |
Detailed Description
The KACL class encapsulates a POSIX Access Control List.
It follows the little standard that couldn't, 1003.1e/1003.2c, which died in draft status. a POSIX ACL encapsulation
Constructor & Destructor Documentation
| KACL::KACL | ( | const QString & | aclString | ) |
| KACL::KACL | ( | mode_t | basicPermissions | ) |
| KACL::KACL | ( | ) |
Member Function Documentation
| ACLGroupPermissionsList KACL::allGroupPermissions | ( | ) | const |
| ACLUserPermissionsList KACL::allUserPermissions | ( | ) | const |
| QString KACL::asString | ( | ) | const |
| mode_t KACL::basePermissions | ( | ) | const |
| bool KACL::isExtended | ( | ) | const |
The interface to the extended ACL.
This is a mask, permissions for n named users and permissions for m named groups. Return whether the ACL contains extended entries or can be expressed using only basic file permissions.
- Returns
- whether the ACL contains extended entries
| bool KACL::isValid | ( | ) | const |
| unsigned short KACL::maskPermissions | ( | bool & | exists | ) | const |
| unsigned short KACL::namedGroupPermissions | ( | const QString & | name, |
| bool * | exists | ||
| ) | const |
| unsigned short KACL::namedUserPermissions | ( | const QString & | name, |
| bool * | exists | ||
| ) | const |
Access to the permissions entry for a named user, if such an entry exists.
If exists is non-null, the boolean variable it points to is set to true if a matching entry exists and to false otherwise.
- Returns
- the permissions for a user entry with the name in
name
| unsigned short KACL::othersPermissions | ( | ) | const |
| unsigned short KACL::ownerPermissions | ( | ) | const |
| unsigned short KACL::owningGroupPermissions | ( | ) | const |
| bool KACL::setACL | ( | const QString & | aclStr | ) |
| bool KACL::setAllGroupPermissions | ( | const ACLGroupPermissionsList & | groups | ) |
| bool KACL::setAllUserPermissions | ( | const ACLUserPermissionsList & | list | ) |
| bool KACL::setMaskPermissions | ( | unsigned short | v | ) |
| bool KACL::setNamedGroupPermissions | ( | const QString & | name, |
| unsigned short | permissions | ||
| ) |
| bool KACL::setNamedUserPermissions | ( | const QString & | name, |
| unsigned short | permissions | ||
| ) |
| bool KACL::setOthersPermissions | ( | unsigned short | v | ) |
| bool KACL::setOwnerPermissions | ( | unsigned short | v | ) |
| bool KACL::setOwningGroupPermissions | ( | unsigned short | v | ) |
|
protectedvirtual |
Friends And Related Function Documentation
|
friend |
|
friend |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri May 1 2015 14:13:53 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.