KGAPI2::Drive::Drives::Capabilities

Search for usage in LXR

KGAPI2::Drive::Drives::Capabilities Class Reference

#include <drives.h>

Public Member Functions

 Capabilities (const Capabilities &other)
 
bool canAddChildren () const
 
bool canChangeCopyRequiresWriterPermissionRestriction () const
 
bool canChangeDomainUsersOnlyRestriction () const
 
bool canChangeDriveBackground () const
 
bool canChangeDriveMembersOnlyRestriction () const
 
bool canComment () const
 
bool canCopy () const
 
bool canDeleteChildren () const
 
bool canDeleteDrive () const
 
bool canDownload () const
 
bool canEdit () const
 
bool canListChildren () const
 
bool canManageMembers () const
 
bool canReadRevisions () const
 
bool canRename () const
 
bool canRenameDrive () const
 
bool canShare () const
 
bool canTrashChildren () const
 
bool operator!= (const Capabilities &other) const
 
bool operator== (const Capabilities &other) const
 

Detailed Description

Drives::Capabilities holds the structure used for capabilities the current user has on this shared drive.

Definition at line 136 of file drives.h.

Member Function Documentation

bool Drives::Capabilities::canAddChildren ( ) const

Returns whether the current user can add children to folders in this shared drive.

Definition at line 161 of file drives.cpp.

bool Drives::Capabilities::canChangeCopyRequiresWriterPermissionRestriction ( ) const

Returns whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.

Definition at line 166 of file drives.cpp.

bool Drives::Capabilities::canChangeDomainUsersOnlyRestriction ( ) const

Returns whether the current user can change the domainUsersOnly restriction of this shared drive.

Definition at line 171 of file drives.cpp.

bool Drives::Capabilities::canChangeDriveBackground ( ) const

Returns whether the current user can change the background of this shared drive.

Definition at line 176 of file drives.cpp.

bool Drives::Capabilities::canChangeDriveMembersOnlyRestriction ( ) const

Returns whether the current user can change the driveMembersOnly restriction of this shared drive.

Definition at line 181 of file drives.cpp.

bool Drives::Capabilities::canComment ( ) const

Returns Whether the current user can comment on files in this shared drive.

Definition at line 186 of file drives.cpp.

bool Drives::Capabilities::canCopy ( ) const

Returns Whether the current user can copy files in this shared drive.

Definition at line 191 of file drives.cpp.

bool Drives::Capabilities::canDeleteChildren ( ) const

Returns Whether the current user can delete children from folders in this shared drive.

Definition at line 196 of file drives.cpp.

bool Drives::Capabilities::canDeleteDrive ( ) const

Returns Whether the current user can delete this shared drive.

Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.

Definition at line 201 of file drives.cpp.

bool Drives::Capabilities::canDownload ( ) const

Returns Whether the current user can download files in this shared drive.

Definition at line 206 of file drives.cpp.

bool Drives::Capabilities::canEdit ( ) const

Returns Whether the current user can edit files in this shared drive.

Definition at line 211 of file drives.cpp.

bool Drives::Capabilities::canListChildren ( ) const

Returns Whether the current user can list the children of folders in this shared drive.

Definition at line 216 of file drives.cpp.

bool Drives::Capabilities::canManageMembers ( ) const

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

Definition at line 221 of file drives.cpp.

bool Drives::Capabilities::canReadRevisions ( ) const

Returns Whether the current user can read the revisions resource of files in this shared drive.

Definition at line 226 of file drives.cpp.

bool Drives::Capabilities::canRename ( ) const

Returns Whether the current user can rename files or folders in this shared drive.

Definition at line 231 of file drives.cpp.

bool Drives::Capabilities::canRenameDrive ( ) const

Returns Whether the current user can rename this shared drive.

Definition at line 236 of file drives.cpp.

bool Drives::Capabilities::canShare ( ) const

Returns Whether the current user can share files or folders in this shared drive.

Definition at line 241 of file drives.cpp.

bool Drives::Capabilities::canTrashChildren ( ) const

Returns Whether the current user can trash children from folders in this shared drive.

Definition at line 246 of file drives.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Jun 18 2021 23:10:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.