KGAPI2::Drive::Teamdrive::Restrictions
#include <teamdrive.h>
Public Member Functions | |
Restrictions (const Restrictions &other) | |
bool | adminManagedRestrictions () const |
bool | copyRequiresWriterPermission () const |
bool | domainUsersOnly () const |
bool | operator!= (const Restrictions &other) const |
bool | operator== (const Restrictions &other) const |
void | setAdminManagedRestrictions (bool adminManagedRestrictions) const |
void | setCopyRequiresWriterPermission (bool copyRequiresWriterPermission) const |
void | setDomainUsersOnly (bool domainUsersOnly) const |
void | setTeamMembersOnly (bool teamMembersOnly) const |
bool | teamMembersOnly () const |
Detailed Description
DriveTeamdrive::Restrictions holds the structure used for restrictions property.
Definition at line 39 of file teamdrive.h.
Constructor & Destructor Documentation
◆ Restrictions() [1/2]
Teamdrive::Restrictions::Restrictions | ( | ) |
Definition at line 38 of file teamdrive.cpp.
◆ Restrictions() [2/2]
Teamdrive::Restrictions::Restrictions | ( | const Restrictions & | other | ) |
Definition at line 43 of file teamdrive.cpp.
Member Function Documentation
◆ adminManagedRestrictions()
bool Teamdrive::Restrictions::adminManagedRestrictions | ( | ) | const |
Returns whether administrative privileges on this Team Drive are required to modify restrictions.
Definition at line 59 of file teamdrive.cpp.
◆ copyRequiresWriterPermission()
|
nodiscard |
Returns whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters.
When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
Definition at line 69 of file teamdrive.cpp.
◆ domainUsersOnly()
|
nodiscard |
Returns whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs.
This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
Definition at line 79 of file teamdrive.cpp.
◆ operator!=()
|
inline |
Definition at line 53 of file teamdrive.h.
◆ operator==()
bool Teamdrive::Restrictions::operator== | ( | const Restrictions & | other | ) | const |
Definition at line 50 of file teamdrive.cpp.
◆ setAdminManagedRestrictions()
void Teamdrive::Restrictions::setAdminManagedRestrictions | ( | bool | adminManagedRestrictions | ) | const |
Sets whether administrative privileges on this Team Drive are required to modify restrictions.
- Parameters
-
adminManagedRestrictions
Definition at line 64 of file teamdrive.cpp.
◆ setCopyRequiresWriterPermission()
void Teamdrive::Restrictions::setCopyRequiresWriterPermission | ( | bool | copyRequiresWriterPermission | ) | const |
Sets whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters.
When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
- Parameters
-
copyRequiresWriterPermission
Definition at line 74 of file teamdrive.cpp.
◆ setDomainUsersOnly()
void Teamdrive::Restrictions::setDomainUsersOnly | ( | bool | domainUsersOnly | ) | const |
Sets whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs.
This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
- Parameters
-
domainUsersOnly
Definition at line 84 of file teamdrive.cpp.
◆ setTeamMembersOnly()
void Teamdrive::Restrictions::setTeamMembersOnly | ( | bool | teamMembersOnly | ) | const |
Sets whether access to items inside this Team Drive is restricted to members of this Team Drive.
- Parameters
-
teamMembersOnly
Definition at line 94 of file teamdrive.cpp.
◆ teamMembersOnly()
|
nodiscard |
Returns whether access to items inside this Team Drive is restricted to members of this Team Drive.
Definition at line 89 of file teamdrive.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.