KACL Class Reference
#include <kacl.h>
Public Member Functions | |
KACL (const TQString &aclString) | |
KACL (const KACL &rhs) | |
KACL (mode_t basicPermissions) | |
KACL () | |
KACL & | operator= (const KACL &rhs) |
bool | operator== (const KACL &rhs) const |
bool | operator!= (const KACL &rhs) const |
bool | isValid () const |
unsigned short | ownerPermissions () const |
bool | setOwnerPermissions (unsigned short) |
unsigned short | owningGroupPermissions () const |
bool | setOwningGroupPermissions (unsigned short) |
unsigned short | othersPermissions () const |
bool | setOthersPermissions (unsigned short) |
mode_t | basePermissions () const |
bool | isExtended () const |
unsigned short | maskPermissions (bool &exists) const |
bool | setMaskPermissions (unsigned short) |
unsigned short | namedUserPermissions (const TQString &name, bool *exists) const |
bool | setNamedUserPermissions (const TQString &name, unsigned short) |
ACLUserPermissionsList | allUserPermissions () const |
bool | setAllUserPermissions (const ACLUserPermissionsList &list) |
unsigned short | namedGroupPermissions (const TQString &name, bool *exists) const |
bool | setNamedGroupPermissions (const TQString &name, unsigned short) |
ACLGroupPermissionsList | allGroupPermissions () const |
bool | setAllGroupPermissions (const ACLGroupPermissionsList &) |
bool | setACL (const TQString &aclStr) |
TQString | asString () const |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Friends | |
TDEIO_EXPORT friend TQDataStream & | operator<< (TQDataStream &s, const KACL &a) |
TDEIO_EXPORT friend TQDataStream & | operator>> (TQDataStream &s, KACL &a) |
Detailed Description
The KCAL 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() [1/4]
KACL::KACL | ( | const TQString & | aclString | ) |
◆ KACL() [2/4]
◆ KACL() [3/4]
KACL::KACL | ( | mode_t | basicPermissions | ) |
◆ KACL() [4/4]
KACL::KACL | ( | ) |
Member Function Documentation
◆ allGroupPermissions()
ACLGroupPermissionsList KACL::allGroupPermissions | ( | ) | const |
◆ allUserPermissions()
ACLUserPermissionsList KACL::allUserPermissions | ( | ) | const |
◆ asString()
TQString KACL::asString | ( | ) | const |
◆ basePermissions()
mode_t KACL::basePermissions | ( | ) | const |
◆ isExtended()
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
◆ isValid()
bool KACL::isValid | ( | ) | const |
◆ maskPermissions()
unsigned short KACL::maskPermissions | ( | bool & | exists | ) | const |
◆ namedGroupPermissions()
unsigned short KACL::namedGroupPermissions | ( | const TQString & | name, |
bool * | exists | ||
) | const |
◆ namedUserPermissions()
unsigned short KACL::namedUserPermissions | ( | const TQString & | name, |
bool * | exists | ||
) | const |
◆ othersPermissions()
unsigned short KACL::othersPermissions | ( | ) | const |
◆ ownerPermissions()
unsigned short KACL::ownerPermissions | ( | ) | const |
◆ owningGroupPermissions()
unsigned short KACL::owningGroupPermissions | ( | ) | const |
◆ setACL()
bool KACL::setACL | ( | const TQString & | aclStr | ) |
◆ setAllGroupPermissions()
bool KACL::setAllGroupPermissions | ( | const ACLGroupPermissionsList & | groups | ) |
◆ setAllUserPermissions()
bool KACL::setAllUserPermissions | ( | const ACLUserPermissionsList & | list | ) |
◆ setMaskPermissions()
bool KACL::setMaskPermissions | ( | unsigned short | v | ) |
◆ setNamedGroupPermissions()
bool KACL::setNamedGroupPermissions | ( | const TQString & | name, |
unsigned short | permissions | ||
) |
◆ setNamedUserPermissions()
bool KACL::setNamedUserPermissions | ( | const TQString & | name, |
unsigned short | permissions | ||
) |
◆ setOthersPermissions()
bool KACL::setOthersPermissions | ( | unsigned short | v | ) |
◆ setOwnerPermissions()
bool KACL::setOwnerPermissions | ( | unsigned short | v | ) |
◆ setOwningGroupPermissions()
bool KACL::setOwningGroupPermissions | ( | unsigned short | v | ) |
The documentation for this class was generated from the following files: