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.

Constructor & Destructor Documentation

◆ Capabilities() [1/2]

Drives::Capabilities::Capabilities ( )

Definition at line 127 of file drives.cpp.

◆ Capabilities() [2/2]

Drives::Capabilities::Capabilities ( const Capabilities & other)

Definition at line 132 of file drives.cpp.

Member Function Documentation

◆ canAddChildren()

bool Drives::Capabilities::canAddChildren ( ) const

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

Definition at line 162 of file drives.cpp.

◆ canChangeCopyRequiresWriterPermissionRestriction()

bool Drives::Capabilities::canChangeCopyRequiresWriterPermissionRestriction ( ) const

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

Definition at line 167 of file drives.cpp.

◆ canChangeDomainUsersOnlyRestriction()

bool Drives::Capabilities::canChangeDomainUsersOnlyRestriction ( ) const

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

Definition at line 172 of file drives.cpp.

◆ canChangeDriveBackground()

bool Drives::Capabilities::canChangeDriveBackground ( ) const

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

Definition at line 177 of file drives.cpp.

◆ canChangeDriveMembersOnlyRestriction()

bool Drives::Capabilities::canChangeDriveMembersOnlyRestriction ( ) const

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

Definition at line 182 of file drives.cpp.

◆ canComment()

bool Drives::Capabilities::canComment ( ) const

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

Definition at line 187 of file drives.cpp.

◆ canCopy()

bool Drives::Capabilities::canCopy ( ) const

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

Definition at line 192 of file drives.cpp.

◆ canDeleteChildren()

bool Drives::Capabilities::canDeleteChildren ( ) const

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

Definition at line 197 of file drives.cpp.

◆ canDeleteDrive()

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 202 of file drives.cpp.

◆ canDownload()

bool Drives::Capabilities::canDownload ( ) const

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

Definition at line 207 of file drives.cpp.

◆ canEdit()

bool Drives::Capabilities::canEdit ( ) const

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

Definition at line 212 of file drives.cpp.

◆ canListChildren()

bool Drives::Capabilities::canListChildren ( ) const

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

Definition at line 217 of file drives.cpp.

◆ canManageMembers()

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 222 of file drives.cpp.

◆ canReadRevisions()

bool Drives::Capabilities::canReadRevisions ( ) const

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

Definition at line 227 of file drives.cpp.

◆ canRename()

bool Drives::Capabilities::canRename ( ) const

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

Definition at line 232 of file drives.cpp.

◆ canRenameDrive()

bool Drives::Capabilities::canRenameDrive ( ) const

Returns Whether the current user can rename this shared drive.

Definition at line 237 of file drives.cpp.

◆ canShare()

bool Drives::Capabilities::canShare ( ) const

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

Definition at line 242 of file drives.cpp.

◆ canTrashChildren()

bool Drives::Capabilities::canTrashChildren ( ) const

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

Definition at line 247 of file drives.cpp.

◆ operator!=()

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

Definition at line 164 of file drives.h.

◆ operator==()

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

Definition at line 139 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.