KGAPI2::Drive::Permission::PermissionDetails

Search for usage in LXR

KGAPI2::Drive::Permission::PermissionDetails Class Reference

#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()

QList< Permission::Role > Permission::PermissionDetails::additionalRoles ( ) const
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()

bool Permission::PermissionDetails::inherited ( ) const
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()

QString Permission::PermissionDetails::inheritedFrom ( ) const
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!=()

bool KGAPI2::Drive::Permission::PermissionDetails::operator!= ( const PermissionDetails & other) const
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()

Permission::Role Permission::PermissionDetails::role ( ) const
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.