KGAPI2::Drive::Teamdrive::Capabilities

Search for usage in LXR

KGAPI2::Drive::Teamdrive::Capabilities Class Reference

#include <teamdrive.h>

Public Member Functions

 Capabilities (const Capabilities &other)
 
bool canAddChildren () const
 
bool canChangeCopyRequiresWriterPermissionRestriction () const
 
bool canChangeDomainUsersOnlyRestriction () const
 
bool canChangeTeamDriveBackground () const
 
bool canChangeTeamMembersOnlyRestriction () const
 
bool canComment () const
 
bool canCopy () const
 
bool canDeleteChildren () const
 
bool canDeleteTeamDrive () const
 
bool canDownload () const
 
bool canEdit () const
 
bool canListChildren () const
 
bool canManageMembers () const
 
bool canReadRevisions () const
 
bool canRename () const
 
bool canRenameTeamDrive () const
 
bool canShare () const
 
bool canTrashChildren () const
 
bool operator!= (const Capabilities &other) const
 
bool operator== (const Capabilities &other) const
 

Detailed Description

DriveTeamdrive::Capabilities holds the structure used for capabilities property.

Definition at line 134 of file teamdrive.h.

Constructor & Destructor Documentation

◆ Capabilities() [1/2]

Teamdrive::Capabilities::Capabilities ( )

Definition at line 127 of file teamdrive.cpp.

◆ Capabilities() [2/2]

Teamdrive::Capabilities::Capabilities ( const Capabilities & other)

Definition at line 132 of file teamdrive.cpp.

Member Function Documentation

◆ canAddChildren()

bool Teamdrive::Capabilities::canAddChildren ( ) const
nodiscard

Returns whether the current user can add children to folders in this Team Drive.

Definition at line 162 of file teamdrive.cpp.

◆ canChangeCopyRequiresWriterPermissionRestriction()

bool Teamdrive::Capabilities::canChangeCopyRequiresWriterPermissionRestriction ( ) const
nodiscard

Returns whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.

Definition at line 167 of file teamdrive.cpp.

◆ canChangeDomainUsersOnlyRestriction()

bool Teamdrive::Capabilities::canChangeDomainUsersOnlyRestriction ( ) const
nodiscard

Returns whether the current user can change the domainUsersOnly restriction of this Team Drive.

Definition at line 172 of file teamdrive.cpp.

◆ canChangeTeamDriveBackground()

bool Teamdrive::Capabilities::canChangeTeamDriveBackground ( ) const
nodiscard

Returns whether the current user can change the background of this Team Drive.

Definition at line 177 of file teamdrive.cpp.

◆ canChangeTeamMembersOnlyRestriction()

bool Teamdrive::Capabilities::canChangeTeamMembersOnlyRestriction ( ) const
nodiscard

Returns whether the current user can change the teamMembersOnly restriction of this Team Drive.

Definition at line 182 of file teamdrive.cpp.

◆ canComment()

bool Teamdrive::Capabilities::canComment ( ) const
nodiscard

Returns Whether the current user can comment on files in this Team Drive.

Definition at line 187 of file teamdrive.cpp.

◆ canCopy()

bool Teamdrive::Capabilities::canCopy ( ) const
nodiscard

Returns Whether the current user can copy files in this Team Drive.

Definition at line 192 of file teamdrive.cpp.

◆ canDeleteChildren()

bool Teamdrive::Capabilities::canDeleteChildren ( ) const
nodiscard

Returns Whether the current user can delete children from folders in this Team Drive.

Definition at line 197 of file teamdrive.cpp.

◆ canDeleteTeamDrive()

bool Teamdrive::Capabilities::canDeleteTeamDrive ( ) const
nodiscard

Returns Whether the current user can delete this Team Drive.

Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.

Definition at line 202 of file teamdrive.cpp.

◆ canDownload()

bool Teamdrive::Capabilities::canDownload ( ) const
nodiscard

Returns Whether the current user can download files in this Team Drive.

Definition at line 207 of file teamdrive.cpp.

◆ canEdit()

bool Teamdrive::Capabilities::canEdit ( ) const
nodiscard

Returns Whether the current user can edit files in this Team Drive.

Definition at line 212 of file teamdrive.cpp.

◆ canListChildren()

bool Teamdrive::Capabilities::canListChildren ( ) const
nodiscard

Returns Whether the current user can list the children of folders in this Team Drive.

Definition at line 217 of file teamdrive.cpp.

◆ canManageMembers()

bool Teamdrive::Capabilities::canManageMembers ( ) const
nodiscard

Returns Whether the current user can add members to this Team Drive or remove them or change their role.

Definition at line 222 of file teamdrive.cpp.

◆ canReadRevisions()

bool Teamdrive::Capabilities::canReadRevisions ( ) const
nodiscard

Returns Whether the current user can read the revisions resource of files in this Team Drive.

Definition at line 227 of file teamdrive.cpp.

◆ canRename()

bool Teamdrive::Capabilities::canRename ( ) const
nodiscard

Returns Whether the current user can rename files or folders in this Team Drive.

Definition at line 232 of file teamdrive.cpp.

◆ canRenameTeamDrive()

bool Teamdrive::Capabilities::canRenameTeamDrive ( ) const
nodiscard

Returns Whether the current user can rename this Team Drive.

Definition at line 237 of file teamdrive.cpp.

◆ canShare()

bool Teamdrive::Capabilities::canShare ( ) const
nodiscard

Returns Whether the current user can share files or folders in this Team Drive.

Definition at line 242 of file teamdrive.cpp.

◆ canTrashChildren()

bool Teamdrive::Capabilities::canTrashChildren ( ) const
nodiscard

Returns Whether the current user can trash children from folders in this Team Drive.

Definition at line 247 of file teamdrive.cpp.

◆ operator!=()

bool KGAPI2::Drive::Teamdrive::Capabilities::operator!= ( const Capabilities & other) const
inline

Definition at line 162 of file teamdrive.h.

◆ operator==()

bool Teamdrive::Capabilities::operator== ( const Capabilities & other) const

Definition at line 139 of file teamdrive.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.