KGAPI2::Drive::Permission::PermissionDetails
#include <permission.h>
Public Types | |
enum | PermissionType { UndefinedType = -1 , TypeFile = 0 , TypeMember = 1 } |
Public Member Functions | |
PermissionDetails (const PermissionDetails &other) | |
QList< Permission::Role > | additionalRoles () const |
bool | inherited () const |
QString | inheritedFrom () const |
bool | operator!= (const PermissionDetails &other) const |
bool | operator== (const PermissionDetails &other) const |
PermissionDetails::PermissionType | permissionType () const |
Permission::Role | role () const |
Detailed Description
Details of whether the permissions on this shared drive item are inherited or directly on this item.
This is an output-only field which is present only for shared drive items.
Definition at line 53 of file permission.h.
Member Enumeration Documentation
◆ PermissionType
enum KGAPI2::Drive::Permission::PermissionDetails::PermissionType |
Definition at line 56 of file permission.h.
Constructor & Destructor Documentation
◆ PermissionDetails() [1/2]
Permission::PermissionDetails::PermissionDetails | ( | ) |
Definition at line 32 of file permission.cpp.
◆ PermissionDetails() [2/2]
Permission::PermissionDetails::PermissionDetails | ( | const PermissionDetails & | other | ) |
Definition at line 37 of file permission.cpp.
Member Function Documentation
◆ additionalRoles()
|
nodiscard |
Additional roles for this user.
Only commenter is currently possible, though more may be supported in the future.
Definition at line 87 of file permission.cpp.
◆ inherited()
|
nodiscard |
Whether this permission is inherited.
This field is always populated. This is an output-only field.
Definition at line 97 of file permission.cpp.
◆ inheritedFrom()
|
nodiscard |
The ID of the item from which this permission is inherited.
This is an output-only field and is only populated for members of the shared drive.
Definition at line 92 of file permission.cpp.
◆ operator!=()
|
inline |
Definition at line 66 of file permission.h.
◆ operator==()
bool Permission::PermissionDetails::operator== | ( | const PermissionDetails & | other | ) | const |
Definition at line 44 of file permission.cpp.
◆ permissionType()
Permission::PermissionDetails::PermissionType Permission::PermissionDetails::permissionType | ( | ) | const |
The permission type for this user.
Definition at line 77 of file permission.cpp.
◆ role()
|
nodiscard |
The primary role for this user.
Definition at line 82 of file permission.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 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.